|
|
@ -3,7 +3,6 @@ package com.op.mes.service.impl;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
|
|
|
|
|
|
|
|
import com.op.common.core.context.SecurityContextHolder;
|
|
|
|
import com.op.common.core.context.SecurityContextHolder;
|
|
|
|
import com.op.common.core.utils.DateUtils;
|
|
|
|
import com.op.common.core.utils.DateUtils;
|
|
|
|
import com.op.common.core.utils.uuid.IdUtils;
|
|
|
|
import com.op.common.core.utils.uuid.IdUtils;
|
|
|
@ -295,7 +294,7 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
@DS("#header.poolName")
|
|
|
|
@DS("#header.poolName")
|
|
|
|
public int insertProOrder(ProOrder proOrder) {
|
|
|
|
public int insertProOrder(ProOrder proOrder) {
|
|
|
|
// 获取当前时间
|
|
|
|
// 获取当前时间
|
|
|
|
Date date = new Date();
|
|
|
|
Date date = DateUtils.getNowDate();
|
|
|
|
proOrder.setId(IdUtils.fastSimpleUUID());
|
|
|
|
proOrder.setId(IdUtils.fastSimpleUUID());
|
|
|
|
proOrder.setParentOrder("0");
|
|
|
|
proOrder.setParentOrder("0");
|
|
|
|
proOrder.setStatus("o0");
|
|
|
|
proOrder.setStatus("o0");
|
|
|
@ -308,6 +307,11 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
return proOrderMapper.insertProOrder(proOrder);
|
|
|
|
return proOrderMapper.insertProOrder(proOrder);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public int insertSapProOrder(ProOrder proOrder) {
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 修改订单
|
|
|
|
* 修改订单
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -390,7 +394,7 @@ public class ProOrderServiceImpl implements IProOrderService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private ProOrderWorkorder setWorkOrder(ProOrderWorkorder proOrderWorkorder, ProOrder proOrder) {
|
|
|
|
private ProOrderWorkorder setWorkOrder(ProOrderWorkorder proOrderWorkorder, ProOrder proOrder) {
|
|
|
|
// 获取当前时间
|
|
|
|
// 获取当前时间
|
|
|
|
Date date = new Date();
|
|
|
|
Date date = DateUtils.getNowDate();
|
|
|
|
// 订单表更新时间/更新者
|
|
|
|
// 订单表更新时间/更新者
|
|
|
|
proOrder.setUpdateBy(SecurityContextHolder.getUserName());
|
|
|
|
proOrder.setUpdateBy(SecurityContextHolder.getUserName());
|
|
|
|
proOrder.setUpdateTime(date);
|
|
|
|
proOrder.setUpdateTime(date);
|
|
|
|