|
@@ -3,12 +3,16 @@ package com.steerinfo.dil.controller;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.serializer.MapSerializer;
|
|
import com.alibaba.fastjson.serializer.MapSerializer;
|
|
import com.steerinfo.dil.feign.ESFeign;
|
|
import com.steerinfo.dil.feign.ESFeign;
|
|
|
|
+import com.steerinfo.dil.mapper.AmsshipCargoTransferResultMapper;
|
|
|
|
+import com.steerinfo.dil.mapper.DilBatchMapper;
|
|
import com.steerinfo.dil.model.AmsshipCargoTransferResult;
|
|
import com.steerinfo.dil.model.AmsshipCargoTransferResult;
|
|
import com.steerinfo.dil.model.AmsshipDeliveryAttorney;
|
|
import com.steerinfo.dil.model.AmsshipDeliveryAttorney;
|
|
|
|
+import com.steerinfo.dil.model.DilBatch;
|
|
import com.steerinfo.dil.model.OmsshipShipmentInstructions;
|
|
import com.steerinfo.dil.model.OmsshipShipmentInstructions;
|
|
import com.steerinfo.dil.service.IAmsshipCargoTransferResultService;
|
|
import com.steerinfo.dil.service.IAmsshipCargoTransferResultService;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
import com.steerinfo.framework.service.pagehelper.PageHelper;
|
|
@@ -48,6 +52,10 @@ public class AmsshipCargoTransferResultController extends BaseRESTfulController
|
|
@Autowired
|
|
@Autowired
|
|
ColumnDataUtil columnDataUtil;
|
|
ColumnDataUtil columnDataUtil;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ DilBatchMapper dilBatchMapper;
|
|
|
|
+ @Autowired
|
|
|
|
+ AmsshipCargoTransferResultMapper amsshipCargoTransferResultMapper;
|
|
|
|
+ @Autowired
|
|
ESFeign esFeign;
|
|
ESFeign esFeign;
|
|
|
|
|
|
@ApiOperation(value = "展示货权转移表", notes = "分页查询")
|
|
@ApiOperation(value = "展示货权转移表", notes = "分页查询")
|
|
@@ -114,7 +122,12 @@ public class AmsshipCargoTransferResultController extends BaseRESTfulController
|
|
BigDecimal deleted = new BigDecimal(1);
|
|
BigDecimal deleted = new BigDecimal(1);
|
|
amsshipCargoTransferResult.setDeleted(deleted);
|
|
amsshipCargoTransferResult.setDeleted(deleted);
|
|
amsshipCargoTransferResultService.updateByPrimaryKeySelective(amsshipCargoTransferResult);
|
|
amsshipCargoTransferResultService.updateByPrimaryKeySelective(amsshipCargoTransferResult);
|
|
- return success();
|
|
|
|
|
|
+ //删除批次
|
|
|
|
+ //根据货权转移id查找批次id
|
|
|
|
+ Map<String, Object> map = amsshipCargoTransferResultMapper.getBatchIdByCargoTransferResultId(DataChange.dataToBigDecimal(cargoTransferResultId));
|
|
|
|
+ BigDecimal batchId =DataChange.dataToBigDecimal(map.get("batchId"));
|
|
|
|
+ int i = dilBatchMapper.deleteByPrimaryKey(batchId.shortValue());
|
|
|
|
+ return success(i);
|
|
}
|
|
}
|
|
|
|
|
|
//得到收货人id
|
|
//得到收货人id
|