Browse Source

修改工位结果优化

zhanghe 5 months ago
parent
commit
ef9cbcd85a

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

@@ -3360,7 +3360,7 @@ public String check(@RequestBody MesElectricTorque mesElectricTorque,HttpServlet
 		}
 		MesProduct mesProduct = new MesProduct();
 		mesProduct.setSn(sn);
-//		mesProduct.setCate(cate);
+		mesProduct.setCate(mesProductRecord1.getCateSn());
 		MesProduct mm = mesProductService.findInfo(mesProduct);
 		if(!ObjectUtils.isEmpty(mm)){
 			mm.setState(state);

+ 1 - 1
src/main/resources/mappings/modules/mes/MesProductDao.xml

@@ -15,7 +15,7 @@
 	<select id="findInfo" resultType="com.jeesite.modules.mes.entity.MesProduct">
 		SELECT ${sqlMap.column.toSql()}
 		FROM ${sqlMap.table.toSql()}
-		WHERE sn = #{sn} and  line_sn= #{lineSn}
+		WHERE sn = #{sn} and  cate= #{cate}
 		ORDER BY ${sqlMap.order.toSql()}
 		LIMIT 1
 	</select>