Sfoglia il codice sorgente

质检油罐初检后封仓

mengy 5 anni fa
parent
commit
8042eab499

+ 2 - 1
src/main/java/com/chinaitop/depot/storage/controller/StorageQualitycheckController.java

@@ -296,7 +296,8 @@ public class StorageQualitycheckController {
296
         if(StringUtils.isNoneBlank(warehouseId)){
296
         if(StringUtils.isNoneBlank(warehouseId)){
297
             qualityCheck.setWarehouseId(Integer.valueOf(warehouseId));
297
             qualityCheck.setWarehouseId(Integer.valueOf(warehouseId));
298
         }
298
         }
299
-        qualityCheck.setType("1");///查找验收质量管理的信息
299
+//        qualityCheck.setType("1");///查找验收质量管理的信息
300
+        qualityCheck.setType("0");///查找初检质量管理的信息
300
 
301
 
301
         qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
302
         qualityCheck.setHistoryStatus(0);//0:最新数据  1:历史数据
302
 
303
 

+ 12 - 6
src/main/java/com/chinaitop/depot/storage/mapper/StorageFoodbasicinfoMapper.xml

@@ -998,7 +998,8 @@
998
     sf.place_of_origin,
998
     sf.place_of_origin,
999
     <!--  #tbt.storehouse_id,-->
999
     <!--  #tbt.storehouse_id,-->
1000
     bt.storageTank_name storehouseName,
1000
     bt.storageTank_name storehouseName,
1001
-
1001
+    bt.tank_type storehouseType,
1002
+    bt.tank_capacity designCapacity,
1002
     temp_sqk.keeper keeperNames,
1003
     temp_sqk.keeper keeperNames,
1003
     temp_sqk.water,
1004
     temp_sqk.water,
1004
     temp_sqk.impurity,
1005
     temp_sqk.impurity,
@@ -1011,11 +1012,16 @@
1011
     temp_sqk.fat_index,
1012
     temp_sqk.fat_index,
1012
     temp_sqk.quality,
1013
     temp_sqk.quality,
1013
     temp_sqk.sub_type,
1014
     temp_sqk.sub_type,
1014
-    temp_fcbgz.mxpz sub_type_detailed,
1015
+    temp_sqk.location,
1016
+    temp_sqk.sub_type_detailed,
1017
+    temp_sqk.number,
1018
+    temp_sqk.number * 0.001 stand_number,
1019
+    temp_sqk.harvest_time harvestTime
1020
+    <!--temp_fcbgz.mxpz sub_type_detailed,
1015
     temp_fcbgz.kcsl number,
1021
     temp_fcbgz.kcsl number,
1016
     temp_fcbgz.kcsl * 0.001  stand_number,
1022
     temp_fcbgz.kcsl * 0.001  stand_number,
1017
     temp_fcbgz.hwcd,
1023
     temp_fcbgz.hwcd,
1018
-    temp_fcbgz.scnf
1024
+    temp_fcbgz.scnf-->
1019
     FROM
1025
     FROM
1020
     storage_foodbasicinfo sf
1026
     storage_foodbasicinfo sf
1021
     LEFT JOIN (
1027
     LEFT JOIN (
@@ -1027,14 +1033,14 @@
1027
     <if test="houseId != null">
1033
     <if test="houseId != null">
1028
       AND sqk.tank_id = #{houseId}
1034
       AND sqk.tank_id = #{houseId}
1029
     </if>
1035
     </if>
1030
-    AND sqk.type = 1
1036
+    AND sqk.type = 0
1031
     AND sqk.history_status = 0
1037
     AND sqk.history_status = 0
1032
     ORDER BY
1038
     ORDER BY
1033
     id DESC
1039
     id DESC
1034
     LIMIT 1
1040
     LIMIT 1
1035
     ) temp_sqk ON sf.house_id = temp_sqk.house_id
1041
     ) temp_sqk ON sf.house_id = temp_sqk.house_id
1036
     LEFT JOIN basic_tank bt ON bt.id = sf.house_id
1042
     LEFT JOIN basic_tank bt ON bt.id = sf.house_id
1037
-    LEFT JOIN (
1043
+    <!--LEFT JOIN (
1038
     SELECT
1044
     SELECT
1039
     *
1045
     *
1040
     FROM
1046
     FROM
@@ -1046,7 +1052,7 @@
1046
     ORDER BY
1052
     ORDER BY
1047
     rq DESC
1053
     rq DESC
1048
     LIMIT 1
1054
     LIMIT 1
1049
-    ) temp_fcbgz ON sf.house_id = temp_fcbgz.ch
1055
+    ) temp_fcbgz ON sf.house_id = temp_fcbgz.ch-->
1050
     WHERE 1=1
1056
     WHERE 1=1
1051
     <if test="houseId != null">
1057
     <if test="houseId != null">
1052
       AND sf.house_id = #{houseId}
1058
       AND sf.house_id = #{houseId}

+ 2 - 0
src/main/java/com/chinaitop/depot/storage/mapper/StorageQualitycheckMapper.xml

@@ -1911,6 +1911,8 @@
1911
     bs.storeHouse_name storehouseName,
1911
     bs.storeHouse_name storehouseName,
1912
     bw.warehouse_name wareHouseName,
1912
     bw.warehouse_name wareHouseName,
1913
     bb.storageTank_name tankName,
1913
     bb.storageTank_name tankName,
1914
+    bb.tank_type storehouseType,
1915
+    bb.tank_capacity designCapacity,
1914
     sf.foodbasicinfo_id foodbasicinfoId
1916
     sf.foodbasicinfo_id foodbasicinfoId
1915
     FROM storage_qualitycheck sqk
1917
     FROM storage_qualitycheck sqk
1916
     LEFT JOIN basic_storehouse bs on bs.storehouse_id = sqk.house_id
1918
     LEFT JOIN basic_storehouse bs on bs.storehouse_id = sqk.house_id

+ 39 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageFoodbasicinfo.java

@@ -9,6 +9,28 @@ import com.alibaba.fastjson.annotation.JSONField;
9
 import com.fasterxml.jackson.annotation.JsonFormat;
9
 import com.fasterxml.jackson.annotation.JsonFormat;
10
 
10
 
11
 public class StorageFoodbasicinfo {
11
 public class StorageFoodbasicinfo {
12
+
13
+    private Integer storehouseType;//仓型
14
+    private Integer harvestTime;
15
+
16
+    public Integer getStorehouseType() {
17
+        return storehouseType;
18
+    }
19
+
20
+    public void setStorehouseType(Integer storehouseType) {
21
+        this.storehouseType = storehouseType;
22
+    }
23
+
24
+    public BigDecimal getDesignCapacity() {
25
+        return designCapacity;
26
+    }
27
+
28
+    public void setDesignCapacity(BigDecimal designCapacity) {
29
+        this.designCapacity = designCapacity;
30
+    }
31
+
32
+
33
+    private BigDecimal designCapacity;//仓容
12
     private Integer id;
34
     private Integer id;
13
 
35
 
14
     private  String houseId;
36
     private  String houseId;
@@ -20,6 +42,15 @@ public class StorageFoodbasicinfo {
20
     private String keepUnite;
42
     private String keepUnite;
21
 
43
 
22
     private String locationNum;
44
     private String locationNum;
45
+    private Integer location;
46
+
47
+    public Integer getLocation() {
48
+        return location;
49
+    }
50
+
51
+    public void setLocation(Integer location) {
52
+        this.location = location;
53
+    }
23
 
54
 
24
     private String quality;
55
     private String quality;
25
 
56
 
@@ -37,6 +68,14 @@ public class StorageFoodbasicinfo {
37
 
68
 
38
     private Integer growYear;
69
     private Integer growYear;
39
 
70
 
71
+    public Integer getHarvestTime() {
72
+        return harvestTime;
73
+    }
74
+
75
+    public void setHarvestTime(Integer harvestTime) {
76
+        this.harvestTime = harvestTime;
77
+    }
78
+
40
     private String keepMethod;
79
     private String keepMethod;
41
 
80
 
42
     private String level;
81
     private String level;

+ 22 - 0
src/main/java/com/chinaitop/depot/storage/model/StorageQualitycheck.java

@@ -5,6 +5,28 @@ import java.math.BigDecimal;
5
 
5
 
6
 
6
 
7
 public class StorageQualitycheck {
7
 public class StorageQualitycheck {
8
+
9
+
10
+    private Integer storehouseType;//仓型
11
+
12
+    public Integer getStorehouseType() {
13
+        return storehouseType;
14
+    }
15
+
16
+    public void setStorehouseType(Integer storehouseType) {
17
+        this.storehouseType = storehouseType;
18
+    }
19
+
20
+    public BigDecimal getDesignCapacity() {
21
+        return designCapacity;
22
+    }
23
+
24
+    public void setDesignCapacity(BigDecimal designCapacity) {
25
+        this.designCapacity = designCapacity;
26
+    }
27
+
28
+
29
+    private BigDecimal designCapacity;//仓容
8
     /*2021.01新增字段*/
30
     /*2021.01新增字段*/
9
     //0 初检,1验收
31
     //0 初检,1验收
10
     private Integer flagType;
32
     private Integer flagType;

+ 1 - 0
src/main/java/com/chinaitop/depot/storage/service/impl/StorageFoodbasicInfoServiceImpl.java

@@ -131,6 +131,7 @@ public class StorageFoodbasicInfoServiceImpl implements StorageFoodbasicInfoServ
131
         //⑤其他
131
         //⑤其他
132
         foodbasicInfo.setKeepUnite(qualitycheckVo.getDepotName());//所属库点名称
132
         foodbasicInfo.setKeepUnite(qualitycheckVo.getDepotName());//所属库点名称
133
         foodbasicInfo.setSealStatus("1");//代表已经封仓
133
         foodbasicInfo.setSealStatus("1");//代表已经封仓
134
+        //foodbasicInfo.setKeepUnite(foodbasicInfo.getRecorder());//代表已经封仓
134
 
135
 
135
         //1.1状态已封仓
136
         //1.1状态已封仓
136
         qualitycheck.setSealStatus("1");
137
         qualitycheck.setSealStatus("1");