清运单 测试通过

master
guochaojie 4 months ago
parent 129613fbb1
commit 314dd86db7

@ -440,7 +440,7 @@ public class DeviceController {
return CommonResult.success(orderVO.getDeviceOrderNo(), "success,订单已上传!");
}
//查询配置
RecycleDeviceConfig config = configService.getByCompanyId(user.getCompanyId());
RecycleDeviceConfig config = configService.getByCompanyId(device.getBeLongCompanyId());
String adjustSet = config.getCleanAdjustSet();//审核配置
//查询桶
@ -449,9 +449,15 @@ public class DeviceController {
order.setDeviceCode(orderVO.getDeviceCode());
order.setBucketCode(orderVO.getBucketCode());
order.setDoorNum(orderVO.getDoorNum());
order.setDeviceOrderNo(orderVO.getDeviceOrderNo());
order.setProductCode(orderVO.getProductCode());
order.setProductSubCode(orderVO.getProductSubCode());
order.setPrice(orderVO.getPrice());
order.setWeight(orderVO.getTotalWeight());
order.setTotalPrice(orderVO.getTotalPrice());
order.setCleanUserId(orderVO.getUserId());
order.setPhone(orderVO.getPhone());
order.setBagNo(orderVO.getBagNo());
List<Snap> images = orderVO.getImages();
if (images == null || images.size() == 0) {
throw new BizIllegalException("上传失败:未上传抓拍图片!!");
@ -472,6 +478,7 @@ public class DeviceController {
order.setAdjustComm("");
order.setAdjustWeight(BigDecimal.ZERO);
order.setAdjustPrice(BigDecimal.ZERO);
order.setEntryStatus(0);
}
if (StrUtil.isNotEmpty(orderVO.getStartTime())) {
order.setStartTime(DateUtil.parse(orderVO.getStartTime(), "yyyy-MM-dd HH:mm:ss"));
@ -486,7 +493,7 @@ public class DeviceController {
order.setCreatorUserId(orderVO.getUserId());
order.setCreatorTime(new Date());
order.setPhone(orderVO.getPhone());
order.setCompanyId(user.getCompanyId());
order.setCompanyId(device.getBeLongCompanyId());
cleanOrderService.save(order);
return CommonResult.success(orderVO.getDeviceOrderNo());
}

@ -33,7 +33,7 @@ public class CleanOrderVO {
private String startTime;
@ApiModelProperty("完成时间")
private String finishTime;
@ApiModelProperty("投递员id")
@ApiModelProperty("清运员id")
private String userId;
@ApiModelProperty("垃圾袋编号")
private String bagNo;

Loading…
Cancel
Save