Commit 84fab15e authored by 曹盼盼's avatar 曹盼盼

修改管材

parent 83275ecc
...@@ -353,7 +353,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper ...@@ -353,7 +353,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
Map map = orgService.getdetialInfo(welderId.toString( )); Map map = orgService.getdetialInfo(welderId.toString( ));
String certValidDate = String.valueOf(map.get("certValidDate")); String certValidDate = String.valueOf(map.get("certValidDate"));
if (StringUtils.isNotEmpty(certValidDate)) { if (!ValidationUtil.isEmpty(certValidDate)) {
Date vaildParse =null; Date vaildParse =null;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try { try {
...@@ -363,7 +363,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper ...@@ -363,7 +363,7 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
} }
if (time .compareTo(vaildParse) <=0) { if (time.compareTo(vaildParse) <=0) {
jsonObject.put("valid","有效"); jsonObject.put("valid","有效");
}else { }else {
jsonObject.put("valid","已过期"); jsonObject.put("valid","已过期");
...@@ -392,8 +392,12 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper ...@@ -392,8 +392,12 @@ public class VerifyServiceImpl extends BaseService<VerifyDto,Verify,VerifyMapper
//管材未校验,进行效验步骤 //管材未校验,进行效验步骤
// Long materialId = jsonObject.getLong("materialId");//管材id // Long materialId = jsonObject.getLong("materialId");//管材id
//改为管材编号 //从图片中获取管材编号
String materialCode = jsonObject.getString("materialId"); String materialCode = jsonObject.getString("materialId");
verify.setStage(StageEnum.焊前管材质量.getStage()); verify.setStage(StageEnum.焊前管材质量.getStage());
/**校验*/ /**校验*/
Boolean flag =false; Boolean flag =false;
......
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