Explorar el Código

Merge branch 'dev' of http://101.36.160.140:21044/depot-qinghai/depot-qualitycheck-qinghai into dev

ZeroLiYi hace 1 año
padre
commit
b7f97f3a74

+ 1 - 1
src/main/java/com/chinaitop/depot/qualityControl/mapper/BusinessQcQualityInspectionMapper.java

@@ -33,7 +33,7 @@ public interface BusinessQcQualityInspectionMapper {
33 33
 
34 34
     int updateByPrimaryKey(BusinessQcQualityInspection record);
35 35
 
36
-    String selectOnly(Map<String, Object> map);
36
+    String selectOnly();
37 37
 
38 38
     List<BusinessQcQualityInspection> getPageList(BusinessQcQualityInspectionPage pageParam);
39 39
 

+ 0 - 11
src/main/java/com/chinaitop/depot/qualityControl/mapper/BusinessQcQualityInspectionMapper.xml

@@ -760,17 +760,6 @@
760 760
         zjbgdh
761 761
     FROM
762 762
         business_qc_quality_inspection
763
-    <where>
764
-      <if test="orgId != null and orgId != ''">
765
-        org_id = #{orgId}
766
-      </if>
767
-      <if test="basicStorehouseId != null and basicStorehouseId != ''">
768
-        and basic_storehouse_id = #{basicStorehouseId}
769
-      </if>
770
-      <if test="warehouseId != null and warehouseId != ''">
771
-        and warehouse_id = #{warehouseId}
772
-      </if>
773
-    </where>
774 763
     ORDER BY createdate DESC
775 764
     LIMIT 1
776 765
   </select>

+ 5 - 5
src/main/java/com/chinaitop/depot/qualityControl/service/impl/QualityInspectionServiceImpl.java

@@ -81,11 +81,11 @@ public class QualityInspectionServiceImpl implements QualityInspectionService {
81 81
     // // 生成质检报告单(检验类别+检验日期(yyyyMMdd)+4位顺序号组成)
82 82
     private synchronized String GetZjbgdh(BusinessQcQualityInspection saveParam) {
83 83
         // 查询最后一个顺序号
84
-        Map<String, Object> map = new HashMap<>();
85
-        map.put("orgId", saveParam.getOrgId());
86
-        map.put("basicStorehouseId", saveParam.getBasicStorehouseId());
87
-        map.put("warehouseId", saveParam.getWarehouseId());
88
-        String xh = qualityInspectionMapper.selectOnly(map);
84
+//        Map<String, Object> map = new HashMap<>();
85
+//        map.put("orgId", saveParam.getOrgId());
86
+//        map.put("basicStorehouseId", saveParam.getBasicStorehouseId());
87
+//        map.put("warehouseId", saveParam.getWarehouseId());
88
+        String xh = qualityInspectionMapper.selectOnly();
89 89
         // 初始化
90 90
         int num = 1;
91 91
         if (!StringUtils.isEmpty(xh)) {