zengyf пре 2 година
родитељ
комит
a2615380b4

+ 11 - 0
src/main/java/com/steerinfo/dil/controller/AmsContractTruckPriceController.java

@@ -56,6 +56,17 @@ public class AmsContractTruckPriceController extends BaseRESTfulController {
     @Autowired
     AmsContractTruckPriceMapper amsContractTruckPriceMapper;
 
+    /*@ApiOperation(value="导入单价的数据写入数据库")
+    @PostMapping("/importDataForAmsContractTransportPrice")
+    public RESTfulResult importDataForAmsContractTransportPrice(@RequestBody(required = false) List<Map<String,Object>> mapList){
+        //mapList为导入的数据,遍历导入进来的数据,如果数据存在在单价当中则将旧单价改为1,新增单价为0
+        //如果数据查找不到就在收货地址表新增地址,在新增单价
+        //1.查询所有单价数据
+        amsContractTruckPriceMapper
+        for (Map<String, Object> stringObjectMap : mapList) {
+        }
+    }*/
+
     @ApiOperation(value="查询汽运单价信息")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "apiId(109)", value = "表头", required = false, dataType = "Interger")

+ 0 - 4
src/main/resources/com/steerinfo/dil/mapper/AmsContractTruckPriceMapper.xml

@@ -1343,10 +1343,6 @@
     from AMS_CONTRACT_TRANSPORT_PRICE a_t_price
     where a_t_price.OIL_TYPE_ID = #{oilTypeId} and a_t_price.DELETED = 0
     and a_t_price.type=1
-    and to_date(to_char(a_t_price.price_date,'yyyy-mm-dd'),'yyyy-mm-dd')
-    >=to_date('2022-12-07','yyyy-mm-dd')
-    and to_date(to_char(a_t_price.price_date,'yyyy-mm-dd'),'yyyy-mm-dd')
-    <![CDATA[<]]>=to_date('2022-12-07','yyyy-mm-dd')
     order by reference_ht desc
   </select>