| | |
| | | import com.whyc.dto.FileDirPath; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.dto.SoftDto; |
| | | import com.whyc.mapper.SoftcodeMapper; |
| | | import com.whyc.mapper.SoftwareMapper; |
| | | import com.whyc.pojo.Softcode; |
| | | import com.whyc.pojo.Software; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.CommonUtil; |
| | |
| | | public class SoftwareService { |
| | | @Autowired(required = false) |
| | | private SoftwareMapper mapper; |
| | | |
| | | @Autowired(required = false) |
| | | private SoftcodeMapper codeMapper; |
| | | |
| | | @Autowired |
| | | private DocLogService logService; |
| | |
| | | for (SoftDto dto:list) { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.eq("file_name",dto.getFileName()); |
| | | if(mapper.selectCount(wrapper)>0){ |
| | | if(codeMapper.selectCount(wrapper)>0){ |
| | | dto.setCodeFlag(1); |
| | | }else{ |
| | | dto.setCodeFlag(0); |