3
0

24 Коммиты b256d895d8 ... 5a6cdd2bdf

Автор SHA1 Сообщение Дата
  zhanghe 5a6cdd2bdf Merge remote-tracking branch 'origin/master' 6 месяцев назад
  zhanghe 085aca6e94 优化 6 месяцев назад
  zhanghe e24b6dcaf3 更改路径 6 месяцев назад
  zhanghe e978689688 优化 6 месяцев назад
  zhanghe d7709c363e 优化 6 месяцев назад
  day01-init 3aec7bbc4c 打印功能和出库单管理页面 6 месяцев назад
  zhanghe ef9cbcd85a 修改工位结果优化 6 месяцев назад
  zhanghe a8b0b438fa 生产订单优化 6 месяцев назад
  zhanghe 63f6cfd72b 适配多条产线优化 6 месяцев назад
  zhanghe edc88e9202 生产领料单优化 6 месяцев назад
  zhanghe 4145ca1137 Merge remote-tracking branch 'origin/master' 6 месяцев назад
  zhanghe 5de3f919e8 模板优化 6 месяцев назад
  zhanghe b18d73ce90 优化 6 месяцев назад
  zhanghe 8c8f3d58a9 入库记录 7 месяцев назад
  zhanghe b873e85329 优化 7 месяцев назад
  zhanghe fdc6600441 登录界面ui修改 7 месяцев назад
  zhanghe f145bb0e8d Merge remote-tracking branch 'origin/master' 7 месяцев назад
  zhanghe 8fb50aa8e7 生产领料单 7 месяцев назад
  zhanghe b5da1e8b76 生产订单 7 месяцев назад
  zhanghe f4a1320fe5 大屏2 7 месяцев назад
  zhanghe f6ed5f9ef1 物料 7 месяцев назад
  zhanghe 87483681ca mes辅助优化 7 месяцев назад
  zhanghe fb77b05b80 生产记录创建模板优化 7 месяцев назад
  zhanghe bad4ee9317 初始化 7 месяцев назад

+ 2 - 2
src/main/java/com/jeesite/modules/mes/service/MesGp12RecordService.java

@@ -177,7 +177,7 @@ public class MesGp12RecordService extends CrudService<MesGp12RecordDao, MesGp12R
 			//获取当前日
 			//获取当前日
 			int currentDay = LocalDate.now().getDayOfMonth();
 			int currentDay = LocalDate.now().getDayOfMonth();
 
 
-			String uploadDir = "E:/mescloud/userfiles/gp12" + "/" + currentYear + "-" + currentMonth + "-" + currentDay
+			String uploadDir = "D:/mescloud/userfiles/gp12" + "/" + currentYear + "-" + currentMonth + "-" + currentDay
 					+ "/" + mesGp12Record.getRemark();//remark为客户端保存子目录名称
 					+ "/" + mesGp12Record.getRemark();//remark为客户端保存子目录名称
 			File directory = new File(uploadDir);
 			File directory = new File(uploadDir);
 			if (!directory.exists()) {
 			if (!directory.exists()) {
@@ -196,7 +196,7 @@ public class MesGp12RecordService extends CrudService<MesGp12RecordDao, MesGp12R
 				resp.setMessage("保存图片失败,请联系管理员!");
 				resp.setMessage("保存图片失败,请联系管理员!");
 			}
 			}
 
 
-			filePath = filePath.replace("E:/mescloud/", "");
+			filePath = filePath.replace("D:/mescloud/", "");
 			if (file.getOriginalFilename().contains("shang")) {
 			if (file.getOriginalFilename().contains("shang")) {
 				mesGp12Record.setFileUp(filePath);
 				mesGp12Record.setFileUp(filePath);
 			} else if (file.getOriginalFilename().contains("xia")) {
 			} else if (file.getOriginalFilename().contains("xia")) {

+ 1 - 1
src/main/java/com/jeesite/modules/mes/service/MesProductRecordService.java

@@ -686,7 +686,7 @@ public class MesProductRecordService extends CrudService<MesProductRecordDao, Me
 						mesProductRecord.setOprno(oldOprno);
 						mesProductRecord.setOprno(oldOprno);
 					}
 					}
 
 
-					if(!userCode.equals("")&&!StringUtils.isEmpty(userCode)){
+					if(!StringUtils.isEmpty(userCode)&&!userCode.equals("")){
 						mesProductRecord.setUpdateBy(userCode);
 						mesProductRecord.setUpdateBy(userCode);
 					}
 					}
 
 

+ 18 - 5
src/main/java/com/jeesite/modules/mes/web/MesProductRecordController.java

