| | |
| | | import com.by4cloud.platformx.admin.api.vo.DeptExcelVO; |
| | | import com.by4cloud.platformx.business.dto.ContractSubjectMatterAddDTO; |
| | | import com.by4cloud.platformx.business.dto.ContractSubjectMatterAnnotateDTO; |
| | | import com.by4cloud.platformx.business.entity.Contract; |
| | | import com.by4cloud.platformx.business.entity.ContractSubjectMatter; |
| | | import com.by4cloud.platformx.business.entity.Product; |
| | | import com.by4cloud.platformx.business.entity.TaxCode; |
| | | import com.by4cloud.platformx.business.mapper.ContractMapper; |
| | | import com.by4cloud.platformx.business.mapper.ContractSubjectMatterMapper; |
| | | import com.by4cloud.platformx.business.mapper.ProductMapper; |
| | | import com.by4cloud.platformx.business.mapper.TaxCodeMapper; |
| | | import com.by4cloud.platformx.business.entity.*; |
| | | import com.by4cloud.platformx.business.mapper.*; |
| | | import com.by4cloud.platformx.business.service.ContractSubjectMatterService; |
| | | import com.by4cloud.platformx.business.vo.ContractSubjectMatterVo; |
| | | import com.by4cloud.platformx.business.vo.SubjectMatterExcelVO; |
| | |
| | | private final ProductMapper productMapper; |
| | | |
| | | private final TaxCodeMapper taxCodeMapper; |
| | | |
| | | private final BipDictMapper bipDictMapper; |
| | | |
| | | private final StringRedisTemplate redisTemplate; |
| | | |
| | |
| | | Long contractId = annotateDTOList.get(0).getContractId(); |
| | | annotateDTOList.stream().forEach(annotateDTO->{ |
| | | ContractSubjectMatter subjectMatter = baseMapper.selectById(annotateDTO.getId()); |
| | | subjectMatter.setProductSection(annotateDTO.getProductSection()); |
| | | |
| | | subjectMatter.setBusinessProject(annotateDTO.getBusinessProject()); |
| | | |
| | | if (StrUtil.isNotBlank(annotateDTO.getProductCategory())){ |
| | | subjectMatter.setProductCategory(annotateDTO.getProductCategory()); |
| | | BipDict dict = bipDictMapper.selectOne(Wrappers.<BipDict>lambdaQuery().eq(BipDict::getDictCode,annotateDTO.getProductCategory()) |
| | | .eq(BipDict::getCompId,SecurityUtils.getUser().getCompId()).eq(BipDict::getDictKey,"zb-cpmc").last("limit 1")); |
| | | if (ObjUtil.isNotNull(dict)){ |
| | | subjectMatter.setProductSection(dict.getProductSection()); |
| | | } |
| | | } |
| | | |
| | | baseMapper.updateById(subjectMatter); |
| | | }); |
| | | List<ContractSubjectMatter> subjectMatterList = baseMapper.selectList(Wrappers.<ContractSubjectMatter>lambdaQuery() |