Explorar o código

'销售派车'

HUJIANGUO %!s(int64=3) %!d(string=hai) anos
pai
achega
7127fd0303

+ 8 - 3
src/main/java/com/steerinfo/dil/controller/AMScontroller.java

@@ -1337,11 +1337,12 @@ public class AMScontroller{
     public Map<String, Object> getAmsSaleOrderApprovedes(@RequestBody(required = false) Map<String, Object> mapValue,
                                                          Integer pageNum,
                                                          Integer pageSize,
-                                                         Integer apiId) {
+                                                         Integer apiId,
+                                                         String index) {
         if (mapValue == null) {
             mapValue = new HashMap<>();
         }
-        return amsFeign.getAmsSaleOrderApprovedes(mapValue, pageNum, pageSize, apiId);
+        return amsFeign.getAmsSaleOrderApprovedes(mapValue, pageNum, pageSize, apiId,index);
     }
 
     /*
@@ -1471,7 +1472,11 @@ public class AMScontroller{
         return amsFeign.getClientNoticeList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
     }
 
-
+    @ApiOperation(value="销售公司直接选择车牌号派发运输订单")
+    @PostMapping("/dispatchTruckOrderBySale")
+    public Map<String,Object> dispatchTruckOrderBySale(@RequestBody Map<String,Object> mapValue){
+        return amsFeign.dispatchTruckOrderBySale(mapValue);
+    }
 
 
 

+ 9 - 3
src/main/java/com/steerinfo/dil/controller/UniversalController.java

@@ -113,7 +113,7 @@ public class UniversalController extends BaseRESTfulController {
     @ApiOperation(value="查询所有空闲的运力信息")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
-            @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "apiId(248)", value = "动态表头", required = false, dataType = "Integer"),
             @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
             @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
     })
@@ -129,9 +129,15 @@ public class UniversalController extends BaseRESTfulController {
             mapValue = new HashMap<>();
         }
         if(index != null){
-            mapValue.put("index", index + "%");
+            mapValue.put("index","%" + index + "%");
+        }
+        if (carrierSsoId != null && carrierSsoId.equals("undefined")) {
+            carrierSsoId = null;
+        }
+        BigDecimal carrierId = null;
+        if (carrierSsoId != null) {
+          carrierId = universalMapper.getCarrierIdBySSO(carrierSsoId);
         }
-        BigDecimal carrierId = universalMapper.getCarrierIdBySSO(carrierSsoId);
         mapValue.put("carrierId",carrierId);
         //不分页筛选数据
         List<Map<String, Object>> allCapacity = universalMapper.getAllCapacityByCarrierLike(mapValue);

+ 5 - 1
src/main/java/com/steerinfo/dil/feign/AmsFeign.java

@@ -1314,7 +1314,8 @@ public interface AmsFeign {
     Map<String, Object> getAmsSaleOrderApprovedes(@RequestBody(required = false) Map<String, Object> mapValue,
                                                   @RequestParam("pageNum") Integer pageNum,
                                                   @RequestParam("pageSize") Integer pageSize,
-                                                  @RequestParam("apiId") Integer apiId);
+                                                  @RequestParam("apiId") Integer apiId,
+                                                  @RequestParam("index") String index);
 
     @ApiOperation(value="查询销售订单物资信息")
     @ApiImplicitParams({
@@ -1415,4 +1416,7 @@ public interface AmsFeign {
 
     @PostMapping(value = "api/v1/ams/amsdispatchsaleorders/getDispatchMaterialList")
     RESTfulResult getDispatchMaterialList(@RequestParam Integer dispatchId);
+
+    @PostMapping(value = "api/v1/ams/amssaleordermaterials/dispatchTruckOrderBySale")
+    Map<String, Object> dispatchTruckOrderBySale(Map<String, Object> mapValue);
 }

+ 20 - 4
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -153,13 +153,29 @@
                           JOIN RMS_CARRIER RCA
                                 ON RCA.CARRIER_ID = RC.CARRIER_ID
                  WHERE RC.CAPACITY_STATUS = 0 AND RC.CAPACITY_TYPE_ID = 1
-                   <if test="index != null">
-                       and RCA.CARRIER_NAME LIKE #{index}
-                   </if>
             <if test="carrierId != null" >
                 and RC.CARRIER_ID = #{carrierId}
             </if>
-             )
+             ) RCRC
+        <if test="index != null">
+            where RCRC."capacityNumber" LIKE #{index}
+        </if>
+        <if test="index != null">
+            or RCRC."carrierName" LIKE #{index}
+        </if>
+<!--        <where>-->
+<!--            <if test="capacityNumber != null">-->
+<!--                <foreach collection="capacityNumber" item="item" open="(" separator="or" close=")">-->
+<!--                    "capacityNumber" like '%${item}%'-->
+<!--                </foreach>-->
+<!--            </if>-->
+<!--            <if test="carrierName != null">-->
+<!--                and-->
+<!--                <foreach collection="carrierName" item="item" open="(" separator="or" close=")">-->
+<!--                    "carrierName" like '%${item}%'-->
+<!--                </foreach>-->
+<!--            </if>-->
+<!--        </where>-->
     </select>
 
     <select id="getCarrierIdBySSO" parameterType="java.lang.String" resultType="DECIMAL" >