liyg 2 роки тому
батько
коміт
b0cc8a93e4

+ 5 - 1
src/main/java/com/steerinfo/dil/controller/TmsshipTotalResultController.java

@@ -64,7 +64,11 @@ public class TmsshipTotalResultController extends BaseRESTfulController {
     public RESTfulResult listAllOrders(@RequestBody(required = false) Map<String,Object> mapVal,
                                        Integer pageNum,
                                        Integer pageSize,
-                                       Integer apiId){
+                                       Integer apiId,
+                                       String con){
+        if(con !=null){
+            mapVal.put("con",con);
+        }
         List<Map<String, Object>> detailListTotal = tmsshipTotalResultService.getOrderList(mapVal);
         PageHelper.startPage(pageNum, pageSize);
         //分页查询数据

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

@@ -452,6 +452,10 @@
         ON ttr.RESULT_ID =towr.TOTAL_RESULT_ID
         where tlsr.DELETED=0 and  adn.DELETED=0 and ada.DELETED=0
         and oic.DELETED=0 and osi.DELETED=0
+        <if test="con!=null and con!=''.toString()">
+        and    rm.MATERIAL_NAME || db.RESULT_FOREIGN_SHIP_NAME || rc.CAPACITY_NUMBER || rps.PORT_NAME
+        like Concat(concat('%',#{con}),'%')
+        </if>
         )
         <where>
             <if test="materialName != null">