|
|
|
@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.constant.Constant;
|
|
|
|
|
import com.glxp.api.dao.inv.DeviceInspectOrderDao;
|
|
|
|
|
import com.glxp.api.entity.inv.DeviceInspectOrderEntity;
|
|
|
|
|
import com.glxp.api.req.inv.AddDeviceInspectOrderRequest;
|
|
|
|
@ -12,6 +13,8 @@ import com.glxp.api.req.inv.FilterDeviceInspectOrderRequest;
|
|
|
|
|
import com.glxp.api.res.inv.DeviceInspectOrderResponse;
|
|
|
|
|
import com.glxp.api.service.auth.CustomerService;
|
|
|
|
|
import com.glxp.api.service.inv.DeviceInspectOrderService;
|
|
|
|
|
import com.glxp.api.util.GennerOrderUtils;
|
|
|
|
|
import com.glxp.api.util.OrderNoTypeBean;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
@ -30,6 +33,8 @@ public class DeviceInspectOrderServiceImpl implements DeviceInspectOrderService
|
|
|
|
|
private DeviceInspectOrderDao deviceInspectOrderDao;
|
|
|
|
|
@Resource
|
|
|
|
|
private CustomerService customerService;
|
|
|
|
|
@Resource
|
|
|
|
|
private GennerOrderUtils gennerOrderUtils;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<DeviceInspectOrderResponse> filterList(FilterDeviceInspectOrderRequest deviceInspectOrderRequest) {
|
|
|
|
@ -47,6 +52,9 @@ public class DeviceInspectOrderServiceImpl implements DeviceInspectOrderService
|
|
|
|
|
DeviceInspectOrderEntity deviceInspectOrderEntity = new DeviceInspectOrderEntity();
|
|
|
|
|
BeanUtil.copyProperties(addDeviceInspectOrderRequest, deviceInspectOrderEntity);
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
String orderId = gennerOrderUtils.createStOrderNo(new OrderNoTypeBean(Constant.DEVICE_INSPECT_ORDER, "yyyyMMdd"));
|
|
|
|
|
deviceInspectOrderEntity.setOrderId(orderId);
|
|
|
|
|
deviceInspectOrderEntity.setStatus(0);
|
|
|
|
|
deviceInspectOrderEntity.setCreateUser(customerService.getUserIdStr());
|
|
|
|
|
deviceInspectOrderEntity.setAuditUser(customerService.getUserIdStr());
|
|
|
|
|
deviceInspectOrderEntity.setCreateTime(date);
|
|
|
|
|