|
|
|
@ -12,6 +12,7 @@ import com.biutag.supervision.mapper.*; |
|
|
|
import com.biutag.supervision.pojo.dto.ModelClueTaskDistribute; |
|
|
|
import com.biutag.supervision.pojo.dto.ModelClueTaskDistribute; |
|
|
|
import com.biutag.supervision.pojo.dto.NegativeDto; |
|
|
|
import com.biutag.supervision.pojo.dto.NegativeDto; |
|
|
|
import com.biutag.supervision.pojo.entity.*; |
|
|
|
import com.biutag.supervision.pojo.entity.*; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.enums.negative.NegativeSourceTypeEnum; |
|
|
|
import com.biutag.supervision.pojo.model.ModelClueModel; |
|
|
|
import com.biutag.supervision.pojo.model.ModelClueModel; |
|
|
|
import com.biutag.supervision.pojo.param.ModelClueQueryParam; |
|
|
|
import com.biutag.supervision.pojo.param.ModelClueQueryParam; |
|
|
|
import com.biutag.supervision.pojo.vo.FileVo; |
|
|
|
import com.biutag.supervision.pojo.vo.FileVo; |
|
|
|
@ -160,9 +161,20 @@ public class ModelClueService extends ServiceImpl<ModelClueMapper, ModelClue> { |
|
|
|
} |
|
|
|
} |
|
|
|
NegativeDto negative = new NegativeDto(); |
|
|
|
NegativeDto negative = new NegativeDto(); |
|
|
|
// 问题来源
|
|
|
|
// 问题来源
|
|
|
|
negative.setProblemSources(ProblemSourcesEnum.LMGZ.getLabel()); |
|
|
|
// negative.setProblemSources(ProblemSourcesEnum.LMGZ.getLabel());
|
|
|
|
negative.setProblemSourcesCode(ProblemSourcesEnum.LMGZ.getValue()); |
|
|
|
// negative.setProblemSourcesCode(ProblemSourcesEnum.LMGZ.getValue());
|
|
|
|
|
|
|
|
// 1、添加问题来源
|
|
|
|
|
|
|
|
ProblemSourcesEnum problemSourcesEnum = ProblemSourcesEnum.get(model.getProblemSourcesCode()); |
|
|
|
|
|
|
|
if (null != problemSourcesEnum){ |
|
|
|
|
|
|
|
negative.setProblemSources(problemSourcesEnum.getLabel()); |
|
|
|
|
|
|
|
negative.setProblemSourcesCode(problemSourcesEnum.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 2、negative表添加一个字段,表示是从模型超市来的问题
|
|
|
|
|
|
|
|
negative.setSourceType(NegativeSourceTypeEnum.MODEL_MARKET.getCode()); |
|
|
|
|
|
|
|
negative.setSourceTypeDesc(NegativeSourceTypeEnum.MODEL_MARKET.getDesc()); |
|
|
|
|
|
|
|
// 3、 取模型的创建单位为下发单位
|
|
|
|
|
|
|
|
negative.setIssuingDepartId(model.getCreateDepartId()); |
|
|
|
|
|
|
|
negative.setIssuingDepartName(model.getCreateDepartName()); |
|
|
|
if (StrUtil.isNotBlank(model.getBusinessTypeCode())) { |
|
|
|
if (StrUtil.isNotBlank(model.getBusinessTypeCode())) { |
|
|
|
negative.setBusinessTypeCode(model.getBusinessTypeCode()); |
|
|
|
negative.setBusinessTypeCode(model.getBusinessTypeCode()); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|