|
@@ -102,16 +102,16 @@ public class UserInfoCtrl {
|
|
|
long jtTotalCount = list.stream().mapToLong(SystemScenePackageVO::getJtCount).sum();
|
|
|
long fhTotalCount = list.stream().mapToLong(SystemScenePackageVO::getFhCount).sum();
|
|
|
long sum = list.stream().mapToLong(SystemScenePackageVO::getTotalCount).sum();
|
|
|
- HashMap resMap = new HashMap();
|
|
|
- resMap.put("list", list);
|
|
|
- resMap.put("zrTotalCount", zrTotalCount);
|
|
|
- resMap.put("bzTotalCount", bzTotalCount);
|
|
|
- resMap.put("jtTotalCount", jtTotalCount);
|
|
|
- resMap.put("fhTotalCount", fhTotalCount);
|
|
|
- resMap.put("sum", sum);
|
|
|
-
|
|
|
- ResponseBodyVO<HashMap> response = new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS);
|
|
|
- response.setInfo(resMap);
|
|
|
+ SystemScenePackageVO last = new SystemScenePackageVO();
|
|
|
+ last.setPackageName("合计");
|
|
|
+ last.setZrCount((int)zrTotalCount);
|
|
|
+ last.setBzCount((int)bzTotalCount);
|
|
|
+ last.setFhCount((int)fhTotalCount);
|
|
|
+ last.setJtCount((int)jtTotalCount);
|
|
|
+ last.setTotalCount((int)sum);
|
|
|
+ list.add(last);
|
|
|
+ ResponseBodyVO<List> response = new ResponseBodyVO<>(ResponseBodyVO.Response.SUCCESS);
|
|
|
+ response.setInfo(list);
|
|
|
return response;
|
|
|
}
|
|
|
|
|
@@ -136,14 +136,14 @@ public class UserInfoCtrl {
|
|
|
*/
|
|
|
@RequestMapping("/savePassword")
|
|
|
@ResponseBody
|
|
|
- public ResponseBodyVO savePassword(@RequestBody UserPO userPO) throws NoSuchAlgorithmException {
|
|
|
- if(ObjectUtil.isNull(userPO)){
|
|
|
+ public ResponseBodyVO savePassword(@RequestBody UserVO userVO) throws NoSuchAlgorithmException {
|
|
|
+ if(ObjectUtil.isNull(userVO)){
|
|
|
return new ResponseBodyVO(false, 400, "参数必传!",null);
|
|
|
}
|
|
|
- if(ObjectUtil.isNull(userPO.getId()) || ObjectUtil.isNull(userPO.getPassword()) || ObjectUtil.isNull(userPO.getNewPassword())){
|
|
|
+ if(ObjectUtil.isNull(userVO.getId()) || ObjectUtil.isNull(userVO.getPassword()) || ObjectUtil.isNull(userVO.getNewPassword())){
|
|
|
return new ResponseBodyVO(false, 400, "参数必传!",null);
|
|
|
}
|
|
|
- UserPO userPORes = userService.savePassword(userPO);
|
|
|
+ UserPO userPORes = userService.savePassword(userVO);
|
|
|
if(ObjectUtil.isNull(userPORes)){
|
|
|
return new ResponseBodyVO(false, 400, "原密码错误!",null);
|
|
|
}
|