|
|
|
@ -30,6 +30,7 @@ import com.logpm.distribution.entity.DistributionSignPrintEntity;
|
|
|
|
|
import com.logpm.distribution.entity.DistributionSignforEntity; |
|
|
|
|
import com.logpm.distribution.excel.DistributionSignforExcel; |
|
|
|
|
import com.logpm.distribution.excel.DistributionSignforOwnExcel; |
|
|
|
|
import com.logpm.distribution.service.IDistributionAsyncService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionReservationService; |
|
|
|
|
import com.logpm.distribution.service.IDistributionSignforService; |
|
|
|
|
import com.logpm.distribution.service.impl.DistributionAddvalueServiceImpl; |
|
|
|
@ -82,6 +83,8 @@ public class DistributionSignforController extends BladeController {
|
|
|
|
|
|
|
|
|
|
private final IBasicdataWarehouseClient warehouseClient; |
|
|
|
|
|
|
|
|
|
private final IDistributionAsyncService distributionAsyncService; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 签收管理 详情 |
|
|
|
|
*/ |
|
|
|
@ -268,9 +271,18 @@ public class DistributionSignforController extends BladeController {
|
|
|
|
|
@ApiOperation(value = "新增", notes = "传入distributionSignfor") |
|
|
|
|
public R oneclick(@Valid @RequestBody DistributionSignforDTO distributionSignfor) { |
|
|
|
|
distributionSignfor.setIsClerk(true); |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
|
|
|
|
|
R r = distributionSignforService.oneclick(distributionSignfor); |
|
|
|
|
List<String> packageCodes = (List<String>)r.getData(); |
|
|
|
|
try{ |
|
|
|
|
Map<String,Object> data = (Map<String, Object>) r.getData(); |
|
|
|
|
if (Func.isNotEmpty(data)){ |
|
|
|
|
List<Long> packageIds = (List<Long>) data.get("packageIds"); |
|
|
|
|
Long signId = (Long) data.get("signId"); |
|
|
|
|
distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId()); |
|
|
|
|
distributionAsyncService.sendReviewFactory(signId,myCurrentWarehouse.getName() ,myCurrentWarehouse.getId()); |
|
|
|
|
} |
|
|
|
|
String orderPackageCodes = null; |
|
|
|
|
for (String packageCode : packageCodes) { |
|
|
|
|
if(StringUtils.isBlank(orderPackageCodes)){ |
|
|
|
@ -279,7 +291,6 @@ public class DistributionSignforController extends BladeController {
|
|
|
|
|
orderPackageCodes = orderPackageCodes + "," +packageCode; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
updownTypeClient.downPackageOrDelTray(orderPackageCodes,myCurrentWarehouse.getId()); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error("##############oneclick: 更新包件下架状态失败 packageCodes={}",packageCodes); |
|
|
|
|