| | |
| | | if (null != detailList && detailList1) { |
| | | String format = DateUtil.format(new Date(), "yyMMddHHmmssSSS"); |
| | | for (TjOrderDetail detail : detailList) { |
| | | int i = samplingService.isExistProId(order.getTjNumber(), String.valueOf(detail.getProId())); |
| | | if(i>0) continue; |
| | | TjSampling sampling = new TjSampling(); |
| | | if (null == projectService.getById(detail.getProId())) continue; |
| | | TjProject project = projectService.getById(detail.getProId()); |
| | |
| | | Date date = new Date(); |
| | | String format = DateUtil.format(date, "yyMMddHHmmssSSS"); |
| | | for (TjOrderDetail detail : detailList) { |
| | | int i = samplingService.isExistProId(order.getTjNumber(), String.valueOf(detail.getProId())); |
| | | if(i>0) continue; |
| | | |
| | | TjSampling sampling = new TjSampling(); |
| | | if (null == projectService.getById(detail.getProId())) continue; |
| | | TjProject project = projectService.getById(detail.getProId()); |
| | |
| | | Date date = new Date(); |
| | | String format = DateUtil.format(date, "yyMMddHHmmssSSS"); |
| | | for (TjOrderDetail detail : detailList) { |
| | | int i = samplingService.isExistProId(order.getTjNumber(), String.valueOf(detail.getProId())); |
| | | if(i>0) continue; |
| | | TjSampling sampling = new TjSampling(); |
| | | if (null == projectService.getById(detail.getProId())) continue; |
| | | TjProject project = projectService.getById(detail.getProId()); |
| | |
| | | "a.create_id = #{userId}\n"+ |
| | | "WHERE a.tj_num=#{tjNum} AND a.jxbz = #{jxbz}") |
| | | boolean updateUserIdByTjNumAndJxbz(@Param("tjNum")String tjNum,@Param("userName")String userName,@Param("userId") String userId,@Param("jxbz") String jxbz); |
| | | |
| | | |
| | | |
| | | @Select("SELECT COUNT(*) FROM tj_sampling a WHERE a.deleted=0 AND a.tj_num=#{tjh} AND LOCATE(#{proId},a.pro_id)") |
| | | int isExistProId(@Param("tjh") String tjh,@Param("proId") String proId); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | int isMergeItem(String id); |
| | | |
| | | int isExistProId(String tjh,String proId); |
| | | } |
| | |
| | | public int isMergeItem(String id) { |
| | | return baseMapper.isMergeItem(id); |
| | | } |
| | | |
| | | @Override |
| | | public int isExistProId(String tjh, String proId) { |
| | | return baseMapper.isExistProId(tjh,proId); |
| | | } |
| | | } |