|
@@ -471,53 +471,6 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
StringBuilder officeIds = new StringBuilder();
|
|
|
UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
List<String> manageOfficeIdList= Lists.newArrayList();
|
|
|
- if (CommonUtils.haveRoleCwBmzr()) {
|
|
|
- if (CommonUtils.haveRoleZkbzr()) {
|
|
|
- // 质控部主任展示全部报告
|
|
|
- isBmzr = "2";
|
|
|
- } else {
|
|
|
- // 财务_部门主任展示自己所属项目、自己创建的报告、自己部门下的报告
|
|
|
- isBmzr = "1";
|
|
|
- }
|
|
|
- } else if (CommonUtils.haveRoleCwYg()) {
|
|
|
- if (CommonUtils.haveRoleZkbyg()) {
|
|
|
- // 质控部员工展示自己审核过的报告
|
|
|
- isBmzr = "3";
|
|
|
- } else {
|
|
|
- // 财务_员工展示自己所属项目、自己创建的报告
|
|
|
- isBmzr = "0";
|
|
|
- }
|
|
|
- } else if (CommonUtils.haveRoleZjzcy()) {
|
|
|
- // 专家组成员展示自己审核过的报告
|
|
|
- isBmzr = "3";
|
|
|
- } else {
|
|
|
- //判定是否为会计所长
|
|
|
- if(CommonUtils.haveRoleKjsz()){
|
|
|
- isBmzr = "one";
|
|
|
- //获取当前人管理的部门id
|
|
|
- if(StringUtils.isNotBlank(userDTO.getManageOfficeIds())){
|
|
|
- manageOfficeIdList = Arrays.asList(userDTO.getManageOfficeIds().split(","));
|
|
|
- }else{
|
|
|
- manageOfficeIdList.add(userDTO.getOfficeDTO().getId());
|
|
|
- }
|
|
|
- for (int i = 0; i <manageOfficeIdList.size(); i++){
|
|
|
- officeIds.append("'").append(manageOfficeIdList.get(i)).append("'");
|
|
|
- if(i < manageOfficeIdList.size()-1){
|
|
|
- officeIds.append(",");
|
|
|
- }
|
|
|
- }
|
|
|
- /*if("兴光审计一部".equals(userDTO.getOfficeDTO().getName())){ //兴光审计一部
|
|
|
- isBmzr = "one";
|
|
|
- officeIds = "'" + userDTO.getOfficeDTO().getId() + "','1602840212125847554'"; //添加驻外分部部门id信息
|
|
|
- }else if("兴光审计二部".equals(userDTO.getOfficeDTO().getName())){ //兴光审计二部
|
|
|
- isBmzr = "one";
|
|
|
- officeIds = "'" + userDTO.getOfficeDTO().getId() + "'";
|
|
|
- }*/
|
|
|
- }else{
|
|
|
- // 其他人默认展示全部数据
|
|
|
- isBmzr = "2";
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
|
|
|
IPage<CwProjectReportData> list = reportMapper.findList(page,userDTO,isBmzr, officeIds.toString(), queryWrapper);
|
|
@@ -2085,7 +2038,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
|
|
|
//根据角色信息录入签署方信息
|
|
|
//负责人
|
|
|
- List<UserDTO> userInfoByRoleNameList = userService.getUserInfoByRoleName("签章管理人");
|
|
|
+ List<UserDTO> userInfoByRoleNameList = userService.getUserInfoByEnName("qzglr");
|
|
|
if(userInfoByRoleNameList.size()>0){
|
|
|
|
|
|
UserDTO user = UserUtils.get(userInfoByRoleNameList.get(0).getId());
|
|
@@ -2301,15 +2254,17 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
return "操作成功";
|
|
|
}
|
|
|
|
|
|
- public String getSignature (String reportId){
|
|
|
- CwProjectReportData cwProjectReportData1 = this.queryById(reportId);
|
|
|
- String signatureType = cwProjectReportData1.getSignatureType();
|
|
|
+ public String getSignature (CwProjectReportData cwProjectReportData){
|
|
|
+ CwProjectReportData cwProjectReportData1 = this.queryById(cwProjectReportData.getId());
|
|
|
+ String signatureType = cwProjectReportData.getSignatureType();
|
|
|
CwProjectReportSignature cwProjectReportSignature = cwProjectReportSignatureMapper.selectOne(new QueryWrapper<CwProjectReportSignature>().lambda()
|
|
|
- .eq(CwProjectReportSignature::getReportId, reportId)
|
|
|
+ .eq(CwProjectReportSignature::getReportId, cwProjectReportData.getId())
|
|
|
.eq(CwProjectReportSignature::getType, signatureType)
|
|
|
);
|
|
|
cwProjectReportSignature.setStatus("2");
|
|
|
cwProjectReportSignatureMapper.updateById(cwProjectReportSignature);
|
|
|
+ //修改盖章类型
|
|
|
+ reportMapper.updateSignatureTypeById(cwProjectReportData);
|
|
|
return cwProjectReportSignature.getId();
|
|
|
}
|
|
|
|
|
@@ -2555,7 +2510,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
|
|
|
case "签字注师2审核":
|
|
|
map.put("signatureType", reportSignatureInfo.getSignatureAnnotator2Status());
|
|
|
break;
|
|
|
- case "签章管理人审核":
|
|
|
+ case "签章管理员审核":
|
|
|
map.put("signatureType", reportSignatureInfo.getSealAdminStatus());
|
|
|
break;
|
|
|
}
|