|
@ -170,7 +170,7 @@ public class SysSalesOrderServiceImpl implements ISysSalesOrderService |
|
|
public int insertSysSalesOrder(SysSalesOrder sysSalesOrder){ |
|
|
public int insertSysSalesOrder(SysSalesOrder sysSalesOrder){ |
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
sysSalesOrder.setCreateBy(loginName); |
|
|
sysSalesOrder.setCreateBy(loginName); |
|
|
sysSalesOrder.setCreateTime(DateUtils.getNowDate()); |
|
|
sysSalesOrder.setCreateTime(new Date()); |
|
|
sysSalesOrder.setApplyUser(loginName); |
|
|
sysSalesOrder.setApplyUser(loginName); |
|
|
int result = sysSalesOrderMapper.insertSysSalesOrder(sysSalesOrder); |
|
|
int result = sysSalesOrderMapper.insertSysSalesOrder(sysSalesOrder); |
|
|
sysSalesOrder.getSalesOrderId(); |
|
|
sysSalesOrder.getSalesOrderId(); |
|
@ -200,7 +200,7 @@ public class SysSalesOrderServiceImpl implements ISysSalesOrderService |
|
|
SysUser user = userMapper.selectUserByLoginName(sysSalesOrder.getApplyUser()); |
|
|
SysUser user = userMapper.selectUserByLoginName(sysSalesOrder.getApplyUser()); |
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
String loginName = ShiroUtils.getLoginName(); |
|
|
sysSalesOrder.setUpdateBy(loginName); |
|
|
sysSalesOrder.setUpdateBy(loginName); |
|
|
sysSalesOrder.setUpdateTime(DateUtils.getNowDate()); |
|
|
sysSalesOrder.setUpdateTime(new Date()); |
|
|
// 存在提交完就流程结束的情况
|
|
|
// 存在提交完就流程结束的情况
|
|
|
List<SysSalesOrderChild> sysSalesOrderChildList = sysSalesOrder.getSysSalesOrderChildList(); |
|
|
List<SysSalesOrderChild> sysSalesOrderChildList = sysSalesOrder.getSysSalesOrderChildList(); |
|
|
if (sysSalesOrderChildList.isEmpty()){ |
|
|
if (sysSalesOrderChildList.isEmpty()){ |
|
|