|
@@ -1,5 +1,6 @@
|
|
package com.steerinfo.dil.controller;
|
|
package com.steerinfo.dil.controller;
|
|
|
|
|
|
|
|
+import com.steerinfo.dil.feign.TmstruckFeign;
|
|
import com.steerinfo.dil.service.impl.TmstruckWeightResultServiceImpl;
|
|
import com.steerinfo.dil.service.impl.TmstruckWeightResultServiceImpl;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
@@ -7,6 +8,7 @@ import io.swagger.annotations.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -20,7 +22,11 @@ import java.util.Map;
|
|
public class TmstruckWeightResultController extends BaseRESTfulController {
|
|
public class TmstruckWeightResultController extends BaseRESTfulController {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- TmstruckWeightResultServiceImpl tmstruckWeightResultService;
|
|
|
|
|
|
+ TmstruckWeightResultServiceImpl tmstruckWeightResultServiceImpl;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ TmstruckFeign tmstruckFeign;
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 接收计量实绩(计量实绩)
|
|
* 接收计量实绩(计量实绩)
|
|
@@ -36,35 +42,44 @@ public class TmstruckWeightResultController extends BaseRESTfulController {
|
|
name = "orderNumber",value = "运输订单号",required = true,dataType = "String"
|
|
name = "orderNumber",value = "运输订单号",required = true,dataType = "String"
|
|
),
|
|
),
|
|
@ApiImplicitParam(
|
|
@ApiImplicitParam(
|
|
- name = "tareCalculateNumber",value = "计皮汽车衡编号",required = true,dataType = "String"
|
|
|
|
- ),
|
|
|
|
- @ApiImplicitParam(
|
|
|
|
- name = "grossCalculatedNumber",value = "计毛汽车衡编号",required = true,dataType = "String"
|
|
|
|
- ),
|
|
|
|
- @ApiImplicitParam(
|
|
|
|
- name = "resultTareWeight",value = "皮重",required = true,dataType = "Double"
|
|
|
|
- ),
|
|
|
|
- @ApiImplicitParam(
|
|
|
|
- name = "resultTareWeightTime",value = "计皮时间",required = true,dataType = "Date"
|
|
|
|
|
|
+ name = "tareCalculateNumber",value = "计皮/计毛汽车衡编号",required = true,dataType = "String"
|
|
),
|
|
),
|
|
@ApiImplicitParam(
|
|
@ApiImplicitParam(
|
|
- name = "resultFrossWeight",value = "皮重",required = true,dataType = "Double"
|
|
|
|
|
|
+ name = "resultWeight",value = "皮重或者毛重",required = true,dataType = "Double"
|
|
),
|
|
),
|
|
@ApiImplicitParam(
|
|
@ApiImplicitParam(
|
|
- name = "resultGrossWeightTime",value = "计毛时间",required = true,dataType = "Date"
|
|
|
|
|
|
+ name = "resultWeightTime",value = "计皮/计毛时间,毫秒数的时间戳",required = true,dataType = "Long"
|
|
),
|
|
),
|
|
@ApiImplicitParam(
|
|
@ApiImplicitParam(
|
|
name = "resultNetWeight",value = "净重",required = true,dataType = "Double"
|
|
name = "resultNetWeight",value = "净重",required = true,dataType = "Double"
|
|
|
|
+ ),@ApiImplicitParam(
|
|
|
|
+ name = "resultPoundNo",value = "磅单号",required = true,dataType = "String"
|
|
|
|
+ ),@ApiImplicitParam(
|
|
|
|
+ name = "weightType",value = "计皮/计毛",required = true,dataType = "String"
|
|
)
|
|
)
|
|
}
|
|
}
|
|
-
|
|
|
|
)
|
|
)
|
|
-
|
|
|
|
@PostMapping("/receiveTmsTruckWeightResult")
|
|
@PostMapping("/receiveTmsTruckWeightResult")
|
|
- public RESTfulResult receiveTmsTruckWeightResult(@RequestBody Map<String,Object> mapValue) {
|
|
|
|
- int result = tmstruckWeightResultService.receiveTmsTruckWeightResult(mapValue);
|
|
|
|
- return success();
|
|
|
|
|
|
+ public RESTfulResult receiveTmsTruckWeightResult(@RequestBody(required = true) Map<String,Object> mapValue) {
|
|
|
|
+ int result = tmstruckWeightResultServiceImpl.receiveTmsTruckWeightResult(mapValue);
|
|
|
|
+ return success(result);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 计量退货异常
|
|
|
|
+ * @param orderNo
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/abnormalReturn")
|
|
|
|
+ @ApiOperation("value=触发退货实绩")
|
|
|
|
+ @ApiImplicitParam(name = "orderNo",value = "运输订单号",required = true,dataType = "String")
|
|
|
|
+ public RESTfulResult sendAbnormalReturn(String orderNo){
|
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
|
+ map.put("purchOrder",orderNo);
|
|
|
|
+ return success(tmstruckFeign.sendAbnormalReturn(map));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|