|
@@ -12,10 +12,8 @@ import com.fs.common.enums.BusinessType;
|
|
|
import com.fs.common.utils.CloudHostUtils;
|
|
import com.fs.common.utils.CloudHostUtils;
|
|
|
import com.fs.common.utils.StringUtils;
|
|
import com.fs.common.utils.StringUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
-import com.fs.his.domain.FsDfAccount;
|
|
|
|
|
-import com.fs.his.domain.FsIntegralOrder;
|
|
|
|
|
-import com.fs.his.domain.FsIntegralOrderDf;
|
|
|
|
|
-import com.fs.his.domain.FsStoreOrder;
|
|
|
|
|
|
|
+import com.fs.common.utils.uuid.IdUtils;
|
|
|
|
|
+import com.fs.his.domain.*;
|
|
|
import com.fs.his.dto.ExpressInfoDTO;
|
|
import com.fs.his.dto.ExpressInfoDTO;
|
|
|
import com.fs.his.enums.ShipperCodeEnum;
|
|
import com.fs.his.enums.ShipperCodeEnum;
|
|
|
import com.fs.his.mapper.FsIntegralOrderMapper;
|
|
import com.fs.his.mapper.FsIntegralOrderMapper;
|
|
@@ -59,6 +57,8 @@ public class FsIntegralOrderController extends BaseController
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsStoreOrderService fsStoreOrderService;
|
|
private IFsStoreOrderService fsStoreOrderService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IFsIntegralOrderLogsService integralOrderLogsService;
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsIntegralOrderDfService integralOrderDfService;
|
|
private IFsIntegralOrderDfService integralOrderDfService;
|
|
@@ -314,12 +314,20 @@ public class FsIntegralOrderController extends BaseController
|
|
|
} else {
|
|
} else {
|
|
|
integralOrderDfService.insertFsIntegralOrderDf(df);
|
|
integralOrderDfService.insertFsIntegralOrderDf(df);
|
|
|
}
|
|
}
|
|
|
- //积分订单操作日志暂定
|
|
|
|
|
|
|
+ // 添加积分订单操作记录
|
|
|
|
|
+ FsIntegralOrderLogs logs = new FsIntegralOrderLogs();
|
|
|
|
|
+ logs.setLogsId(IdUtils.fastUUID());
|
|
|
|
|
+ logs.setOrderId(item.getOrderId());
|
|
|
|
|
+ logs.setChangeType("set_erp_account");
|
|
|
|
|
+ logs.setChangeMessage(nickName+"设置ERP账户为:" + loginAccount);
|
|
|
|
|
+ logs.setChangeTime(LocalDateTime.now());
|
|
|
|
|
+ logs.setOperator(nickName);
|
|
|
|
|
+ integralOrderLogsService.insertFsIntegralOrderLogs(logs);
|
|
|
});
|
|
});
|
|
|
return R.ok();
|
|
return R.ok();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// @Log(title = "手动推管易", businessType = BusinessType.INSERT)
|
|
|
|
|
|
|
+ // @Log(title = "手动推管易", businessType = BusinessType.INSERT)
|
|
|
@ApiOperation("批量创建ERP订单")
|
|
@ApiOperation("批量创建ERP订单")
|
|
|
// @PreAuthorize("@ss.hasPermi('his:storeOrder:createErpOrder')")
|
|
// @PreAuthorize("@ss.hasPermi('his:storeOrder:createErpOrder')")
|
|
|
@Log(title = "积分商品订单", businessType = BusinessType.UPDATE)
|
|
@Log(title = "积分商品订单", businessType = BusinessType.UPDATE)
|
|
@@ -354,9 +362,18 @@ public class FsIntegralOrderController extends BaseController
|
|
|
integralOrderDfService.getBaseMapper().insert(df);
|
|
integralOrderDfService.getBaseMapper().insert(df);
|
|
|
order.setLoginAccount(df.getLoginAccount());
|
|
order.setLoginAccount(df.getLoginAccount());
|
|
|
integralOrderMapper.updateById(order);
|
|
integralOrderMapper.updateById(order);
|
|
|
- //日志表,待定
|
|
|
|
|
}
|
|
}
|
|
|
fsIntegralOrderService.createErpOrder(order.getOrderId());
|
|
fsIntegralOrderService.createErpOrder(order.getOrderId());
|
|
|
|
|
+
|
|
|
|
|
+ // 添加积分订单操作记录
|
|
|
|
|
+ FsIntegralOrderLogs logs = new FsIntegralOrderLogs();
|
|
|
|
|
+ logs.setLogsId(IdUtils.fastUUID());
|
|
|
|
|
+ logs.setOrderId(order.getOrderId());
|
|
|
|
|
+ logs.setChangeType("create_erp_order");
|
|
|
|
|
+ logs.setChangeMessage(getLoginUser().getUser().getNickName()+"创建ERP订单,账户:" + loginAccount);
|
|
|
|
|
+ logs.setChangeTime(LocalDateTime.now());
|
|
|
|
|
+ logs.setOperator(getLoginUser().getUser().getNickName());
|
|
|
|
|
+ integralOrderLogsService.insertFsIntegralOrderLogs(logs);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return R.ok("推送成功");
|
|
return R.ok("推送成功");
|