|
|
@@ -13,6 +13,8 @@ import com.jeesite.common.config.Global;
|
|
|
import com.jeesite.common.lang.StringUtils;
|
|
|
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
import com.jeesite.common.service.ServiceException;
|
|
|
+import com.jeesite.modules.file.entity.FileUpload;
|
|
|
+import com.jeesite.modules.file.service.FileUploadService;
|
|
|
import com.jeesite.modules.file.utils.FileUploadUtils;
|
|
|
import com.jeesite.modules.mes.dao.*;
|
|
|
import com.jeesite.modules.mes.entity.*;
|
|
|
@@ -47,6 +49,9 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
private MesProductCateService mesProductCateService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private FileUploadService fileUploadService;
|
|
|
+ @Autowired
|
|
|
+
|
|
|
private MesTemplateItemsService mesTemplateItemsService;
|
|
|
|
|
|
@Autowired
|
|
|
@@ -533,6 +538,29 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
|
|
|
return "RSNS";
|
|
|
}
|
|
|
|
|
|
+ public boolean checkOP500Photo(String sn,String lineSn){
|
|
|
+
|
|
|
+ MesProductRecord mesProductRecord=new MesProductRecord();
|
|
|
+ mesProductRecord.setSn(sn);
|
|
|
+ mesProductRecord.setLineSn(lineSn);
|
|
|
+ mesProductRecord.setOprno("OP500A");
|
|
|
+ mesProductRecord.setCraft("100000");
|
|
|
+ MesProductRecord mesProductRecord1 = findInfo(mesProductRecord);
|
|
|
+ if (mesProductRecord1==null){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ FileUpload fu = new FileUpload();
|
|
|
+ fu.setBizKey(mesProductRecord1.getId());
|
|
|
+ fu.setBizType("mesProductRecord_image");
|
|
|
+ List<FileUpload> finfo = fileUploadService.findList(fu);
|
|
|
+ if (finfo==null){
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// 多个件同时工作
|
|
|
@Transactional
|
|
|
public void updateMultipleRecords(String sn, String oprno, String craft, String content, String userCode, List<ParamsResp> paramsResps,String lineSn,List<BindMaterialResp> bmlists){
|