@@ -958,8 +958,11 @@ public class MesProductRecordController extends BaseController {
 		String userCode = ProtocolParam.getUserCode(msg).trim();
 		String userCode = ProtocolParam.getUserCode(msg).trim();
 
 
 		ret = checkQualityCommon(oldOprno,sn,lineSn,userCode);
 		ret = checkQualityCommon(oldOprno,sn,lineSn,userCode);
-
-		return "RS"+ret.substring(3,5);
+		String substring = ret.substring(3, 5);
+		if (substring.equals("QD")){
+			return ret.substring(0,2)+substring;
+		}
+		return "RS"+substring;
 	}
 	}
 
 
 	// 查询质量公共部分
 	// 查询质量公共部分
@@ -1238,10 +1241,11 @@ public class MesProductRecordController extends BaseController {
 		}else{
 		}else{
 			checkTempalte(sn,oprno,lineSn); // 检查模板
 			checkTempalte(sn,oprno,lineSn); // 检查模板
 		}
 		}
-
+		String productCate = mesLineService.findInfoCate(lineSn);
 		// 检查工件状态
 		// 检查工件状态
 		MesProduct mesProduct = new MesProduct();
 		MesProduct mesProduct = new MesProduct();
 		mesProduct.setSn(sn);
 		mesProduct.setSn(sn);
+		mesProduct.setCate(productCate);
 		MesProduct mesProduct2 = mesProductService.findInfo(mesProduct);
 		MesProduct mesProduct2 = mesProductService.findInfo(mesProduct);
 		if(ObjectUtils.isEmpty(mesProduct2)){
 		if(ObjectUtils.isEmpty(mesProduct2)){
 			ret = bs+"NE";
 			ret = bs+"NE";
@@ -1263,6 +1267,12 @@ public class MesProductRecordController extends BaseController {
 		if(lineSn.equals("XT")){
 		if(lineSn.equals("XT")){
 			passoprnos = Global.getConfig("mes.pass.oprno.xt");
 			passoprnos = Global.getConfig("mes.pass.oprno.xt");
 		}
 		}
+		if(lineSn.equals("MP")){
+			passoprnos = Global.getConfig("mes.pass.oprno.mp");
+		}
+		if(lineSn.equals("ZP")){
+			passoprnos = Global.getConfig("mes.pass.oprno.zp");
+		}
 
 
 		// 万能码逻辑
 		// 万能码逻辑
 		String universalSn = Global.getConfig("mes.universal.sn");
 		String universalSn = Global.getConfig("mes.universal.sn");
@@ -1572,7 +1582,6 @@ public class MesProductRecordController extends BaseController {
 				}
 				}
 			}
 			}
 
 
-			//320添加子工位
 
 
 			// 判断是否是OK/NG样件
 			// 判断是否是OK/NG样件
 			MesProductSample mesProductSample = new MesProductSample();
 			MesProductSample mesProductSample = new MesProductSample();
@@ -2379,13 +2388,17 @@ public String check(@RequestBody MesElectricTorque mesElectricTorque,HttpServlet
 		String oprno = request.getParameter("oprno");
 		String oprno = request.getParameter("oprno");
 		String lineSn = request.getParameter("lineSn");
 		String lineSn = request.getParameter("lineSn");
 		String result = request.getParameter("result");
 		String result = request.getParameter("result");
+
 		String craft = "100000";
 		String craft = "100000";
 		String remark = request.getParameter("remark");
 		String remark = request.getParameter("remark");
 		String oldOprno = oprno;
 		String oldOprno = oprno;
 		if(oldOprno.length()==5){
 		if(oldOprno.length()==5){
 			oldOprno += "A";
 			oldOprno += "A";
 		}
 		}
-
+		String mesProductRecord_image = request.getParameter("mesProductRecord_image");
+//		if(com.alibaba.druid.util.StringUtils.isEmpty(mesProductRecord_image)){
+//			return renderResult(Global.FALSE, text("图片不能为空!"));
+//		}
 		if(StringUtils.isEmpty(sn) || StringUtils.isEmpty(oprno) || StringUtils.isEmpty(result) || StringUtils.isEmpty(lineSn)){
 		if(StringUtils.isEmpty(sn) || StringUtils.isEmpty(oprno) || StringUtils.isEmpty(result) || StringUtils.isEmpty(lineSn)){
 			return renderResult(Global.FALSE, text("参数错误!"));
 			return renderResult(Global.FALSE, text("参数错误!"));
 		}
 		}

+ 1 - 1
src/main/java/com/jeesite/modules/scheduling/ProductGh.java

@@ -40,7 +40,7 @@ public class ProductGh {
     @Autowired
     @Autowired
     private MesProductModifyRecordService mesProductModifyRecordService;
     private MesProductModifyRecordService mesProductModifyRecordService;
 
 
-    @Scheduled(fixedRate=30000)
+//    @Scheduled(fixedRate=30000)
     private void configureTasks() { //OP310
     private void configureTasks() { //OP310
         try{
         try{
             MesLineProcess mesLineProcess = new MesLineProcess();
             MesLineProcess mesLineProcess = new MesLineProcess();