Your Name 3 lat temu
rodzic
commit
d6a48b5100

+ 70 - 2
src/main/java/com/steerinfo/dil/controller/RMScontroller.java

@@ -180,6 +180,23 @@ public class RMScontroller {
     public Map<String, Object> getCarrierById(@PathVariable("id")BigDecimal id){
         return rmsFeign.getCarrierById(id);
     }
+//    获取中标区域
+    @ApiOperation(value="展示中标区域信息")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "apiId", value = "406", required = false, dataType = "BigDecimal"),
+            @ApiImplicitParam(name = "id", value = "中标id", required = false, dataType = "BigDecimal"),
+    })
+    @PostMapping("/getCarrierBidAreaList")
+    public Map<String, Object> getCarrierBidAreaList(@RequestBody(required=false) Map<String,Object> mapValue,
+                                               Integer apiId,
+                                               Integer pageNum,
+                                               Integer pageSize,
+                                               String con
+    ){
+        return   rmsFeign.getCarrierBidAreaList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize,con);
+    }
 
     //获取物资列表
     @ApiOperation(value="获取物资列表")
@@ -242,7 +259,6 @@ public class RMScontroller {
                                                 Integer apiId,
                                                 Integer pageNum,
                                                 Integer pageSize,
-
                                                 String con
     ){
 
@@ -716,7 +732,7 @@ public class RMScontroller {
         return rmsFeign.insertNotice(map);
     }
 
-    @ApiOperation(value = "更新油价信息", notes = "根据dilNotice对象创建")
+    @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
     @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
     @PostMapping(value = "/updateNotice", produces  = "application/json;charset=UTF-8")
     public Map<String, Object> updateNotice(@RequestBody(required = false) Map<String, Object> map) {
@@ -783,6 +799,58 @@ public class RMScontroller {
         return rmsFeign.getNoticeById(id);
     }
 
+    //油价
+    @ApiOperation(value = "获取公告信息", notes = "分页查询")
+    @ApiImplicitParams({
+            @ApiImplicitParam(name = "mapValue", value = "表头和参数", required = false, dataType = "map"),
+            @ApiImplicitParam(name = "apiId()", value = "动态表头", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageNum", value = "页码", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "pageSize", value = "页", required = false, dataType = "Integer"),
+            @ApiImplicitParam(name = "status", value = "状态码", required = false, dataType = "Integer"),
+    })
+
+
+    @PostMapping(value = "/getOilPriceResultList")
+    public Map<String, Object> getOilPriceResultList(@RequestBody(required = false) Map<String, Object> mapValue,
+                                             Integer apiId,
+                                             Integer pageNum,
+                                             Integer pageSize,
+                                             String con
+    ) {
+        if (mapValue == null) {
+            mapValue = new HashMap<>();
+        }
+        return rmsFeign.getOilPriceResultList(mapValue == null ? new HashMap<>() : mapValue, apiId, pageNum, pageSize, con);
+    }
+
+    @ApiOperation(value="新增油价信息", notes="根据DilNotice对象创建")
+    @ApiImplicitParam(name = "addOilPrice", value = "详细实体dilNotice", required = true, dataType = "DilNotice")
+    @PostMapping(value = "/insertOilPrice")
+    public Map<String, Object> insertOilPrice(@RequestBody(required = false) Map<String, Object> map) {
+        return rmsFeign.insertOilPrice(map);
+    }
+
+    @ApiOperation(value = "更新公告信息", notes = "根据dilNotice对象创建")
+    @ApiImplicitParam(name = "dilNotice", value = "详细实体dilNotice", required = true, dataType = "dilNotice")
+    @PostMapping(value = "/updateOilPrice", produces  = "application/json;charset=UTF-8")
+    public Map<String, Object> updateOilPrice(@RequestBody(required = false) Map<String, Object> map) {
+        return rmsFeign.updateOilPrice(map);
+    }
+
+    @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "BigDecimal")
+    @PostMapping(value = "/deleteOilPrice/{id}")//BigDecimal
+    public Map<String, Object> deleteOilPrice(@PathVariable("id") BigDecimal id) {
+        return rmsFeign.deleteOilPrice(id);
+    }
+
+    @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
+    @ApiImplicitParam(paramType = "path", name = "公告id", value = "ID", required = true, dataType = "BigDecimal")
+    @PostMapping(value = "/getOilPriceById/{id}")
+    public Map<String, Object> getOilPriceById(@PathVariable("id") BigDecimal id){
+        return rmsFeign.getOilPriceById(id);
+    }
+
 
 
 //*******************************下拉框************************

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

@@ -5,9 +5,7 @@ import com.steerinfo.dil.util.BaseRESTfulController;
 import com.steerinfo.framework.controller.RESTfulResult;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.*;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -18,6 +16,8 @@ import java.util.Map;
  * @GreateTime:2021/10/12 9:54
  * @Version:V2.0
  */
+@RestController
+@RequestMapping("${api.version}/wmsh")
 public class WMSHController extends BaseRESTfulController {
 
     @Autowired

+ 34 - 0
src/main/java/com/steerinfo/dil/feign/RmsFeign.java

@@ -108,6 +108,13 @@ public interface RmsFeign {
     //    根据id获取承运商信息
     @PostMapping(value = "api/v1/rms/rmscarrier/getCarrierById/{id}")
     Map<String, Object> getCarrierById(@PathVariable("id") BigDecimal id);
+//    展示中标区域
+    @PostMapping(value = "api/v1/rms/rmscarrier/getCarrierBidAreaList")
+    Map<String, Object> getCarrierBidAreaList(@RequestBody(required = false) Map<String,Object> mapValue,
+                                          @RequestParam("apiId") Integer apiId,
+                                          @RequestParam("pageNum") Integer pageNum,
+                                          @RequestParam("pageSize") Integer pageSize,
+                                          @RequestParam String con);
 
     //获取物资列表
     @PostMapping(value = "api/v1/rms/rmsmaterial/getMaterialList")
@@ -416,6 +423,29 @@ public interface RmsFeign {
     Map<String, Object> getNoticeById(@PathVariable("id") BigDecimal id);
 
 
+    //油价
+    @PostMapping(value = "/api/v1/rms/rmsoilprice/getOilPriceResultList")
+    Map<String, Object> getOilPriceResultList(@RequestBody(required = false) Map<String, Object> mapValue,
+                                      @RequestParam("apiId") Integer apiId,
+                                      @RequestParam("pageNum") Integer pageNum,
+                                      @RequestParam("pageSize") Integer pageSize,
+                                      @RequestParam("con") String con);
+    //新增油价
+    @PostMapping(value = "api/v1/rms/rmsoilprice/insertOilPrice")
+    Map<String,Object> insertOilPrice(@RequestBody(required = false) Map<String,Object> map);
+
+    //删除油价
+    @PostMapping(value = "api/v1/rms/rmsoilprice/deleteOilPrice/{id}")
+    Map<String, Object> deleteOilPrice(@PathVariable("id") BigDecimal id);
+
+    //更新油价
+    @PostMapping(value = "api/v1/rms/rmsoilprice/updateOilPrice")
+    Map<String, Object> updateOilPrice(@RequestBody(required = false) Map<String, Object> map);
+
+    //根据id获取油价
+    @PostMapping(value = "api/v1/rms/rmsoilprice/getOilPriceById/{id}")
+    Map<String, Object> getOilPriceById(@PathVariable("id") BigDecimal id);
+
 //******************************************下拉框*******************************
 
 
@@ -466,7 +496,11 @@ public interface RmsFeign {
     @PostMapping(value = "api/v1/rms/rmsPortYard/insertPortYard")
     Map<String, Object> insertPortYard(@RequestBody(required = false) Map<String, Object> map);
 
+<<<<<<< HEAD
     //删除港存堆场
     @PostMapping(value = "api/v1/rms/rmsPortYard/deletePortYard/{warehouseId}")
     Map<String, Object> deletePortYard(@PathVariable("warehouseId") BigDecimal warehouseId);
+=======
+
+>>>>>>> 42a042a9105395a6805599095be5021d55dc41b4
 }

+ 4 - 3
src/main/resources/bootstrap.yml

@@ -28,7 +28,7 @@ openfeign:
     ColumnDataFeign:
       url: ${COLUMNDATAFEIGN_URL:172.16.33.166:8083}
     AmsFeign:
-      url: ${AMSFEIGN_URL:localhost:8079}
+      url: ${AMSFEIGN_URL:172.16.33.166:8079}
     BmsshipFeign:
       url: ${BMSSHIPFEIGN_URL:172.16.33.166:8078}
     BmstrainFeign:
@@ -48,9 +48,10 @@ openfeign:
     WMSFeign:
       url: ${WMSFEIGN_URL:172.16.33.166:8093}
     OMSFeign:
-      url: ${OMSFEIGN_URL:localhost:8095}
+      url: ${OMSFEIGN_URL:172.16.33.166:8095}
     RmsFeign:
-      url: ${RMSFEIGN_HRL:localhost:8060}
+      url: ${RMSFEIGN_URL:172.16.33.166:8060}
+
 
   #测试环境
 #  ColumnDataFeign:

+ 3 - 5
src/main/resources/com/steerinfo/dil/mapper/UniversalMapper.xml

@@ -400,23 +400,21 @@
 
     <!-- 边输边查承运商   -->
     <select id="getCarrierMesByLike" parameterType="string" resultType="java.util.Map">
-        select
-        *
-        from(
         select
             RC.CARRIER_ID "carrierId",
-            RC.CARRIER_NAME "value"
+            RC.CARRIER_NAME "value",
+            RC.CARRIER_NAME "carrierName"
         from RMS_CARRIER RC
         <where>
             <if test="index != null">
                 RC.CARRIER_NAME  like #{index}
+                and rownum &lt; 10
             </if>
             <if test="index == null">
                 rownum &lt; 10
             </if>
         </where>
         order by "value"
-        )
     </select>
 
     <select id="queryConsigneeByLike" resultType="java.util.Map" parameterType="java.util.Map" >