fix delete test

master
luoyang 5 years ago
parent 7dd0ba436b
commit b1bc829eab

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

Loading…
Cancel
Save