Commit d973a689 authored by zhangyingbin's avatar zhangyingbin

校验修改

parent be55e869
...@@ -99,6 +99,8 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper ...@@ -99,6 +99,8 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
@Autowired @Autowired
private AttachmentServiceImpl attachmentService; private AttachmentServiceImpl attachmentService;
@Autowired
private ProblemInitiationServiceImpl problemInitiationService;
/** /**
* 分页查询 * 分页查询
...@@ -311,16 +313,16 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper ...@@ -311,16 +313,16 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
*/ */
private static final String TYPE="智能检验"; private static final String TYPE="智能检验";
//@BusinessIdentify @BusinessIdentify
public String checks(JSONObject jsonObject) { public String checks(JSONObject jsonObject) {
if (jsonObject == null || jsonObject.size() ==0) { if (jsonObject == null || jsonObject.size() ==0) {
return VerifyEnum.未通过.getName(); return VerifyEnum.未通过.getName();
} }
//通过userid和projectId来对应 //通过userid和projectId来对应
//Long welderId = orgService.getReginParams( ).getBusinessInfo( ).getUserSequenceNbr( ); Long welderId = orgService.getReginParams( ).getBusinessInfo( ).getUserSequenceNbr( );
Long random = jsonObject.getLong("random");//随机值 Long random = jsonObject.getLong("random");//随机值
Long projectId= jsonObject.getLong("projectId");//项目id Long projectId= jsonObject.getLong("projectId");//项目id
Long welderId = jsonObject.getLong("welderId"); //焊工id // Long welderId = jsonObject.getLong("welderId"); //焊工id
String location = jsonObject.getString("location");//焊接定位信息 String location = jsonObject.getString("location");//焊接定位信息
String stage = jsonObject.getString("stage");//阶段检验 String stage = jsonObject.getString("stage");//阶段检验
Date time = new Date();// //获取当前校验时间 Date time = new Date();// //获取当前校验时间
...@@ -808,7 +810,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper ...@@ -808,7 +810,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
Long sequenceNbr = verify1.getSequenceNbr( ); Long sequenceNbr = verify1.getSequenceNbr( );
qualityProblem.setStageVerifyId(sequenceNbr); qualityProblem.setStageVerifyId(sequenceNbr);
qualityProblemService.save(qualityProblem); qualityProblemService.save(qualityProblem);
problemInitiationService.start(qualityProblem);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment