bug修复

master
zhaoxiaolin 6 months ago
parent 943f60e3e7
commit a8380b967c

@ -497,7 +497,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
product_code productCode product_code productCode
from pro_order_workorder from pro_order_workorder
where belong_work_order = #{workorderCode} and del_flag = '0' <!--and status = 'w2'--> where belong_work_order = #{workorderCode} and del_flag = '0' <!--and status = 'w2'-->
order by order_code order by workorder_code_sap
</select> </select>
<select id="getReportWorkHzList" resultType="com.op.mes.domain.MesReportWork"> <select id="getReportWorkHzList" resultType="com.op.mes.domain.MesReportWork">
select mrw.workorderCode,mrw.productCode,mrw.productName,mrw.machineCode,mrw.machineName, select mrw.workorderCode,mrw.productCode,mrw.productName,mrw.machineCode,mrw.machineName,

@ -1164,7 +1164,7 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
batch.setBatchId(IdUtils.fastSimpleUUID()); batch.setBatchId(IdUtils.fastSimpleUUID());
batch.setWorkorderId(workOrder.getWorkorderId()); batch.setWorkorderId(workOrder.getWorkorderId());
batch.setBatchCode(proOrderWorkorderBatch.getNewBatchCode()); batch.setBatchCode(proOrderWorkorderBatch.getNewBatchCode());
batch.setStatus("0"); batch.setStatus("1");
batch.setCreateBy(username); batch.setCreateBy(username);
Date nowDate = DateUtils.getNowDate(); Date nowDate = DateUtils.getNowDate();
batch.setCreateTime(nowDate); batch.setCreateTime(nowDate);
@ -1209,7 +1209,7 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
batch.setBatchCode(batchCode); batch.setBatchCode(batchCode);
batch.setNewBatchCode(newBatchCode); batch.setNewBatchCode(newBatchCode);
batch.setStatus("0"); batch.setStatus("1");//1代表未报工
batch.setUpdateBy(username); batch.setUpdateBy(username);
batch.setUpdateTime(DateUtils.getNowDate()); batch.setUpdateTime(DateUtils.getNowDate());

@ -132,7 +132,7 @@
)VALUES )VALUES
<foreach collection="list" item="d" index="index" separator=","> <foreach collection="list" item="d" index="index" separator=",">
( (
#{d.batchId},#{d.workorderId},#{d.batchCode},#{d.batchQuantity},'0', #{d.batchId},#{d.workorderId},#{d.batchCode},#{d.batchQuantity},'1',
#{d.createBy},#{d.createTime}, #{d.factoryCode},'2' #{d.createBy},#{d.createTime}, #{d.factoryCode},'2'
) )
</foreach> </foreach>

@ -146,6 +146,7 @@ public class QcCheckTaskIncomeServiceImpl<QcCheckUnqualifiedService> implements
*/ */
@Override @Override
public int insertQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome) { public int insertQcCheckTaskIncome(QcCheckTaskIncome qcCheckTaskIncome) {
logger.info("创建检验任务接收参数:"+JSONObject.toJSONString(qcCheckTaskIncome));
DynamicDataSourceContextHolder.push("ds_" + qcCheckTaskIncome.getFactoryCode()); DynamicDataSourceContextHolder.push("ds_" + qcCheckTaskIncome.getFactoryCode());
String bpDD = DateUtils.parseDateToStr(DateUtils.YYYYMMDD, DateUtils.getNowDate()); String bpDD = DateUtils.parseDateToStr(DateUtils.YYYYMMDD, DateUtils.getNowDate());
int liushuiNum = qcCheckTaskIncomeMapper.getTodayMaxNum(qcCheckTaskIncome); int liushuiNum = qcCheckTaskIncomeMapper.getTodayMaxNum(qcCheckTaskIncome);
@ -641,6 +642,7 @@ public class QcCheckTaskIncomeServiceImpl<QcCheckUnqualifiedService> implements
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public int commitCheckResults(QcCheckTaskIncome qcCheckTaskIncome) { public int commitCheckResults(QcCheckTaskIncome qcCheckTaskIncome) {
logger.info("质检提交参数:"+JSONObject.toJSONString(qcCheckTaskIncome));
List<QcCheckTaskDetail> details = qcCheckTaskIncome.getQcCheckTaskDetails(); List<QcCheckTaskDetail> details = qcCheckTaskIncome.getQcCheckTaskDetails();
Date nowTime = DateUtils.getNowDate(); Date nowTime = DateUtils.getNowDate();

Loading…
Cancel
Save