| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author wangwh |
| | | * @version 1.0.0 |
| | | * @title: 联合处置申请信息表业务逻辑处理 |
| | | * @Description 联合处置申请信息表业务逻辑处理 |
| | | * @company hugeinfo |
| | | * @author wangwh |
| | | * @Time 2024-09-05 17:25:04 |
| | | * @version 1.0.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | |
| | | |
| | | /** |
| | | * 更新对象 |
| | | * |
| | | * @param entity 对象 |
| | | */ |
| | | public void updateCaseAssistApply(CaseAssistApply entity){ |
| | |
| | | |
| | | /** |
| | | * 条件更新对象 |
| | | * |
| | | * @param entity 对象 |
| | | * @param terms 条件 |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 根据编号物理删除 |
| | | * |
| | | * @param id 查询条件集合 |
| | | */ |
| | | public void deleteCaseAssistApply(String id){ |
| | |
| | | |
| | | /** |
| | | * 按条件查询 |
| | | * |
| | | * @param terms 条件 |
| | | * @return List |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 按条件统计 |
| | | * |
| | | * @param terms 条件 |
| | | * @return long |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 按条件分页查询 |
| | | * |
| | | * @param page 分页对象 |
| | | * @param terms 条件 |
| | | * @return Page |
| | |
| | | |
| | | /** |
| | | * 新增或更新对象 |
| | | * |
| | | * @param caseAssistApply 实体对象 |
| | | */ |
| | | public void saveCaseAssistApply(CaseAssistApply caseAssistApply){ |
| | |
| | | |
| | | /** |
| | | * 添加联合处置申请 |
| | | * |
| | | * @param caseAssistApply 实体对象 |
| | | */ |
| | | public void addCaseAssistApply(CaseAssistApply caseAssistApply, String userId){ |
| | |
| | | caseAssistApply.setApplyTime(now); |
| | | caseAssistApply.setCreateTime(now); |
| | | caseAssistApply.setUpdateTime(now); |
| | | //如果申请联合处置的机构是区级机构,由区综治中心审核 |
| | | boolean isQu = false; |
| | | String quUnitId = ""; |
| | | if (StringUtils.isNotEmpty(caseAssistApply.getApplyAssistUnitId())) { |
| | | String[] unitIdList = caseAssistApply.getApplyAssistUnitId().split(BaseConsts.COMMA); |
| | | for (String unitId : unitIdList) { |
| | | CtUnitDTO unitById = custClient.getUnitById(unitId); |
| | | if (unitById.getUnitGrade() == 2) { |
| | | isQu = true; |
| | | quUnitId = unitById.getId(); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | // 上级综治中心审核 |
| | | CtUnitDTO ctUnitDTO = custClient.getParentZzzxUnit(loginUser.getUnitId()); |
| | | if (isQu) { |
| | | ctUnitDTO=custClient.getParentZzzxUnit(quUnitId); |
| | | } |
| | | caseAssistApply.setAuditUnitId(ctUnitDTO.getId()); |
| | | caseAssistApply.setAuditUnitName(ctUnitDTO.getUnitName()); |
| | | mapper.insert(caseAssistApply); |
| | |
| | | |
| | | /** |
| | | * 审核联合处置审核 |
| | | * |
| | | * @param caseAssistApply 实体对象 |
| | | */ |
| | | public void reviewCaseAssistApply(CaseAssistApply caseAssistApply, String userId){ |
| | |
| | | |
| | | /** |
| | | * 根据案件编号查询联合处置申请 |
| | | * |
| | | * @param id 主键编号 |
| | | * @return long |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 首页查询 |
| | | * |
| | | * @param auditUnitId 审核组织编号 |
| | | * @return long |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 首页-待审核条件统计 |
| | | * |
| | | * @param terms 条件 |
| | | * @return long |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 按条件查询 |
| | | * |
| | | * @param page 分页对象 |
| | | * @param terms 条件 |
| | | * @return List |