|
|
|
|
@ -18,7 +18,6 @@ import com.biutag.supervision.pojo.param.ModelClueQueryParam;
|
|
|
|
|
import com.biutag.supervision.pojo.vo.FileVo; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springframework.data.redis.core.RedisTemplate; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
@ -61,8 +60,6 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
|
|
|
|
|
|
|
|
|
|
private final StatisticsDepartMapper statisticsDepartMapper; |
|
|
|
|
|
|
|
|
|
private final RedisTemplate<Object, Object> redisTemplate; |
|
|
|
|
|
|
|
|
|
private final RiskTestMapper riskTestMapper; |
|
|
|
|
|
|
|
|
|
public Page<ModelClueModel> page(ModelClueQueryParam param) { |
|
|
|
|
@ -76,6 +73,9 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
|
|
|
|
|
.eq(StrUtil.isNotBlank(param.getDistributionState()), "mc.distribution_state", param.getDistributionState()) |
|
|
|
|
.like(StrUtil.isNotBlank(param.getThingDesc()), "mc.thing_desc", param.getThingDesc()) |
|
|
|
|
.orderByDesc("mc.create_time"); |
|
|
|
|
if (DistributionStateEnum.DISTRIBUTED.getValue().equals(param.getDistributionState())) { |
|
|
|
|
queryWrapper.eq(StrUtil.isNotBlank(param.getProcessingStatus()), "n.processing_status", param.getProcessingStatus()); |
|
|
|
|
} |
|
|
|
|
if (Objects.nonNull(param.getCreateTime()) && param.getCreateTime().size() == 2) { |
|
|
|
|
queryWrapper.between("mc.create_time", param.getCreateTime().get(0), param.getCreateTime().get(1)); |
|
|
|
|
} |
|
|
|
|
@ -166,7 +166,7 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
|
|
|
|
|
negative.setBusinessTypeCode(BusinessTypeEnum.QT.getValue()); |
|
|
|
|
negative.setBusinessTypeName(BusinessTypeEnum.QT.getLabel()); |
|
|
|
|
} |
|
|
|
|
negative.setBusinessTypeCode(model.getPoliceType()); |
|
|
|
|
negative.setPoliceType(model.getPoliceType()); |
|
|
|
|
|
|
|
|
|
if (StrUtil.isNotBlank(model.getInvolveProblem())) { |
|
|
|
|
negative.setInvolveProblem(Arrays.stream(model.getInvolveProblem().split(",")).toList()); |
|
|
|
|
@ -184,13 +184,18 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> {
|
|
|
|
|
negative.setHostLevel(HostLevelEnums.THREE.getValue()); |
|
|
|
|
negative.setThingFiles(thingFiles); |
|
|
|
|
// 办理单位
|
|
|
|
|
SupDepart depart = departService.getById(item.getInvolveDepartId()); |
|
|
|
|
SupDepart depart; |
|
|
|
|
if (Objects.isNull(model.getHandleDepartId())) { |
|
|
|
|
depart = departService.getById(item.getInvolveDepartId()); |
|
|
|
|
} else { |
|
|
|
|
depart = departService.getById(model.getHandleDepartId()); |
|
|
|
|
} |
|
|
|
|
if (depart.getLevel().equals(DepartLevelEnum.SECOND.getValue())) { |
|
|
|
|
negative.setDepartId(depart.getId()); |
|
|
|
|
negative.setDepartName(depart.getShortName()); |
|
|
|
|
} |
|
|
|
|
if (depart.getLevel().equals(DepartLevelEnum.THREE.getValue()) && Objects.equals(model.getDistributionFlow(), DistributionFlowEnum.SECOND.getValue())) { |
|
|
|
|
SupDepart parentDepart = departService.getParentDepart(item.getInvolveDepartId()); |
|
|
|
|
SupDepart parentDepart = departService.getParentDepart(depart.getId()); |
|
|
|
|
negative.setDepartId(parentDepart.getId()); |
|
|
|
|
negative.setDepartName(parentDepart.getShortName()); |
|
|
|
|
} |
|
|
|
|
|