计划bug和质量bug修改

highway
zhaoxiaolin 1 year ago
parent 5a60b22157
commit 7fefe369cc

@ -160,7 +160,7 @@ public class ProOrderServiceImpl implements IProOrderService {
setBatch(workBatch, splitOrderDTO.getFormFields(), workOrder.getWorkorderId(), conver);
// 如果存在子节点
if (proOrder.getChildren() != null) {
if (proOrder.getChildren() != null && proOrder.getChildren().size()>0) {
ProOrderDTO newProOrder = (ProOrderDTO) proOrder.getChildren().get(0);
// 更新换算值
conver = (newProOrder.getQuantity() / quantity);

@ -3,6 +3,7 @@ package com.op.quality.service.serviceImpl;
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
import com.op.common.core.domain.BaseFileData;
import com.op.common.core.domain.R;
import com.op.common.core.utils.DateUtils;
import com.op.common.core.utils.StringUtils;
import com.op.common.core.utils.uuid.IdUtils;
import com.op.common.security.utils.SecurityUtils;
@ -50,7 +51,8 @@ public class QcProCheckServiceImpl implements QcProCheckService {
}
qcProCheckMapper.insertBaseFileBatch(files);
}
qcProCheck.setCreateBy(SecurityUtils.getUsername());
qcProCheck.setCreateTime(DateUtils.getNowDate());
qcProCheckMapper.insertQcProCheck(qcProCheck);
return R.ok();

@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectQuaVo">
select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,isqua,isqua,file_id,attr1,attr2,
select id,rfid,factory_id,factory_code,order_id,machine_id,bad_meg,product_id,isqua,file_id,attr1,attr2,
attr3,attr4,create_by,create_time,update_by,update_time,order_code,machine_code,
workorder_id,workorder_code,workorder_name,product_code
from qc_pro_check
@ -45,13 +45,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectQcProCheckList" parameterType="QcProCheck" resultMap="QcProCheckResult">
select qpc.id,qpc.rfid,qpc.factory_code,qpc.machine_id,qpc.bad_meg,
qpc.product_id,qpc.isqua,qpc.isqua,qpc.file_id,qpc.attr1,qpc.attr2,
qpc.product_id,qpc.isqua,qpc.file_id,qpc.attr1,qpc.attr2,
qpc.attr3,qpc.attr4,qpc.create_by,qpc.create_time,qpc.update_by,
qpc.update_time,qpc.order_code,qpc.machine_code,qpc.machine_name,
qpc.workorder_id,qpc.workorder_code,qpc.workorder_name,qpc.product_code,
qpc.product_name,qpc.product_spc
from qc_pro_check qpc
left join
<where>
<if test="rfid != null and rfid != ''"> and qpc.id = #{id}</if>
<if test="createBy != null and createBy != ''"> and qpc.create_by = #{createBy}</if>
@ -59,8 +58,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by qpc.create_time desc
</select>
<insert id="insertQcProCheck" parameterType="QcProCheck" useGeneratedKeys="true" keyProperty="id">
insert into qc_pro_check
<trim prefix="(" suffix=")" suffixOverrides=",">

Loading…
Cancel
Save