fix delete test

master
luoyang 5 years ago
parent 7dd0ba436b
commit b1bc829eab

@ -482,16 +482,16 @@ public class TestController {
clientManager.updateAllPartnerPassword("PINE");
}
@ManagerMapping(value = "/getPineAccoutPasswd", method = RequestMethod.GET, role = ManagerRole.DEVELOPER)
public List<JSONObject> getPineAccountPasswd() {
Query query = new Query();
List<TestMerchantAccountInfo> accountInfos = mongoTemplate.find(query,TestMerchantAccountInfo.class);
List<JSONObject> accounts = new ArrayList<>();
for (TestMerchantAccountInfo accountInfo : accountInfos) {
accounts.add(accountInfo.toJSON());
}
return accounts;
}
// @ManagerMapping(value = "/getPineAccoutPasswd", method = RequestMethod.GET, role = ManagerRole.DEVELOPER)
// public List<JSONObject> getPineAccountPasswd() {
// Query query = new Query();
// List<TestMerchantAccountInfo> accountInfos = mongoTemplate.find(query,TestMerchantAccountInfo.class);
// List<JSONObject> accounts = new ArrayList<>();
// for (TestMerchantAccountInfo accountInfo : accountInfos) {
// accounts.add(accountInfo.toJSON());
// }
// return accounts;
// }
@ManagerMapping(value = "/secure/hanyin_reports/{date}", role = ManagerRole.DEVELOPER, method = RequestMethod.GET)
public void downloadHanyinSecureReports(@PathVariable String date, @RequestParam(defaultValue = "false") boolean upload, HttpServletResponse resp) {

Loading…
Cancel
Save