Merge branch 'genchuang' of https://sinanoaq.cn:8888/r/safePlatform-out into master
| | |
| | | |
| | | public enum ApproveStatus { |
| | | |
| | | // 应急物资 |
| | | // 应急预案 |
| | | EMERGENCY(1); |
| | | |
| | | private Integer status; |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | import com.gkhy.safePlatform.targetDuty.entity.RewardPunishmentDetail; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineMngDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineTemplateDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.RewardPunishmentDetailDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.RewardPunishmentDetailExcel; |
| | | import com.gkhy.safePlatform.targetDuty.service.RewardPunishmentDetailService; |
| | | import com.gkhy.safePlatform.targetDuty.utils.DateUtils; |
| | |
| | | */ |
| | | @GetMapping(value = "/selectOne/{id}") |
| | | public ResultVO selectOne(@PathVariable Serializable id) { |
| | | return new ResultVO<>(ResultCodes.OK,this.rewardPunishmentDetailService.getById(id)); |
| | | RewardPunishmentDetailDto mngDto = this.rewardPunishmentDetailService.selectOne(id); |
| | | return new ResultVO<>(ResultCodes.OK,mngDto); |
| | | } |
| | | |
| | | /** |
| | |
| | | // list.add(new1); |
| | | // }); |
| | | if (rewardPunishmentDetail.getId() == null) { |
| | | rewardPunishmentDetail.setCreateTime(new Date()); |
| | | return new ResultVO<>(ResultCodes.OK,rewardPunishmentDetailService.save(rewardPunishmentDetail)); |
| | | } else { |
| | | rewardPunishmentDetailService.updateById(rewardPunishmentDetail); |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.controller; |
| | | |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.gkhy.safePlatform.commons.co.ContextCacheUser; |
| | | import com.gkhy.safePlatform.targetDuty.entity.ExamineMng; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetDutyWorkApprove; |
| | | import com.gkhy.safePlatform.targetDuty.service.TargetDutyWorkApproveService; |
| | | import com.gkhy.safePlatform.targetDuty.utils.DateUtils; |
| | | import org.springframework.security.core.Authentication; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.commons.utils.PageUtils; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetDutyWorkApproveQueryCriteria; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.util.Arrays; |
| | | import java.util.Date; |
| | | import java.util.stream.Collectors; |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 目标责任管理工作流审批表(TargetDutyWorkApprove)表控制层 |
| | | * |
| | | * @author xurui |
| | | * @since 2022-08-11 10:13:37 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("targetDutyWorkApprove") |
| | | public class TargetDutyWorkApproveController { |
| | | /** |
| | | * 服务对象 |
| | | */ |
| | | @Resource |
| | | private TargetDutyWorkApproveService targetDutyWorkApproveService; |
| | | |
| | | /** |
| | | * 分页查询所有数据 |
| | | * |
| | | * @param pageQuery 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping(value = "/page/list") |
| | | public ResultVO selectAll(@RequestBody PageQuery<TargetDutyWorkApproveQueryCriteria> pageQuery){ |
| | | PageUtils.checkCheck(pageQuery); |
| | | return this.targetDutyWorkApproveService.queryAll(pageQuery); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | | * @param id 主键 |
| | | * @return 单条数据 |
| | | */ |
| | | @GetMapping(value = "/selectOne/{id}") |
| | | public ResultVO selectOne(@PathVariable Serializable id) { |
| | | return new ResultVO<>(ResultCodes.OK,this.targetDutyWorkApproveService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 新增数据 |
| | | * |
| | | * @param targetDutyWorkApprove 实体对象 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping(value = "/add") |
| | | public ResultVO add(Authentication authentication, @RequestBody TargetDutyWorkApprove targetDutyWorkApprove) { |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | targetDutyWorkApproveService.addInfo(currentUser,targetDutyWorkApprove); |
| | | |
| | | return new ResultVO<>(ResultCodes.OK); |
| | | } |
| | | |
| | | /** |
| | | * 修改数据 |
| | | * |
| | | * @param targetDutyWorkApprove 实体对象 |
| | | * @return 修改结果 |
| | | */ |
| | | @PostMapping(value = "/update") |
| | | public ResultVO update(Authentication authentication, @RequestBody TargetDutyWorkApprove targetDutyWorkApprove) { |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | targetDutyWorkApproveService.updateInfo(currentUser,targetDutyWorkApprove); |
| | | |
| | | return new ResultVO<>(ResultCodes.OK); |
| | | } |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * |
| | | * @param ids 主键结合 |
| | | * @return 删除结果 |
| | | */ |
| | | @RequestMapping(value = "/delete",method = RequestMethod.POST) |
| | | public ResultVO delete(@RequestBody Long[] ids) { |
| | | if(ids == null){ |
| | | return new ResultVO<>(ResultCodes.CLIENT_PARAM_ILLEGAL); |
| | | } |
| | | List<Long> idList = Arrays.asList(ids); |
| | | this.targetDutyWorkApproveService.removeByIds(idList); |
| | | return new ResultVO<>(ResultCodes.OK); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 分页查询检查记录 |
| | | * |
| | | * @param pageQuery 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping(value = "/page/listCheckData") |
| | | public ResultVO listCheckData(@RequestBody PageQuery<TargetDutyWorkApproveQueryCriteria> pageQuery){ |
| | | PageUtils.checkCheck(pageQuery); |
| | | return this.targetDutyWorkApproveService.listCheckData(pageQuery); |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | TargetDutyWorkApprove examineTemplateSaveOrUpdate = new TargetDutyWorkApprove(); |
| | | examineTemplateSaveOrUpdate.setDelFlag(0); |
| | | examineTemplateSaveOrUpdate.setGmtCreate(new Timestamp(new java.util.Date().getTime())); |
| | | examineTemplateSaveOrUpdate.setGmtModitify(new Timestamp(new java.util.Date().getTime())); |
| | | examineTemplateSaveOrUpdate.setCreateUid(0L); |
| | | examineTemplateSaveOrUpdate.setUpdateUid(0L); |
| | | examineTemplateSaveOrUpdate.setWorkName("312"); |
| | | examineTemplateSaveOrUpdate.setTitle("23"); |
| | | examineTemplateSaveOrUpdate.setSubmitPersonId(0L); |
| | | examineTemplateSaveOrUpdate.setSubmitPersonName("312"); |
| | | examineTemplateSaveOrUpdate.setApprovePersonId(1L); |
| | | examineTemplateSaveOrUpdate.setApprovePersonName("312"); |
| | | examineTemplateSaveOrUpdate.setApproveStatus(1); |
| | | examineTemplateSaveOrUpdate.setApproveResult(1); |
| | | examineTemplateSaveOrUpdate.setApproveMemo("312"); |
| | | examineTemplateSaveOrUpdate.setRelateType(1); |
| | | examineTemplateSaveOrUpdate.setRelateId(0L); |
| | | examineTemplateSaveOrUpdate.setRelateDesc("312312"); |
| | | examineTemplateSaveOrUpdate.setSort(0); |
| | | examineTemplateSaveOrUpdate.setCreateTime(new Date()); |
| | | examineTemplateSaveOrUpdate.setUpdateTime(new Date()); |
| | | |
| | | |
| | | System.out.println(JSONObject.toJSONString(examineTemplateSaveOrUpdate)); |
| | | } |
| | | |
| | | } |
| | |
| | | package com.gkhy.safePlatform.targetDuty.controller; |
| | | import java.util.Date; |
| | | import java.util.*; |
| | | import java.sql.Timestamp; |
| | | |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | import com.gkhy.safePlatform.targetDuty.entity.ExamineItem; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetExamine; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetMng; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.ExamineTemplateSaveOrUpdate; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetExamineSaveOrUpdate; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineTemplateDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetExamineDivideDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetExamineDto; |
| | | import com.gkhy.safePlatform.targetDuty.service.CommonService; |
| | | import com.gkhy.safePlatform.targetDuty.service.TargetExamineService; |
| | | import com.gkhy.safePlatform.targetDuty.service.TargetMngService; |
| | | import com.google.common.collect.Lists; |
| | |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetExamineQueryCriteria; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.stream.Collectors; |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * (TargetExamine)表控制层 |
| | |
| | | @Resource |
| | | private TargetMngService targetMngService; |
| | | |
| | | @Resource |
| | | private CommonService commonService; |
| | | |
| | | /** |
| | | * 通过主键查询单条数据 |
| | | * |
| | |
| | | |
| | | TargetExamineQueryCriteria criteria = new TargetExamineQueryCriteria(); |
| | | criteria.setTargetId(targetId); |
| | | dto.setExamineList(this.targetExamineService.queryAll(criteria)); |
| | | |
| | | List<TargetExamineDivideDto> respList = BeanCopyUtils.copyBeanList(this.targetExamineService.queryAll(criteria), TargetExamineDivideDto.class); |
| | | |
| | | |
| | | // --------------------------- 获取部门信息----------------------- |
| | | //收集所用到的部门ID |
| | | Set<Long> collectDepIdSet = new HashSet(); |
| | | respList.forEach(f->{ |
| | | collectDepIdSet.add(f.getDutyDepartmentId()); |
| | | collectDepIdSet.add(f.getMakerDepartmentId()); |
| | | }); |
| | | //获取部门名集合 |
| | | Map<Long,String> depNameMap = commonService.getDepName(collectDepIdSet); |
| | | |
| | | respList.forEach(f->{ |
| | | f.setDutyDepartmentName(depNameMap.get(f.getDutyDepartmentId())); |
| | | f.setMakerDepartmentName(depNameMap.get(f.getMakerDepartmentId())); |
| | | }); |
| | | |
| | | dto.setExamineList(respList); |
| | | dto.setId(targetMng.getId()); |
| | | dto.setIndexNum(targetMng.getIndexNum()); |
| | | dto.setqName(targetMng.getqName()); |
| | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.gkhy.safePlatform.commons.co.ContextCacheUser; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetDivideDetail; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetMng; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetCheckAndSubmitQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetMngImportExcel; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetMngQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetMngExcel; |
| | |
| | | import com.gkhy.safePlatform.targetDuty.utils.poihelper.ExcelUtil; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.Authentication; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | return new ResultVO<>(ResultCodes.CLIENT_PARAM_ILLEGAL,"缺少targetType"); |
| | | } |
| | | PageUtils.checkCheck(pageQuery); |
| | | return this.targetMngService.queryAll(pageQuery); |
| | | return this.targetMngService.queryAll(pageQuery); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 分页查询所有数据 -- 【目标检查上报页面】使用 |
| | | * |
| | | * @param pageQuery 查询实体 |
| | | * @return 所有数据 |
| | | */ |
| | | @PostMapping(value = "/checkAndSubimt/list") |
| | | public ResultVO list(Authentication authentication, @RequestBody PageQuery<TargetCheckAndSubmitQueryCriteria> pageQuery){ |
| | | if(pageQuery.getSearchParams().getTargetType() == null){ |
| | | return new ResultVO<>(ResultCodes.CLIENT_PARAM_ILLEGAL,"缺少targetType"); |
| | | } |
| | | PageUtils.checkCheck(pageQuery); |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | return this.targetMngService.queryAll(currentUser.getUid(),pageQuery); |
| | | } |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | TargetMng mng = new TargetMng(); |
| | | mng.setqName("12"); |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.entity; |
| | | |
| | | import java.sql.Timestamp; |
| | | import com.gkhy.safePlatform.targetDuty.entity.BaseDomain; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | /** |
| | | * 目标责任管理工作流审批表(TargetDutyWorkApprove)表实体类 |
| | | * |
| | | * @author xurui |
| | | * @since 2022-08-11 13:37:37 |
| | | */ |
| | | @SuppressWarnings("serial") |
| | | @TableName("target_duty_work_approve") |
| | | public class TargetDutyWorkApprove extends BaseDomain { |
| | | |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | //删除标识:0正常1删除 |
| | | private Integer delFlag; |
| | | |
| | | public Integer getDelFlag() { |
| | | return delFlag; |
| | | } |
| | | |
| | | public void setDelFlag(Integer delFlag) { |
| | | this.delFlag = delFlag; |
| | | } |
| | | //创建时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp gmtCreate; |
| | | |
| | | public Timestamp getGmtCreate() { |
| | | return gmtCreate; |
| | | } |
| | | |
| | | public void setGmtCreate(Timestamp gmtCreate) { |
| | | this.gmtCreate = gmtCreate; |
| | | } |
| | | //更新时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp gmtModitify; |
| | | |
| | | public Timestamp getGmtModitify() { |
| | | return gmtModitify; |
| | | } |
| | | |
| | | public void setGmtModitify(Timestamp gmtModitify) { |
| | | this.gmtModitify = gmtModitify; |
| | | } |
| | | //创建人uid |
| | | private Long createUid; |
| | | |
| | | public Long getCreateUid() { |
| | | return createUid; |
| | | } |
| | | |
| | | public void setCreateUid(Long createUid) { |
| | | this.createUid = createUid; |
| | | } |
| | | //更新人uid |
| | | private Long updateUid; |
| | | |
| | | public Long getUpdateUid() { |
| | | return updateUid; |
| | | } |
| | | |
| | | public void setUpdateUid(Long updateUid) { |
| | | this.updateUid = updateUid; |
| | | } |
| | | //流程名称 |
| | | private String workName; |
| | | |
| | | public String getWorkName() { |
| | | return workName; |
| | | } |
| | | |
| | | public void setWorkName(String workName) { |
| | | this.workName = workName; |
| | | } |
| | | //流程标题 |
| | | private String title; |
| | | |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | //提交人ID/外键 |
| | | private Long submitPersonId; |
| | | |
| | | public Long getSubmitPersonId() { |
| | | return submitPersonId; |
| | | } |
| | | |
| | | public void setSubmitPersonId(Long submitPersonId) { |
| | | this.submitPersonId = submitPersonId; |
| | | } |
| | | //提交人名称/外键 |
| | | private String submitPersonName; |
| | | |
| | | public String getSubmitPersonName() { |
| | | return submitPersonName; |
| | | } |
| | | |
| | | public void setSubmitPersonName(String submitPersonName) { |
| | | this.submitPersonName = submitPersonName; |
| | | } |
| | | //审批人ID/外键 |
| | | private Long approvePersonId; |
| | | |
| | | public Long getApprovePersonId() { |
| | | return approvePersonId; |
| | | } |
| | | |
| | | public void setApprovePersonId(Long approvePersonId) { |
| | | this.approvePersonId = approvePersonId; |
| | | } |
| | | //审批人名称/外键 |
| | | private String approvePersonName; |
| | | |
| | | public String getApprovePersonName() { |
| | | return approvePersonName; |
| | | } |
| | | |
| | | public void setApprovePersonName(String approvePersonName) { |
| | | this.approvePersonName = approvePersonName; |
| | | } |
| | | //审批状态 1:未审批 2:审批中 3:审批完成 |
| | | private Integer approveStatus; |
| | | |
| | | public Integer getApproveStatus() { |
| | | return approveStatus; |
| | | } |
| | | |
| | | public void setApproveStatus(Integer approveStatus) { |
| | | this.approveStatus = approveStatus; |
| | | } |
| | | //审批结果 0:不通过 1:通过 |
| | | private Integer approveResult; |
| | | |
| | | public Integer getApproveResult() { |
| | | return approveResult; |
| | | } |
| | | |
| | | public void setApproveResult(Integer approveResult) { |
| | | this.approveResult = approveResult; |
| | | } |
| | | //审批意见 |
| | | private String approveMemo; |
| | | |
| | | public String getApproveMemo() { |
| | | return approveMemo; |
| | | } |
| | | |
| | | public void setApproveMemo(String approveMemo) { |
| | | this.approveMemo = approveMemo; |
| | | } |
| | | //关联业务类型 1:目标检查 2:目标上报 |
| | | private Integer relateType; |
| | | |
| | | public Integer getRelateType() { |
| | | return relateType; |
| | | } |
| | | |
| | | public void setRelateType(Integer relateType) { |
| | | this.relateType = relateType; |
| | | } |
| | | //关联的审批对象表ID |
| | | private Long relateId; |
| | | |
| | | public Long getRelateId() { |
| | | return relateId; |
| | | } |
| | | |
| | | public void setRelateId(Long relateId) { |
| | | this.relateId = relateId; |
| | | } |
| | | //关联业务json |
| | | private String relateDesc; |
| | | |
| | | public String getRelateDesc() { |
| | | return relateDesc; |
| | | } |
| | | |
| | | public void setRelateDesc(String relateDesc) { |
| | | this.relateDesc = relateDesc; |
| | | } |
| | | //排序 |
| | | private Integer sort; |
| | | |
| | | public Integer getSort() { |
| | | return sort; |
| | | } |
| | | |
| | | public void setSort(Integer sort) { |
| | | this.sort = sort; |
| | | } |
| | | //下一级的工作流ID |
| | | private Long childId; |
| | | |
| | | public Long getChildId() { |
| | | return childId; |
| | | } |
| | | |
| | | public void setChildId(Long childId) { |
| | | this.childId = childId; |
| | | } |
| | | |
| | | } |
| | |
| | | package com.gkhy.safePlatform.targetDuty.entity; |
| | | |
| | | import java.sql.Timestamp; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.gkhy.safePlatform.targetDuty.entity.BaseDomain; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | /** |
| | | * (TargetExamine)表实体类 |
| | | * 安全目标考核(TargetExamine)表实体类 |
| | | * |
| | | * @author xurui |
| | | * @since 2022-07-22 09:30:01 |
| | | * @since 2022-08-12 08:07:53 |
| | | */ |
| | | @SuppressWarnings("serial") |
| | | @TableName("target_examine") |
| | |
| | | } |
| | | |
| | | //关联的目标指标/外键 |
| | | private Long targetId; |
| | | private Long targetId; |
| | | |
| | | public Long getTargetId() { |
| | | return targetId; |
| | |
| | | this.targetId = targetId; |
| | | } |
| | | //责任部门id/外键 |
| | | private Long dutyDepartmentId; |
| | | private Long dutyDepartmentId; |
| | | |
| | | public Long getDutyDepartmentId() { |
| | | return dutyDepartmentId; |
| | |
| | | this.dutyDepartmentId = dutyDepartmentId; |
| | | } |
| | | //考核指标 |
| | | private String examineValue; |
| | | private String examineValue; |
| | | |
| | | public String getExamineValue() { |
| | | return examineValue; |
| | |
| | | public void setExamineValue(String examineValue) { |
| | | this.examineValue = examineValue; |
| | | } |
| | | //制定部门/外键 |
| | | private Long makerDepartmentId; |
| | | //制定部门id/外键 |
| | | private Long makerDepartmentId; |
| | | |
| | | public Long getMakerDepartmentId() { |
| | | return makerDepartmentId; |
| | |
| | | this.makerDepartmentId = makerDepartmentId; |
| | | } |
| | | //制定日期 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp makeDate; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp makeDate; |
| | | |
| | | public Timestamp getMakeDate() { |
| | | return makeDate; |
| | |
| | | this.makeDate = makeDate; |
| | | } |
| | | //上报值 |
| | | private String uploadValue; |
| | | private String uploadValue; |
| | | |
| | | public String getUploadValue() { |
| | | return uploadValue; |
| | |
| | | this.uploadValue = uploadValue; |
| | | } |
| | | //上报时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp uploadDate; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp uploadDate; |
| | | |
| | | public Timestamp getUploadDate() { |
| | | return uploadDate; |
| | |
| | | this.uploadDate = uploadDate; |
| | | } |
| | | //考核结果 1:合格 2:不合格 |
| | | private Integer examineResult; |
| | | private Integer examineResult; |
| | | |
| | | public Integer getExamineResult() { |
| | | return examineResult; |
| | |
| | | this.examineResult = examineResult; |
| | | } |
| | | //考核人ID/外键 |
| | | private Long examinePersonId; |
| | | private Long examinePersonId; |
| | | |
| | | public Long getExaminePersonId() { |
| | | return examinePersonId; |
| | |
| | | public void setExaminePersonId(Long examinePersonId) { |
| | | this.examinePersonId = examinePersonId; |
| | | } |
| | | //考核人名称 |
| | | private String examinePersonName; |
| | | |
| | | public String getExaminePersonName() { |
| | | return examinePersonName; |
| | | } |
| | | |
| | | public void setExaminePersonName(String examinePersonName) { |
| | | this.examinePersonName = examinePersonName; |
| | | } |
| | | //考核时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp examineDate; |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp examineDate; |
| | | |
| | | public Timestamp getExamineDate() { |
| | | return examineDate; |
| | |
| | | E1("T1001" , "关联的目标指标不存在"), |
| | | E2("T1002" , "关联的目标指标已被分解"), |
| | | |
| | | APPROVE_RELATE_ID_NULL("A1001","审批业务类型不可为空"), |
| | | |
| | | APPROVE_RELATE_TYPE_NULL("A1002","审批业务对象不可为空"), |
| | | |
| | | APPROVE_PERSON_NULL("A1003","审批人不可为空"), |
| | | |
| | | APPROVE_STATUS_NULL("A1004","审批状态不可为空"), |
| | | |
| | | APPROVE_NOT_EXIST("A1005" , "审批记录不存在"), |
| | | ERROR("A3000", "未知错误"); |
| | | |
| | | private String code; |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.model.dto.req; |
| | | |
| | | import com.gkhy.safePlatform.targetDuty.annotation.Query; |
| | | |
| | | public class TargetCheckAndSubmitQueryCriteria { |
| | | //安全目标指标 |
| | | @Query(type = Query.Type.INNER_LIKE) |
| | | private String qName; |
| | | //目标指标编号 |
| | | @Query(type = Query.Type.INNER_LIKE) |
| | | private String indexNum; |
| | | //指标类型 1:年指标 2:月指标 |
| | | @Query() |
| | | private Integer targetType; |
| | | //分解状态 1:已分解 2:未分解 |
| | | @Query() |
| | | private Integer divideStatus; |
| | | //关联业务类型 1:目标检查 2:目标上报 |
| | | private Integer relateType; |
| | | |
| | | public Integer getRelateType() { |
| | | return relateType; |
| | | } |
| | | |
| | | public void setRelateType(Integer relateType) { |
| | | this.relateType = relateType; |
| | | } |
| | | |
| | | public Integer getDivideStatus() { |
| | | return divideStatus; |
| | | } |
| | | |
| | | public void setDivideStatus(Integer divideStatus) { |
| | | this.divideStatus = divideStatus; |
| | | } |
| | | |
| | | //安全目标指标 |
| | | |
| | | public String getqName() { |
| | | return qName; |
| | | } |
| | | |
| | | public void setqName(String qName) { |
| | | this.qName = qName; |
| | | } |
| | | |
| | | //目标指标编号 |
| | | public String getIndexNum() { |
| | | return indexNum; |
| | | } |
| | | |
| | | public void setIndexNum(String indexNum) { |
| | | this.indexNum = indexNum; |
| | | } |
| | | //指标类型 1:年指标 2:月指标 |
| | | public Integer getTargetType() { |
| | | return targetType; |
| | | } |
| | | |
| | | public void setTargetType(Integer targetType) { |
| | | this.targetType = targetType; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.model.dto.req; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.gkhy.safePlatform.targetDuty.annotation.Query; |
| | | |
| | | public class TargetDutyWorkApproveQueryCriteria { |
| | | //关联业务类型 1:目标检查 2:目标上报 |
| | | @Query() |
| | | private Integer relateType; |
| | | //关联的审批对象表ID |
| | | @Query() |
| | | private Long relateId; |
| | | |
| | | @Query(type = Query.Type.BETWEEN) |
| | | private List<Timestamp> gmtCreate; |
| | | |
| | | public Integer getRelateType() { |
| | | return relateType; |
| | | } |
| | | |
| | | public void setRelateType(Integer relateType) { |
| | | this.relateType = relateType; |
| | | } |
| | | |
| | | public Long getRelateId() { |
| | | return relateId; |
| | | } |
| | | |
| | | public void setRelateId(Long relateId) { |
| | | this.relateId = relateId; |
| | | } |
| | | |
| | | public List<Timestamp> getGmtCreate() { |
| | | return gmtCreate; |
| | | } |
| | | |
| | | public void setGmtCreate(List<Timestamp> gmtCreate) { |
| | | this.gmtCreate = gmtCreate; |
| | | } |
| | | } |
| | |
| | | private String content; |
| | | //本次得分 |
| | | private String number; |
| | | //评定标准 |
| | | private String judgeStandard; |
| | | |
| | | public String getJudgeStandard() { |
| | | return judgeStandard; |
| | | } |
| | | |
| | | public void setJudgeStandard(String judgeStandard) { |
| | | this.judgeStandard = judgeStandard; |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | private Long id; |
| | | //绩效考核模板ID/外键 |
| | | private Long examineTemplateId; |
| | | //绩效考核模板名称 |
| | | private String examineTemplateName; |
| | | //考核标题 |
| | | private String title; |
| | | //考核项目 |
| | |
| | | public void setUpdateTime(Timestamp updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public String getExamineTemplateName() { |
| | | return examineTemplateName; |
| | | } |
| | | |
| | | public void setExamineTemplateName(String examineTemplateName) { |
| | | this.examineTemplateName = examineTemplateName; |
| | | } |
| | | } |
| | |
| | | //设定人/外键 |
| | | private Long setPersonId; |
| | | //设定人名称 |
| | | private Long setPersonName; |
| | | private String setPersonName; |
| | | //设定部门ID/外键 |
| | | private Long setPersonDepartmentId; |
| | | //设定部门名称 |
| | |
| | | this.updateTime = updateTime; |
| | | } |
| | | |
| | | public Long getSetPersonName() { |
| | | public String getSetPersonName() { |
| | | return setPersonName; |
| | | } |
| | | |
| | | public void setSetPersonName(Long setPersonName) { |
| | | public void setSetPersonName(String setPersonName) { |
| | | this.setPersonName = setPersonName; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.model.dto.resp; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.gkhy.safePlatform.targetDuty.entity.BaseDomain; |
| | | |
| | | import java.sql.Timestamp; |
| | | |
| | | @SuppressWarnings("serial") |
| | | public class ListCheckDataDto { |
| | | |
| | | //考核指标值 |
| | | private String value; |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | //制定日期 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp makeDate; |
| | | |
| | | public Timestamp getMakeDate() { |
| | | return makeDate; |
| | | } |
| | | |
| | | public void setMakeDate(Timestamp makeDate) { |
| | | this.makeDate = makeDate; |
| | | } |
| | | //责任部门/外键 |
| | | private Long dutyDepartmentId; |
| | | //责任部门名称 |
| | | private String dutyDepartmentName; |
| | | |
| | | public Long getDutyDepartmentId() { |
| | | return dutyDepartmentId; |
| | | } |
| | | |
| | | public void setDutyDepartmentId(Long dutyDepartmentId) { |
| | | this.dutyDepartmentId = dutyDepartmentId; |
| | | } |
| | | //制定人部门/外键 |
| | | private Long makerDepartmentId; |
| | | |
| | | //制定人部门名称 |
| | | private String makerDepartmentName; |
| | | |
| | | public String getDutyDepartmentName() { |
| | | return dutyDepartmentName; |
| | | } |
| | | |
| | | public void setDutyDepartmentName(String dutyDepartmentName) { |
| | | this.dutyDepartmentName = dutyDepartmentName; |
| | | } |
| | | |
| | | public String getMakerDepartmentName() { |
| | | return makerDepartmentName; |
| | | } |
| | | |
| | | public void setMakerDepartmentName(String makerDepartmentName) { |
| | | this.makerDepartmentName = makerDepartmentName; |
| | | } |
| | | |
| | | public Long getMakerDepartmentId() { |
| | | return makerDepartmentId; |
| | | } |
| | | |
| | | public void setMakerDepartmentId(Long makerDepartmentId) { |
| | | this.makerDepartmentId = makerDepartmentId; |
| | | } |
| | | //创建时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp gmtCreate; |
| | | |
| | | public Timestamp getGmtCreate() { |
| | | return gmtCreate; |
| | | } |
| | | |
| | | public void setGmtCreate(Timestamp gmtCreate) { |
| | | this.gmtCreate = gmtCreate; |
| | | } |
| | | |
| | | //关联业务json |
| | | private String relateDesc; |
| | | |
| | | public String getRelateDesc() { |
| | | return relateDesc; |
| | | } |
| | | |
| | | public void setRelateDesc(String relateDesc) { |
| | | this.relateDesc = relateDesc; |
| | | } |
| | | } |
| | |
| | | private Long id; |
| | | //奖惩标准/外键 |
| | | private Long rewardPunishmentStandardId; |
| | | //奖惩标准名称 |
| | | private String rewardPunishmentStandardName; |
| | | //员工(多个用逗号隔开) |
| | | private String personId; |
| | | //被奖惩者 |
| | |
| | | this.id = id; |
| | | } |
| | | |
| | | //备注信息 |
| | | private String memo; |
| | | |
| | | public String getMemo() { |
| | | return memo; |
| | | } |
| | | |
| | | public void setMemo(String memo) { |
| | | this.memo = memo; |
| | | } |
| | | |
| | | public Long getRewardPunishmentStandardId() { |
| | | return rewardPunishmentStandardId; |
| | | } |
| | |
| | | public void setCreateTime(Timestamp createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public void setRewardPunishmentStandardName(String rewardPunishmentStandardName) { |
| | | this.rewardPunishmentStandardName = rewardPunishmentStandardName; |
| | | } |
| | | |
| | | public String getRewardPunishmentStandardName() { |
| | | return rewardPunishmentStandardName; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.model.dto.resp; |
| | | |
| | | import java.io.Serializable; |
| | | import java.sql.Timestamp; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class TargetCheckAndSubmitDto implements Serializable { |
| | | |
| | | // 最新的审批id |
| | | private Long approveId; |
| | | |
| | | public Long getApproveId() { |
| | | return approveId; |
| | | } |
| | | |
| | | public void setApproveId(Long approveId) { |
| | | this.approveId = approveId; |
| | | } |
| | | |
| | | // 最新的审批状态 |
| | | private Integer approveStatus; |
| | | |
| | | // 最新的审批人 |
| | | private Long approvePersonId; |
| | | |
| | | // 审批人是否为当前登录人 |
| | | private Boolean checkApprove; |
| | | |
| | | public Integer getApproveStatus() { |
| | | return approveStatus; |
| | | } |
| | | |
| | | public void setApproveStatus(Integer approveStatus) { |
| | | this.approveStatus = approveStatus; |
| | | } |
| | | |
| | | public Long getApprovePersonId() { |
| | | return approvePersonId; |
| | | } |
| | | |
| | | public void setApprovePersonId(Long approvePersonId) { |
| | | this.approvePersonId = approvePersonId; |
| | | } |
| | | |
| | | public Boolean getCheckApprove() { |
| | | return checkApprove; |
| | | } |
| | | |
| | | public void setCheckApprove(Boolean checkApprove) { |
| | | this.checkApprove = checkApprove; |
| | | } |
| | | |
| | | private Long id; |
| | | //安全目标指标 |
| | | private String qName; |
| | | //目标指标编号 |
| | | private String indexNum; |
| | | //年度 |
| | | private String year; |
| | | //指标值 |
| | | private String value; |
| | | //指标级别 1:公司级 2:部门分厂级 3:工段班组级 |
| | | private Integer level; |
| | | //完成期限 |
| | | private Timestamp completeDate; |
| | | //备注信息 |
| | | private String memo; |
| | | //指标类型 1:年指标 2:月指标 |
| | | private Integer targetType; |
| | | //分解状态 1:已分解 2:未分解 |
| | | private Integer divideStatus; |
| | | |
| | | private Timestamp createTime; |
| | | |
| | | private Timestamp updateTime; |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getqName() { |
| | | return qName; |
| | | } |
| | | |
| | | public void setqName(String qName) { |
| | | this.qName = qName; |
| | | } |
| | | |
| | | //目标指标编号 |
| | | public String getIndexNum() { |
| | | return indexNum; |
| | | } |
| | | |
| | | public void setIndexNum(String indexNum) { |
| | | this.indexNum = indexNum; |
| | | } |
| | | //年度 |
| | | public String getYear() { |
| | | return year; |
| | | } |
| | | |
| | | public void setYear(String year) { |
| | | this.year = year; |
| | | } |
| | | //指标值 |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | //指标级别 1:公司级 2:部门分厂级 3:工段班组级 |
| | | public Integer getLevel() { |
| | | return level; |
| | | } |
| | | |
| | | public void setLevel(Integer level) { |
| | | this.level = level; |
| | | } |
| | | //完成期限 |
| | | public Timestamp getCompleteDate() { |
| | | return completeDate; |
| | | } |
| | | |
| | | public void setCompleteDate(Timestamp completeDate) { |
| | | this.completeDate = completeDate; |
| | | } |
| | | //备注信息 |
| | | public String getMemo() { |
| | | return memo; |
| | | } |
| | | |
| | | public void setMemo(String memo) { |
| | | this.memo = memo; |
| | | } |
| | | //指标类型 1:年指标 2:月指标 |
| | | public Integer getTargetType() { |
| | | return targetType; |
| | | } |
| | | |
| | | public void setTargetType(Integer targetType) { |
| | | this.targetType = targetType; |
| | | } |
| | | //分解状态 1:已分解 2:未分解 |
| | | public Integer getDivideStatus() { |
| | | return divideStatus; |
| | | } |
| | | |
| | | public void setDivideStatus(Integer divideStatus) { |
| | | this.divideStatus = divideStatus; |
| | | } |
| | | |
| | | public Timestamp getCreateTime() { |
| | | return createTime; |
| | | } |
| | | |
| | | public void setCreateTime(Timestamp createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | |
| | | public Timestamp getUpdateTime() { |
| | | return updateTime; |
| | | } |
| | | |
| | | public void setUpdateTime(Timestamp updateTime) { |
| | | this.updateTime = updateTime; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.model.dto.resp; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.io.Serializable; |
| | | |
| | | public class TargetDutyWorkApproveDto implements Serializable { |
| | | |
| | | private Long id; |
| | | //删除标识:0正常1删除 |
| | | private Integer delFlag; |
| | | //创建时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp gmtCreate; |
| | | //更新时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp gmtModitify; |
| | | //创建人uid |
| | | private Long createUid; |
| | | //更新人uid |
| | | private Long updateUid; |
| | | //流程名称 |
| | | private String workName; |
| | | //流程标题 |
| | | private String title; |
| | | //提交人ID/外键 |
| | | private Long submitPersonId; |
| | | //提交人名称/外键 |
| | | private String submitPersonName; |
| | | //审批人ID/外键 |
| | | private Long approvePersonId; |
| | | //审批人名称/外键 |
| | | private String approvePersonName; |
| | | //审批状态 1:未审批 2:审批中 3:审批完成 |
| | | private Integer approveStatus; |
| | | //审批结果 0:不通过 1:通过 |
| | | private Integer approveResult; |
| | | //审批意见 |
| | | private String approveMemo; |
| | | //关联业务类型 1:目标检查 2:目标上报 |
| | | private Integer relateType; |
| | | //关联的审批对象表ID |
| | | private Long relateId; |
| | | //关联业务说明 |
| | | private String relateDesc; |
| | | //排序 |
| | | private Integer sort; |
| | | |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | //删除标识:0正常1删除 |
| | | public Integer getDelFlag() { |
| | | return delFlag; |
| | | } |
| | | |
| | | public void setDelFlag(Integer delFlag) { |
| | | this.delFlag = delFlag; |
| | | } |
| | | //创建时间 |
| | | public Timestamp getGmtCreate() { |
| | | return gmtCreate; |
| | | } |
| | | |
| | | public void setGmtCreate(Timestamp gmtCreate) { |
| | | this.gmtCreate = gmtCreate; |
| | | } |
| | | //更新时间 |
| | | public Timestamp getGmtModitify() { |
| | | return gmtModitify; |
| | | } |
| | | |
| | | public void setGmtModitify(Timestamp gmtModitify) { |
| | | this.gmtModitify = gmtModitify; |
| | | } |
| | | //创建人uid |
| | | public Long getCreateUid() { |
| | | return createUid; |
| | | } |
| | | |
| | | public void setCreateUid(Long createUid) { |
| | | this.createUid = createUid; |
| | | } |
| | | //更新人uid |
| | | public Long getUpdateUid() { |
| | | return updateUid; |
| | | } |
| | | |
| | | public void setUpdateUid(Long updateUid) { |
| | | this.updateUid = updateUid; |
| | | } |
| | | //流程名称 |
| | | public String getWorkName() { |
| | | return workName; |
| | | } |
| | | |
| | | public void setWorkName(String workName) { |
| | | this.workName = workName; |
| | | } |
| | | //流程标题 |
| | | public String getTitle() { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) { |
| | | this.title = title; |
| | | } |
| | | //提交人ID/外键 |
| | | public Long getSubmitPersonId() { |
| | | return submitPersonId; |
| | | } |
| | | |
| | | public void setSubmitPersonId(Long submitPersonId) { |
| | | this.submitPersonId = submitPersonId; |
| | | } |
| | | //提交人名称/外键 |
| | | public String getSubmitPersonName() { |
| | | return submitPersonName; |
| | | } |
| | | |
| | | public void setSubmitPersonName(String submitPersonName) { |
| | | this.submitPersonName = submitPersonName; |
| | | } |
| | | //审批人ID/外键 |
| | | public Long getApprovePersonId() { |
| | | return approvePersonId; |
| | | } |
| | | |
| | | public void setApprovePersonId(Long approvePersonId) { |
| | | this.approvePersonId = approvePersonId; |
| | | } |
| | | //审批人名称/外键 |
| | | public String getApprovePersonName() { |
| | | return approvePersonName; |
| | | } |
| | | |
| | | public void setApprovePersonName(String approvePersonName) { |
| | | this.approvePersonName = approvePersonName; |
| | | } |
| | | //审批状态 1:未审批 2:审批中 3:审批完成 |
| | | public Integer getApproveStatus() { |
| | | return approveStatus; |
| | | } |
| | | |
| | | public void setApproveStatus(Integer approveStatus) { |
| | | this.approveStatus = approveStatus; |
| | | } |
| | | //审批结果 0:不通过 1:通过 |
| | | public Integer getApproveResult() { |
| | | return approveResult; |
| | | } |
| | | |
| | | public void setApproveResult(Integer approveResult) { |
| | | this.approveResult = approveResult; |
| | | } |
| | | //审批意见 |
| | | public String getApproveMemo() { |
| | | return approveMemo; |
| | | } |
| | | |
| | | public void setApproveMemo(String approveMemo) { |
| | | this.approveMemo = approveMemo; |
| | | } |
| | | //关联业务类型 1:目标检查 2:目标上报 |
| | | public Integer getRelateType() { |
| | | return relateType; |
| | | } |
| | | |
| | | public void setRelateType(Integer relateType) { |
| | | this.relateType = relateType; |
| | | } |
| | | //关联的审批对象表ID |
| | | public Long getRelateId() { |
| | | return relateId; |
| | | } |
| | | |
| | | public void setRelateId(Long relateId) { |
| | | this.relateId = relateId; |
| | | } |
| | | //关联业务说明 |
| | | public String getRelateDesc() { |
| | | return relateDesc; |
| | | } |
| | | |
| | | public void setRelateDesc(String relateDesc) { |
| | | this.relateDesc = relateDesc; |
| | | } |
| | | //排序 |
| | | public Integer getSort() { |
| | | return sort; |
| | | } |
| | | |
| | | public void setSort(Integer sort) { |
| | | this.sort = sort; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.model.dto.resp; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetExamine; |
| | | |
| | | import java.io.Serializable; |
| | | import java.sql.Timestamp; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class TargetExamineDivideDto implements Serializable { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | //关联的目标指标/外键 |
| | | private Long targetId; |
| | | |
| | | public Long getTargetId() { |
| | | return targetId; |
| | | } |
| | | |
| | | public void setTargetId(Long targetId) { |
| | | this.targetId = targetId; |
| | | } |
| | | //责任部门id/外键 |
| | | private Long dutyDepartmentId; |
| | | |
| | | public Long getDutyDepartmentId() { |
| | | return dutyDepartmentId; |
| | | } |
| | | |
| | | public void setDutyDepartmentId(Long dutyDepartmentId) { |
| | | this.dutyDepartmentId = dutyDepartmentId; |
| | | } |
| | | |
| | | //责任部门名称 |
| | | private String dutyDepartmentName; |
| | | |
| | | //考核指标 |
| | | private String examineValue; |
| | | |
| | | public String getExamineValue() { |
| | | return examineValue; |
| | | } |
| | | |
| | | public void setExamineValue(String examineValue) { |
| | | this.examineValue = examineValue; |
| | | } |
| | | //制定部门id/外键 |
| | | private Long makerDepartmentId; |
| | | |
| | | public Long getMakerDepartmentId() { |
| | | return makerDepartmentId; |
| | | } |
| | | |
| | | public void setMakerDepartmentId(Long makerDepartmentId) { |
| | | this.makerDepartmentId = makerDepartmentId; |
| | | } |
| | | |
| | | //制定部门名称 |
| | | private String makerDepartmentName; |
| | | |
| | | //制定日期 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp makeDate; |
| | | |
| | | public Timestamp getMakeDate() { |
| | | return makeDate; |
| | | } |
| | | |
| | | public void setMakeDate(Timestamp makeDate) { |
| | | this.makeDate = makeDate; |
| | | } |
| | | //上报值 |
| | | private String uploadValue; |
| | | |
| | | public String getUploadValue() { |
| | | return uploadValue; |
| | | } |
| | | |
| | | public void setUploadValue(String uploadValue) { |
| | | this.uploadValue = uploadValue; |
| | | } |
| | | //上报时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp uploadDate; |
| | | |
| | | public Timestamp getUploadDate() { |
| | | return uploadDate; |
| | | } |
| | | |
| | | public void setUploadDate(Timestamp uploadDate) { |
| | | this.uploadDate = uploadDate; |
| | | } |
| | | //考核结果 1:合格 2:不合格 |
| | | private Integer examineResult; |
| | | |
| | | public Integer getExamineResult() { |
| | | return examineResult; |
| | | } |
| | | |
| | | public void setExamineResult(Integer examineResult) { |
| | | this.examineResult = examineResult; |
| | | } |
| | | //考核人ID/外键 |
| | | private Long examinePersonId; |
| | | |
| | | public Long getExaminePersonId() { |
| | | return examinePersonId; |
| | | } |
| | | |
| | | public void setExaminePersonId(Long examinePersonId) { |
| | | this.examinePersonId = examinePersonId; |
| | | } |
| | | //考核人名称 |
| | | private String examinePersonName; |
| | | |
| | | public String getExaminePersonName() { |
| | | return examinePersonName; |
| | | } |
| | | |
| | | public void setExaminePersonName(String examinePersonName) { |
| | | this.examinePersonName = examinePersonName; |
| | | } |
| | | //考核时间 |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private Timestamp examineDate; |
| | | |
| | | public Timestamp getExamineDate() { |
| | | return examineDate; |
| | | } |
| | | |
| | | public void setExamineDate(Timestamp examineDate) { |
| | | this.examineDate = examineDate; |
| | | } |
| | | |
| | | public String getDutyDepartmentName() { |
| | | return dutyDepartmentName; |
| | | } |
| | | |
| | | public void setDutyDepartmentName(String dutyDepartmentName) { |
| | | this.dutyDepartmentName = dutyDepartmentName; |
| | | } |
| | | |
| | | public String getMakerDepartmentName() { |
| | | return makerDepartmentName; |
| | | } |
| | | |
| | | public void setMakerDepartmentName(String makerDepartmentName) { |
| | | this.makerDepartmentName = makerDepartmentName; |
| | | } |
| | | } |
| | |
| | | //指标值 |
| | | private String value; |
| | | //关联的考核数据列表 |
| | | private List<TargetExamine> examineList = new ArrayList<>(); |
| | | private List<TargetExamineDivideDto> examineList = new ArrayList<>(); |
| | | |
| | | public Long getId() { |
| | | return id; |
| | |
| | | this.value = value; |
| | | } |
| | | |
| | | public List<TargetExamine> getExamineList() { |
| | | public List<TargetExamineDivideDto> getExamineList() { |
| | | return examineList; |
| | | } |
| | | |
| | | public void setExamineList(List<TargetExamine> examineList) { |
| | | public void setExamineList(List<TargetExamineDivideDto> examineList) { |
| | | this.examineList = examineList; |
| | | } |
| | | } |
| | |
| | | package com.gkhy.safePlatform.targetDuty.repository; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.gkhy.safePlatform.targetDuty.entity.RewardPunishmentDetail; |
| | |
| | | @Repository |
| | | public interface RewardPunishmentDetailRepository extends BaseMapper<RewardPunishmentDetail> { |
| | | |
| | | @Select("<script> select a.id,a.person_id,a.create_time ,b.standard_type ,b.content ,b.q_name ,b.reason " + |
| | | @Select("<script> select a.id,a.person_id,a.person_name,a.create_time ,a.memo,b.standard_type ,b.content ,b.q_name ,b.reason " + |
| | | "from reward_punishment_detail a left join reward_punishment_standard b on a.reward_punishment_standard_id=b.id where 1=1 " + |
| | | "<if test =\"personId !='' and personId !=null\">and a.person_id =#{personId}</if> </script> ") |
| | | "<if test =\"personId !='' and personId !=null\">and find_in_set( #{personId}, a.person_id )</if> </script> ") |
| | | IPage<RewardPunishmentDetailDto> queryAll(IPage<RewardPunishmentDetailDto> page, @Param("personId") String personId); |
| | | |
| | | @Select("<script> select a.id,a.person_id,a.create_time ,b.standard_type ,b.content ,b.q_name ,b.reason " + |
| | | @Select("<script> select a.id,a.person_id,a.person_name,a.create_time ,a.memo,b.standard_type ,b.content ,b.q_name ,b.reason " + |
| | | "from reward_punishment_detail a left join reward_punishment_standard b on a.reward_punishment_standard_id=b.id where 1=1 " + |
| | | "<if test =\"personId !='' and personId !=null\">and a.person_id =#{personId}</if> </script> ") |
| | | List<RewardPunishmentDetail> queryAll( @Param("personId")String personId); |
| | | } |
| | | "<if test =\"personId !='' and personId !=null\">and find_in_set( #{personId}, a.person_id )</if> </script> ") |
| | | List<RewardPunishmentDetail> queryAll(@Param("personId") String personId); |
| | | |
| | | |
| | | // @Select("<script> select a.id,a.person_id,a.person_name,a.create_time ,a.memo,b.standard_type ,b.content ,b.q_name ,b.reason " + |
| | | // "from reward_punishment_detail a left join reward_punishment_standard b on a.reward_punishment_standard_id=b.id where 1=1 " + |
| | | // "<if test =\"personId !='' and personId !=null\">and a.person_id =#{personId}</if> </script> ") |
| | | // List<RewardPunishmentDetail> queryAll( @Param("personId")String personId); |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.repository; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetDutyWorkApprove; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ListCheckDataDto; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | /** |
| | | * 目标责任管理工作流审批表(TargetDutyWorkApprove)表数据库访问层 |
| | | * |
| | | * @author xurui |
| | | * @since 2022-08-11 10:13:37 |
| | | */ |
| | | @Repository |
| | | public interface TargetDutyWorkApproveRepository extends BaseMapper<TargetDutyWorkApprove> { |
| | | |
| | | @Select("<script> select c.duty_department_id,c.value,c.maker_department_id,c.make_date,a.relate_desc,a.gmt_create " + |
| | | "from target_duty_work_approve a INNER JOIN target_divide_detail c on a.relate_id = c.target_id where 1=1 " + |
| | | "AND a.child_id is null AND a.approve_status = 3 AND a.approve_result = 1 AND a.relate_type = 1 AND a.del_flag = 0 AND a.relate_id =#{relateId} ORDER BY a.gmt_create DESC </script> ") |
| | | IPage<ListCheckDataDto> listCheckData(IPage<ListCheckDataDto> page, @Param("relateId") Long relateId); |
| | | } |
| | |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.RewardPunishmentDetailQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.RewardPunishmentDetailDto; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | |
| | |
| | | List<RewardPunishmentDetail> queryAll(RewardPunishmentDetailQueryCriteria criteria); |
| | | |
| | | List<RewardPunishmentDetail> queryAllRelation(RewardPunishmentDetailQueryCriteria criteria); |
| | | |
| | | RewardPunishmentDetailDto selectOne(Serializable id); |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.gkhy.safePlatform.commons.co.ContextCacheUser; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetDutyWorkApprove; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetDutyWorkApproveQueryCriteria; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * 目标责任管理工作流审批表(TargetDutyWorkApprove)表服务接口 |
| | | * |
| | | * @author xurui |
| | | * @since 2022-08-11 10:13:37 |
| | | */ |
| | | public interface TargetDutyWorkApproveService extends IService<TargetDutyWorkApprove> { |
| | | ResultVO queryAll(PageQuery<TargetDutyWorkApproveQueryCriteria> pageQuery); |
| | | |
| | | List<TargetDutyWorkApprove> queryAll(TargetDutyWorkApproveQueryCriteria criteria); |
| | | |
| | | void updateInfo(ContextCacheUser currentUser, TargetDutyWorkApprove targetDutyWorkApprove); |
| | | |
| | | void addInfo(ContextCacheUser currentUser, TargetDutyWorkApprove targetDutyWorkApprove); |
| | | |
| | | ResultVO listCheckData(PageQuery<TargetDutyWorkApproveQueryCriteria> pageQuery); |
| | | } |
| | |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetMng; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetCheckAndSubmitQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetMngQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetMngDto; |
| | | |
| | |
| | | List<TargetMng> queryAll(TargetMngQueryCriteria criteria); |
| | | |
| | | Object selectOne(Serializable id); |
| | | |
| | | ResultVO queryAll(Long uid, PageQuery<TargetCheckAndSubmitQueryCriteria> pageQuery); |
| | | } |
| | |
| | | f.setBeExaminedDepartmentName(depNameMap.get(f.getBeExaminedDepartmentId())); |
| | | }); |
| | | |
| | | //获取打分明细 |
| | | respList.forEach(dto->{ |
| | | List<CurrentExamineDto> list = JSONObject.parseArray( dto.getNumberDetailJson(), CurrentExamineDto.class); |
| | | List<Long> idList = list.stream().map(CurrentExamineDto::getId).collect(Collectors.toList()); |
| | | |
| | | List<ExamineItem> itemList = examineItemRepository.selectBatchIds(idList); |
| | | Map<Long,ExamineItem> itemMap = itemList.stream().collect( |
| | | Collectors.toMap(ExamineItem::getId, Function.identity(),(k1, k2)->k1)); |
| | | |
| | | if(itemMap != null){ |
| | | list.forEach(f->{ |
| | | ExamineItem item = itemMap.get(f.getId()); |
| | | if(item != null){ |
| | | f.setItemDetail(item.getItemDetail()); |
| | | f.setContent(item.getContent()); |
| | | f.setJudgeStandard(item.getJudgeStandard()); |
| | | } |
| | | }); |
| | | } |
| | | dto.setCurrentExamineDtoList(list); |
| | | }); |
| | | |
| | | return new SearchResultVO<>( |
| | | true, |
| | | pageIndex, |
| | |
| | | if(item != null){ |
| | | f.setItemDetail(item.getItemDetail()); |
| | | f.setContent(item.getContent()); |
| | | f.setJudgeStandard(item.getJudgeStandard()); |
| | | } |
| | | }); |
| | | } |
| | |
| | | ExamineTemplate examineTemplate = examineTemplateRepository.selectOne(new QueryWrapper<ExamineTemplate>().eq("id",examineMng.getExamineTemplateId())); |
| | | if(examineTemplate != null){ |
| | | dto.setAcceptanceNumber(examineTemplate.getAcceptanceNumber()); |
| | | dto.setExamineTemplateName(examineTemplate.getTitle()); |
| | | } |
| | | |
| | | return dto; |
| | | } |
| | | } |
| | |
| | | f.setSetPersonDepartmentName(depNameMap.get(f.getSetPersonDepartmentId())); |
| | | }); |
| | | |
| | | //获取考核项目明细 |
| | | respList.forEach(f->{ |
| | | List<ExamineItem> list = examineItemRepository.selectList(new QueryWrapper<ExamineItem>().eq("examine_template_id",f.getId())); |
| | | f.setExamineItemList(list); |
| | | }); |
| | | |
| | | |
| | | return new SearchResultVO<>( |
| | | true, |
| | |
| | | package com.gkhy.safePlatform.targetDuty.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gkhy.safePlatform.targetDuty.entity.ExamineMng; |
| | | import com.gkhy.safePlatform.targetDuty.entity.ExamineTemplate; |
| | | import com.gkhy.safePlatform.targetDuty.entity.RewardPunishmentStandard; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ExamineMngDto; |
| | | import com.gkhy.safePlatform.targetDuty.repository.RewardPunishmentDetailRepository; |
| | | import com.gkhy.safePlatform.targetDuty.entity.RewardPunishmentDetail; |
| | | import com.gkhy.safePlatform.targetDuty.repository.RewardPunishmentStandardRepository; |
| | | import com.gkhy.safePlatform.targetDuty.service.RewardPunishmentDetailService; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import com.gkhy.safePlatform.targetDuty.utils.QueryHelpPlus; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | @Autowired |
| | | private RewardPunishmentDetailRepository rewardPunishmentDetailRepository; |
| | | |
| | | |
| | | @Autowired |
| | | private RewardPunishmentStandardRepository rewardPunishmentStandardRepository; |
| | | |
| | | |
| | | @Override |
| | |
| | | public List<RewardPunishmentDetail> queryAllRelation(RewardPunishmentDetailQueryCriteria criteria) { |
| | | return baseMapper.queryAll(criteria.getPersonId()); |
| | | } |
| | | |
| | | @Override |
| | | public RewardPunishmentDetailDto selectOne(Serializable id) { |
| | | RewardPunishmentDetail info = this.getById(id); |
| | | if(info == null){ |
| | | return null; |
| | | } |
| | | |
| | | RewardPunishmentDetailDto dto = BeanCopyUtils.copyBean(info, RewardPunishmentDetailDto.class); |
| | | |
| | | RewardPunishmentStandard standard = rewardPunishmentStandardRepository.selectOne(new QueryWrapper<RewardPunishmentStandard>().eq("id",dto.getRewardPunishmentStandardId())); |
| | | dto.setRewardPunishmentStandardName(standard.getqName()); |
| | | return dto; |
| | | } |
| | | } |
对比新文件 |
| | |
| | | package com.gkhy.safePlatform.targetDuty.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gkhy.safePlatform.commons.co.ContextCacheUser; |
| | | import com.gkhy.safePlatform.targetDuty.enums.TargetDutyResultCodes; |
| | | import com.gkhy.safePlatform.targetDuty.excepiton.TargetDutyException; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.ListCheckDataDto; |
| | | import com.gkhy.safePlatform.targetDuty.repository.TargetDutyWorkApproveRepository; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetDutyWorkApprove; |
| | | import com.gkhy.safePlatform.targetDuty.service.CommonService; |
| | | import com.gkhy.safePlatform.targetDuty.service.TargetDutyWorkApproveService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | | import com.gkhy.safePlatform.commons.query.PageQuery; |
| | | import com.gkhy.safePlatform.commons.vo.ResultVO; |
| | | import com.gkhy.safePlatform.commons.vo.SearchResultVO; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetDutyWorkApproveQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetDutyWorkApproveDto; |
| | | import com.gkhy.safePlatform.targetDuty.utils.QueryHelpPlus; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.sql.Timestamp; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 目标责任管理工作流审批表(TargetDutyWorkApprove)表服务实现类 |
| | | * |
| | | * @author xurui |
| | | * @since 2022-08-11 10:13:37 |
| | | */ |
| | | @Service("targetDutyWorkApproveService") |
| | | public class TargetDutyWorkApproveServiceImpl extends ServiceImpl<TargetDutyWorkApproveRepository, TargetDutyWorkApprove> implements TargetDutyWorkApproveService { |
| | | |
| | | @Autowired |
| | | private TargetDutyWorkApproveRepository targetDutyWorkApproveRepository; |
| | | |
| | | @Resource |
| | | private CommonService commonService; |
| | | |
| | | |
| | | @Override |
| | | public ResultVO queryAll(PageQuery<TargetDutyWorkApproveQueryCriteria> pageQuery) { |
| | | Long pageIndex = pageQuery.getPageIndex(); |
| | | Long pageSize = pageQuery.getPageSize(); |
| | | IPage<TargetDutyWorkApprove> page = new Page<>(pageIndex, pageSize); |
| | | |
| | | QueryWrapper queryWrapper = QueryHelpPlus.getPredicate(TargetDutyWorkApprove.class, pageQuery.getSearchParams()); |
| | | queryWrapper.eq("del_flag","0"); |
| | | page = baseMapper.selectPage(page,queryWrapper); |
| | | List<TargetDutyWorkApproveDto> respList = BeanCopyUtils.copyBeanList(page.getRecords(), TargetDutyWorkApproveDto.class); |
| | | |
| | | return new SearchResultVO<>( |
| | | true, |
| | | pageIndex, |
| | | pageSize,page.getPages(), |
| | | page.getTotal(), |
| | | respList, |
| | | ResultCodes.OK |
| | | ); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<TargetDutyWorkApprove> queryAll(TargetDutyWorkApproveQueryCriteria criteria) { |
| | | return baseMapper.selectList(QueryHelpPlus.getPredicate(TargetDutyWorkApprove.class, criteria)); |
| | | } |
| | | |
| | | @Override |
| | | public void updateInfo(ContextCacheUser currentUser, TargetDutyWorkApprove targetDutyWorkApprove) { |
| | | |
| | | Date nowDate = new Date(); |
| | | Long uid = currentUser.getUid(); |
| | | String uName = currentUser.getRealName(); |
| | | |
| | | //新增下级审批记录 |
| | | TargetDutyWorkApprove addInfo = new TargetDutyWorkApprove(); |
| | | if (targetDutyWorkApprove.getApproveStatus() == 2){ |
| | | BeanUtils.copyProperties(targetDutyWorkApprove, addInfo); |
| | | |
| | | addInfo.setId(null); |
| | | addInfo.setDelFlag(0); |
| | | addInfo.setCreateUid(uid); |
| | | addInfo.setGmtCreate(new Timestamp(nowDate.getTime())); |
| | | addInfo.setSubmitPersonId(uid); |
| | | addInfo.setSubmitPersonName(uName); |
| | | addInfo.setApproveResult(null); |
| | | addInfo.setApproveMemo(null); |
| | | addInfo.setSort(addInfo.getSort()+1); |
| | | targetDutyWorkApproveRepository.insert(addInfo); |
| | | } |
| | | |
| | | // 更新原审批记录 |
| | | TargetDutyWorkApprove updateInfo = new TargetDutyWorkApprove(); |
| | | updateInfo.setId(targetDutyWorkApprove.getId()); |
| | | updateInfo.setUpdateUid(uid); |
| | | updateInfo.setGmtModitify(new Timestamp(nowDate.getTime())); |
| | | updateInfo.setApproveStatus(targetDutyWorkApprove.getApproveStatus()); |
| | | updateInfo.setApproveResult(targetDutyWorkApprove.getApproveResult()); |
| | | updateInfo.setApproveMemo(targetDutyWorkApprove.getApproveMemo()); |
| | | updateInfo.setChildId(addInfo.getId()); |
| | | targetDutyWorkApproveRepository.updateById(updateInfo); |
| | | } |
| | | |
| | | @Override |
| | | public void addInfo(ContextCacheUser currentUser, TargetDutyWorkApprove targetDutyWorkApprove) { |
| | | // 业务类型 |
| | | if (targetDutyWorkApprove.getRelateType()==null){ |
| | | throw new TargetDutyException(TargetDutyResultCodes.APPROVE_RELATE_ID_NULL); |
| | | } |
| | | // 业务主表id |
| | | if (targetDutyWorkApprove.getRelateId()==null){ |
| | | throw new TargetDutyException(TargetDutyResultCodes.APPROVE_RELATE_TYPE_NULL); |
| | | } |
| | | // 审批人 |
| | | if (targetDutyWorkApprove.getApprovePersonId()==null){ |
| | | throw new TargetDutyException(TargetDutyResultCodes.APPROVE_PERSON_NULL); |
| | | } |
| | | // 审批状态 |
| | | if (targetDutyWorkApprove.getApproveStatus()==null){ |
| | | throw new TargetDutyException(TargetDutyResultCodes.APPROVE_STATUS_NULL); |
| | | } |
| | | |
| | | |
| | | Date nowDate = new Date(); |
| | | Long uid = currentUser.getUid(); |
| | | String uName = currentUser.getRealName(); |
| | | //1.新增应急审批 |
| | | TargetDutyWorkApprove info = new TargetDutyWorkApprove(); |
| | | BeanUtils.copyProperties(targetDutyWorkApprove, info); |
| | | info.setDelFlag(0); |
| | | info.setCreateUid(uid); |
| | | info.setGmtCreate(new Timestamp(nowDate.getTime())); |
| | | info.setSubmitPersonId(uid); |
| | | info.setSubmitPersonName(uName); |
| | | info.setSort(1); |
| | | targetDutyWorkApproveRepository.insert(info); |
| | | } |
| | | |
| | | @Override |
| | | public ResultVO listCheckData(PageQuery<TargetDutyWorkApproveQueryCriteria> pageQuery) { |
| | | Long pageIndex = pageQuery.getPageIndex(); |
| | | Long pageSize = pageQuery.getPageSize(); |
| | | IPage<ListCheckDataDto> page = new Page<>(pageIndex, pageSize); |
| | | |
| | | page = targetDutyWorkApproveRepository.listCheckData(page,pageQuery.getSearchParams().getRelateId()); |
| | | |
| | | List<ListCheckDataDto> respList = page.getRecords(); |
| | | // --------------------------- 获取部门信息----------------------- |
| | | //收集所用到的部门ID |
| | | Set<Long> collectDepIdSet = new HashSet(); |
| | | respList.forEach(f->{ |
| | | collectDepIdSet.add(f.getDutyDepartmentId()); |
| | | collectDepIdSet.add(f.getMakerDepartmentId()); |
| | | }); |
| | | //获取部门名集合 |
| | | Map<Long,String> depNameMap = commonService.getDepName(collectDepIdSet); |
| | | |
| | | respList.forEach(f->{ |
| | | f.setDutyDepartmentName(depNameMap.get(f.getDutyDepartmentId())); |
| | | f.setMakerDepartmentName(depNameMap.get(f.getMakerDepartmentId())); |
| | | }); |
| | | return new SearchResultVO<>( |
| | | true, |
| | | pageIndex, |
| | | pageSize,page.getPages(), |
| | | page.getTotal(), |
| | | respList, |
| | | ResultCodes.OK |
| | | ); |
| | | } |
| | | } |
| | |
| | | package com.gkhy.safePlatform.targetDuty.service.impl; |
| | | import java.sql.Timestamp; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.metadata.OrderItem; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.gkhy.safePlatform.account.rpc.apimodel.AccountDepartmentService; |
| | | import com.gkhy.safePlatform.account.rpc.apimodel.model.resp.DepInfoRPCRespDTO; |
| | | import com.gkhy.safePlatform.targetDuty.entity.ExamineItem; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetDutyWorkApprove; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetCheckAndSubmitQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.req.TargetDivideDetailQueryCriteria; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetCheckAndSubmitDto; |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetDivideDetailDto; |
| | | import com.gkhy.safePlatform.targetDuty.repository.TargetDutyWorkApproveRepository; |
| | | import com.gkhy.safePlatform.targetDuty.repository.TargetMngRepository; |
| | | import com.gkhy.safePlatform.targetDuty.entity.TargetMng; |
| | | import com.gkhy.safePlatform.targetDuty.service.CommonService; |
| | | import com.gkhy.safePlatform.targetDuty.service.TargetDivideDetailService; |
| | | import com.gkhy.safePlatform.targetDuty.service.TargetMngService; |
| | | import org.apache.dubbo.config.annotation.DubboReference; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.gkhy.safePlatform.commons.enums.ResultCodes; |
| | |
| | | import com.gkhy.safePlatform.targetDuty.model.dto.resp.TargetMngDto; |
| | | import com.gkhy.safePlatform.targetDuty.utils.QueryHelpPlus; |
| | | import com.gkhy.safePlatform.commons.utils.BeanCopyUtils; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | |
| | | private TargetDivideDetailService targetDivideDetailService; |
| | | |
| | | @Resource |
| | | private TargetDutyWorkApproveRepository targetDutyWorkApproveRepository; |
| | | |
| | | @Resource |
| | | private CommonService commonService; |
| | | |
| | | |
| | | @Override |
| | | public ResultVO queryAll(PageQuery<TargetMngQueryCriteria> pageQuery) { |
| | | Long pageIndex = pageQuery.getPageIndex(); |
| | |
| | | page = baseMapper.selectPage(page, |
| | | QueryHelpPlus.getPredicate(TargetMng.class, pageQuery.getSearchParams())); |
| | | List<TargetMngDto> respList = BeanCopyUtils.copyBeanList(page.getRecords(), TargetMngDto.class); |
| | | respList.forEach(dto->{ |
| | | //查询关联分解信息 |
| | | TargetDivideDetailQueryCriteria criteria = new TargetDivideDetailQueryCriteria(); |
| | | criteria.setTargetId(dto.getId()); |
| | | List<TargetDivideDetailDto> respList1 = BeanCopyUtils.copyBeanList(targetDivideDetailService.queryAll(criteria), TargetDivideDetailDto.class); |
| | | |
| | | // --------------------------- 获取部门信息----------------------- |
| | | //收集所用到的部门ID |
| | | Set<Long> collectDepIdSet = new HashSet(); |
| | | respList1.forEach(f->{ |
| | | collectDepIdSet.add(f.getDutyDepartmentId()); |
| | | collectDepIdSet.add(f.getMakerDepartmentId()); |
| | | }); |
| | | //获取部门名集合 |
| | | Map<Long,String> depNameMap = commonService.getDepName(collectDepIdSet); |
| | | |
| | | respList1.forEach(f->{ |
| | | f.setDutyDepartmentName(depNameMap.get(f.getDutyDepartmentId())); |
| | | f.setMakerDepartmentName(depNameMap.get(f.getMakerDepartmentId())); |
| | | }); |
| | | |
| | | |
| | | dto.setTargetDivideDetailList(respList1); |
| | | }); |
| | | |
| | | return new SearchResultVO<>( |
| | | true, |
| | |
| | | return targetMngDto; |
| | | } |
| | | |
| | | @Override |
| | | public ResultVO queryAll(Long uid, PageQuery<TargetCheckAndSubmitQueryCriteria> pageQuery) { |
| | | Long pageIndex = pageQuery.getPageIndex(); |
| | | Long pageSize = pageQuery.getPageSize(); |
| | | Page<TargetMng> page = new Page<>(pageIndex, pageSize); |
| | | |
| | | } |
| | | page = baseMapper.selectPage(page, |
| | | QueryHelpPlus.getPredicate(TargetMng.class, pageQuery.getSearchParams())); |
| | | List<TargetCheckAndSubmitDto> respList = BeanCopyUtils.copyBeanList(page.getRecords(), TargetCheckAndSubmitDto.class); |
| | | |
| | | // 判断审批人 |
| | | respList.forEach(dto->{ |
| | | List<TargetDutyWorkApprove> list = targetDutyWorkApproveRepository.selectList( |
| | | new QueryWrapper<TargetDutyWorkApprove>().eq("del_flag",0) |
| | | .eq("relate_type",pageQuery.getSearchParams().getTargetType()) |
| | | .eq("relate_id",dto.getId()) |
| | | .orderByDesc("sort")); |
| | | |
| | | if (!CollectionUtils.isEmpty(list)) { |
| | | dto.setApproveId(list.get(0).getId()); |
| | | dto.setApproveStatus(list.get(0).getApproveStatus()); |
| | | dto.setApprovePersonId(list.get(0).getApprovePersonId()); |
| | | // 审批中 判断审批人是否人与当前登录人 |
| | | if (dto.getApproveStatus()!=null && dto.getApproveStatus()==2){ |
| | | dto.setCheckApprove(dto.getApprovePersonId().equals(uid)); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | return new SearchResultVO<>( |
| | | true, |
| | | pageIndex, |
| | | pageSize,page.getPages(), |
| | | page.getTotal(), |
| | | respList, |
| | | ResultCodes.OK |
| | | ); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | public class AccidentReportDetailRespDTO { |
| | | |
| | | private List<AccidentExpressFileRespDTO> expressFileList; |
| | | |
| | | public List<AccidentExpressFileRespDTO> getExpressFileList() { |
| | | return expressFileList; |
| | | } |
| | | |
| | | public void setExpressFileList(List<AccidentExpressFileRespDTO> expressFileList) { |
| | | this.expressFileList = expressFileList; |
| | | } |
| | | |
| | | private Integer status; |
| | | |
| | | public Integer getStatus() { |
| | |
| | | import com.gkhy.safePlatform.incidentManage.exception.AccidentException; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.req.AccidentReportFileReqDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.req.AccidentReportReqDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportCountRespDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportDetailRespDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportFileRespDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.AccidentReportPageRespDTO; |
| | | import com.gkhy.safePlatform.incidentManage.model.dto.resp.*; |
| | | import com.gkhy.safePlatform.incidentManage.query.AccidentReportQuery; |
| | | import com.gkhy.safePlatform.incidentManage.query.AccidentReportRPCQuery; |
| | | import com.gkhy.safePlatform.incidentManage.query.db.AccidentReportDBQuery; |
| | | import com.gkhy.safePlatform.incidentManage.query.db.AccidentReportRPCDBQuery; |
| | | import com.gkhy.safePlatform.incidentManage.service.AccidentReportService; |
| | | import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentExpressFileInfoService; |
| | | import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentExpressInfoService; |
| | | import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentReportFileInfoService; |
| | | import com.gkhy.safePlatform.incidentManage.service.baseService.AccidentReportInfoService; |
| | |
| | | |
| | | @Autowired |
| | | private AccidentExpressInfoService accidentExpressInfoService; |
| | | |
| | | @Autowired |
| | | private AccidentExpressFileInfoService accidentExpressFileInfoService; |
| | | |
| | | |
| | | @Override |
| | |
| | | throw new AccidentException(AccidentResultCodes.ACCIDENT_REPORT_NOT_EXIST); |
| | | } else { |
| | | BeanUtils.copyProperties(AccidentReportInfoDetailDO, AccidentReportDetailRespDTO); |
| | | //查找对应的附件 |
| | | //查找事故报告对应的附件 |
| | | List<AccidentReportFileInfoDO> AccidentReportFileInfoDOList = accidentReportFileInfoService.selectByAccidentReportId(id); |
| | | if (!CollectionUtils.isEmpty(AccidentReportFileInfoDOList)) { |
| | | List<AccidentReportFileRespDTO> accidentReportFileRespDTOList = BeanCopyUtils.copyBeanList(AccidentReportFileInfoDOList, AccidentReportFileRespDTO.class); |
| | | AccidentReportDetailRespDTO.setFileList(accidentReportFileRespDTOList); |
| | | } |
| | | // 查找事故快报对应的附件 |
| | | List<AccidentExpressFileInfoDO> AccidentExpressFileInfoDOList = accidentExpressFileInfoService.selectByAccidentExpressId(AccidentReportDetailRespDTO.getAccidentExpressId()); |
| | | if (!CollectionUtils.isEmpty(AccidentExpressFileInfoDOList)) { |
| | | List<AccidentExpressFileRespDTO> accidentExpressFileRespDTOList = BeanCopyUtils.copyBeanList(AccidentExpressFileInfoDOList, AccidentExpressFileRespDTO.class); |
| | | AccidentReportDetailRespDTO.setExpressFileList(accidentExpressFileRespDTOList); |
| | | } |
| | | |
| | | |
| | | return new ResultVO<>(ResultCodes.OK, AccidentReportDetailRespDTO); |
| | | } |
| | | } |
| | |
| | | return url; |
| | | } |
| | | |
| | | public String getPresignUrl(String prefixName ,String suffixName){ |
| | | public Map<String, String> getPresignUrl(String prefixName ,String suffixName){ |
| | | String uuid= UUIDUtil.initUUID(); |
| | | String objName = prefixName+uuid+suffixName; |
| | | String url = null; |
| | | Map<String,String> resMap = new HashMap<>(); |
| | | resMap.put("fileName",objName); |
| | | try { |
| | | Map<String, String> reqParams = new HashMap<>(); |
| | | reqParams.put("response-content-type", "application/json"); |
| | |
| | | .expiry(60*2) |
| | | .extraQueryParams(reqParams) |
| | | .build()); |
| | | resMap.put("uploadUrl",url); |
| | | } catch (ErrorResponseException e) { |
| | | e.printStackTrace(); |
| | | } catch (InsufficientDataException e) { |
| | |
| | | } catch (ServerException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return url; |
| | | return resMap; |
| | | } |
| | | |
| | | |