|
|
@@ -11,6 +11,7 @@ import com.steerinfo.dil.util.BaseRESTfulController;
|
|
|
import com.steerinfo.dil.util.ExcelToolUtils;
|
|
|
import com.steerinfo.dil.util.Util;
|
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -214,6 +215,20 @@ public class TMSController extends BaseRESTfulController {
|
|
|
return tmsFeign.updCountResult(map);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value="审批计时")
|
|
|
+ @PostMapping(value = "/approveTimeResult")
|
|
|
+ @LogAround(foreignKeys = {"transOrderId"}, foreignKeyTypes = {"计次"})
|
|
|
+ public Map<String, Object> approveTimeResult(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ return tmsFeign.approveTimeResult(map);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value="计时复报")
|
|
|
+ @PostMapping(value = "/resendTimeResult")
|
|
|
+ @LogAround(foreignKeys = {"transOrderId"}, foreignKeyTypes = {"计次"})
|
|
|
+ public Map<String, Object> resendTimeResult(@RequestBody(required = false) Map<String, Object> map) {
|
|
|
+ return tmsFeign.resendTimeResult(map);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "查询计时")
|
|
|
@PostMapping("/tmstimingresultsList")
|
|
|
public Map<String, Object> tmstimingresultsList(@RequestBody(required = false) Map<String, Object> map,
|
|
|
@@ -707,12 +722,38 @@ public class TMSController extends BaseRESTfulController {
|
|
|
//校验行
|
|
|
if(item.get("通知单号")==null || item.get("通知单号").equals("")
|
|
|
|| item.get("车号")==null || item.get("车号").equals("")
|
|
|
- || item.get("卸车日期")==null || item.get("卸车日期").equals("")
|
|
|
- || item.get("皮重")==null || item.get("皮重").equals("")
|
|
|
- || item.get("毛重")==null || item.get("毛重").equals("")){
|
|
|
- throw new Exception("单元格数据异常(通知单号/车号/卸车日期/净重),请检查模板或数据是否正确!");
|
|
|
+ || item.get("卸车日期")==null || item.get("卸车日期").equals("")){
|
|
|
+ throw new Exception("单元格数据异常(通知单号/车号/卸车日期),请检查模板或数据是否正确!");
|
|
|
+ }
|
|
|
+ if(item.get("净重") == null || item.get("净重").equals("")){
|
|
|
+ //净重为空
|
|
|
+ if(item.get("毛重") != null && !item.get("毛重").equals("")
|
|
|
+ && item.get("皮重") != null && !item.get("皮重").equals("")){
|
|
|
+ item.put("净重", DataChange.dataToBigDecimal(item.get("毛重")).subtract(DataChange.dataToBigDecimal(item.get("皮重"))));
|
|
|
+ }else{
|
|
|
+ throw new Exception("单元格数据异常(净重),请检查模板或数据是否正确!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(item.get("毛重") == null || item.get("毛重").equals("")){
|
|
|
+ //毛重为空
|
|
|
+ if(item.get("净重") != null && !item.get("净重").equals("")
|
|
|
+ && item.get("皮重") != null && !item.get("皮重").equals("")){
|
|
|
+ item.put("毛重", DataChange.dataToBigDecimal(item.get("净重")).add(DataChange.dataToBigDecimal(item.get("皮重"))));
|
|
|
+ }else{
|
|
|
+ throw new Exception("单元格数据异常(毛重),请检查模板或数据是否正确!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(item.get("皮重") == null || item.get("皮重").equals("")){
|
|
|
+ //毛重为空
|
|
|
+ if(item.get("净重") != null && !item.get("净重").equals("")
|
|
|
+ && item.get("毛重") != null && !item.get("毛重").equals("")){
|
|
|
+ item.put("皮重", DataChange.dataToBigDecimal(item.get("毛重")).subtract(DataChange.dataToBigDecimal(item.get("净重"))));
|
|
|
+ }else{
|
|
|
+ throw new Exception("单元格数据异常(皮重),请检查模板或数据是否正确!");
|
|
|
+ }
|
|
|
}
|
|
|
- item.put("净重", DataChange.dataToBigDecimal(item.get("毛重")).subtract(DataChange.dataToBigDecimal(item.get("皮重"))));
|
|
|
//校验数据
|
|
|
// if(unloadTime == null){
|
|
|
// unloadTime = item.get("卸车日期").toString();
|
|
|
@@ -1089,4 +1130,10 @@ public class TMSController extends BaseRESTfulController {
|
|
|
Integer pageSize) {
|
|
|
return tmsFeign.purchaseTrainsOrderList(map == null ? new HashMap<>() : map, apiId, pageNum, pageSize);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("吊装信息")
|
|
|
+ @PostMapping("/disposeHandling")
|
|
|
+ public Map<String,Object> disposeHandling(@RequestBody Map<String,Object> map) {
|
|
|
+ return tmsFeign.disposeHandling(map);
|
|
|
+ }
|
|
|
}
|