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
from pro_order_workorder
where belong_work_order = #{workorderCode} and del_flag = '0' <!--and status = 'w2'-->
order by order_code
order by workorder_code_sap
</select>
<select id="getReportWorkHzList" resultType="com.op.mes.domain.MesReportWork">
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.setWorkorderId(workOrder.getWorkorderId());
batch.setBatchCode(proOrderWorkorderBatch.getNewBatchCode());
batch.setStatus("0");
batch.setStatus("1");
batch.setCreateBy(username);
Date nowDate = DateUtils.getNowDate();
batch.setCreateTime(nowDate);
@ -1209,7 +1209,7 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
batch.setBatchCode(batchCode);
batch.setNewBatchCode(newBatchCode);
batch.setStatus("0");
batch.setStatus("1");//1代表未报工
batch.setUpdateBy(username);
batch.setUpdateTime(DateUtils.getNowDate());

@ -132,7 +132,7 @@
)VALUES
<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'
)
</foreach>

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

Loading…
Cancel
Save