修改bug#40676
This commit is contained in:
+4
@@ -816,6 +816,10 @@ public class PayCompanyManagementController extends JeroController<PayCompanyMan
|
||||
dataSource = PayCompanyManagementCommon.DATA_SOURCE1;
|
||||
status = PayCompanyManagementCommon.STATUS1;
|
||||
}
|
||||
List<Object> excelData = super.getExcelData(request, PayCompanyManagement.class);
|
||||
if (excelData.isEmpty()) {
|
||||
throw new JeroBootException("导入数据为空,请填写数据之后重新导入!");
|
||||
}
|
||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||
|
||||
+15
-11
@@ -657,17 +657,17 @@ public class PayContactsManagementController extends JeroController<PayContactsM
|
||||
public Result<?> queryByIdMeeting(@RequestParam(name="id") String id) {
|
||||
LoginUser sysUser =(LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
if(sysUser.getId().equals(id)) {
|
||||
PayContactsManagement payContactsManagement = payContactsManagementService.getById(id);
|
||||
if (payContactsManagement == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
if (!StringUtils.isBlank(payContactsManagement.getPhone())) {
|
||||
payContactsManagement.setPhone(PasswordUtil.decrypt(payContactsManagement.getPhone()));
|
||||
}
|
||||
if (!StringUtils.isBlank(payContactsManagement.getEmail())) {
|
||||
payContactsManagement.setEmail(PasswordUtil.decrypt(payContactsManagement.getEmail()));
|
||||
}
|
||||
return Result.OK(payContactsManagement);
|
||||
PayContactsManagement payContactsManagement = payContactsManagementService.getById(id);
|
||||
if (payContactsManagement == null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
if (!StringUtils.isBlank(payContactsManagement.getPhone())) {
|
||||
payContactsManagement.setPhone(PasswordUtil.decrypt(payContactsManagement.getPhone()));
|
||||
}
|
||||
if (!StringUtils.isBlank(payContactsManagement.getEmail())) {
|
||||
payContactsManagement.setEmail(PasswordUtil.decrypt(payContactsManagement.getEmail()));
|
||||
}
|
||||
return Result.OK(payContactsManagement);
|
||||
}else{
|
||||
return Result.OK("权限异常");
|
||||
}
|
||||
@@ -825,6 +825,10 @@ public class PayContactsManagementController extends JeroController<PayContactsM
|
||||
@ApiOperation(value="联系人管理-excel导入数据", notes="联系人管理-excel导入数据")
|
||||
@PostMapping(value = "/importExcel")
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
List<Object> excelData = super.getExcelData(request, PayContactsManagement.class);
|
||||
if (excelData.isEmpty()) {
|
||||
throw new JeroBootException("导入数据为空,请填写数据之后重新导入!");
|
||||
}
|
||||
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
|
||||
Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
|
||||
for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user