Browse Source

Merge remote-tracking branch 'origin/dev-2.20.0' into dev

tangsong 3 months ago
parent
commit
3b1d5ee5fc

+ 2 - 2
unis-plugin/unis-plugin-biz/src/main/java/com/unis/basic.info/modular/unitInfo/mapper/mapping/UnitInfoMapper.xml

@@ -18,7 +18,7 @@
18
     </select>
18
     </select>
19
 
19
 
20
 
20
 
21
-    <!--<select id="selectMyPage" resultType="com.unis.basic.info.modular.unitInfo.vo.UnitInfoVO">
21
+    <select id="selectMyPage" resultType="com.unis.basic.info.modular.unitInfo.vo.UnitInfoVO">
22
         select t1.*, t2.DICT_LABEL dictLabel
22
         select t1.*, t2.DICT_LABEL dictLabel
23
         from biz_unit_info t1
23
         from biz_unit_info t1
24
         left join dev_dict t2 on t1.dwlx = t2.id
24
         left join dev_dict t2 on t1.dwlx = t2.id
@@ -34,7 +34,7 @@
34
 
34
 
35
         order by t1.create_time desc
35
         order by t1.create_time desc
36
 
36
 
37
-    </select>-->
37
+    </select>
38
 
38
 
39
     <select id="getDwGjjDate" parameterType="java.lang.String" resultType="java.util.Map">
39
     <select id="getDwGjjDate" parameterType="java.lang.String" resultType="java.util.Map">
40
         SELECT
40
         SELECT

+ 3 - 2
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/dataKcglKcswDefault/mapper/KcswDefaultMapper.java

@@ -41,7 +41,7 @@ public interface KcswDefaultMapper extends BaseMapper<DataKcglKcswDefault> {
41
 
41
 
42
     List<CrkChartDataVO> getCrkChartDataByDj(@Param("crkCharParam") CrkCharParam crkCharParam);
42
     List<CrkChartDataVO> getCrkChartDataByDj(@Param("crkCharParam") CrkCharParam crkCharParam);
43
 
43
 
44
-    List<CrkKcswXzDataVO> getXzList(@Param("xz") String xz, @Param("orgId") String orgId);
44
+    List<CrkKcswXzDataVO> getXzList( @Param("xz") String xz, @Param("orgId") String orgId,@Param("cityId") String cityId);
45
 
45
 
46
     CrkJyxxDataVO getJyxxDetail(@Param("dataId") String dataId);
46
     CrkJyxxDataVO getJyxxDetail(@Param("dataId") String dataId);
47
 
47
 
@@ -57,8 +57,9 @@ public interface KcswDefaultMapper extends BaseMapper<DataKcglKcswDefault> {
57
 
57
 
58
     /**
58
     /**
59
      * 得到小麦粉,大米不同性质库存信息,在成品粮库存实物表进行查询
59
      * 得到小麦粉,大米不同性质库存信息,在成品粮库存实物表进行查询
60
+     *
60
      * @param xz
61
      * @param xz
61
-     * @param orgId_
62
+     * @param orgId
62
      * @return
63
      * @return
63
      */
64
      */
64
     CrkKcswXzDataVO getMzlDataByxz(@Param("xz") String xz, @Param("orgId") String orgId);
65
     CrkKcswXzDataVO getMzlDataByxz(@Param("xz") String xz, @Param("orgId") String orgId);

+ 4 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/dataKcglKcswDefault/mapper/mapping/KcswDefaultMapper.xml

@@ -110,6 +110,7 @@
110
         depot_qh.org_info b
110
         depot_qh.org_info b
111
         LEFT JOIN  depot_qh.data_kcgl_kcsw_default a on a.UnitID=b.org_id
111
         LEFT JOIN  depot_qh.data_kcgl_kcsw_default a on a.UnitID=b.org_id
112
         LEFT JOIN depot_qh.basic_enum b1_enum ON b1_enum.enumId = IFNULL(a.pz,'3164')
112
         LEFT JOIN depot_qh.basic_enum b1_enum ON b1_enum.enumId = IFNULL(a.pz,'3164')
113
+        LEFT JOIN  province_all.biz_unit_info f  on b.unit_info_id = f.id
113
     WHERE
114
     WHERE
114
         IFNULL(a.hwxz,'6877') IN (${xz}) and IFNULL(a.pz,'3164') in (3164,3166,8000)
115
         IFNULL(a.hwxz,'6877') IN (${xz}) and IFNULL(a.pz,'3164') in (3164,3166,8000)
115
         <if test="orgId == null or orgId == ''">
116
         <if test="orgId == null or orgId == ''">
@@ -118,6 +119,9 @@
118
         <if test="orgId != null and orgId != ''">
119
         <if test="orgId != null and orgId != ''">
119
             and b.org_id = #{orgId}
120
             and b.org_id = #{orgId}
120
         </if>
121
         </if>
122
+        <if test="cityId != null and cityId != ''">
123
+            AND f.zcdz_city  = #{cityId}
124
+        </if>
121
     GROUP BY
125
     GROUP BY
122
         b.org_id,a.pz
126
         b.org_id,a.pz
123
     ) x
127
     ) x

+ 4 - 1
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/dataKcglKcswDefault/param/CrkKcswParam.java

@@ -29,7 +29,10 @@ import javax.validation.constraints.NotNull;
29
 public class CrkKcswParam {
29
 public class CrkKcswParam {
30
 
30
 
31
     @ApiModelProperty(value = "粮食性质: 6877:省级,6878:市级,6879:县级")
31
     @ApiModelProperty(value = "粮食性质: 6877:省级,6878:市级,6879:县级")
32
-    String lsxz;
32
+    private String lsxz;
33
+
34
+    @ApiModelProperty(value = "市州Id")
35
+    private String cityId;
33
 
36
 
34
 
37
 
35
 }
38
 }

+ 3 - 0
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/dataKcglKcswDefault/param/KcswDefaultPageParam.java

@@ -50,6 +50,9 @@ public class KcswDefaultPageParam {
50
     @ApiModelProperty(value = "粮食品种名称")
50
     @ApiModelProperty(value = "粮食品种名称")
51
     String lspzName;
51
     String lspzName;
52
 
52
 
53
+    @ApiModelProperty(value = "检验结果")
54
+    String jyjg;
55
+
53
     @ApiModelProperty(value = "单据号")
56
     @ApiModelProperty(value = "单据号")
54
     String bizNo;
57
     String bizNo;
55
 
58
 

+ 8 - 4
unis-plugin/unis-plugin-biz/src/main/java/com/unis/reserveLayout/modular/dataKcglKcswDefault/service/impl/KcswDefaultServiceImpl.java

@@ -70,6 +70,9 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
70
         if (StringUtils.isNotBlank(pageParam.getLspzName())){
70
         if (StringUtils.isNotBlank(pageParam.getLspzName())){
71
             queryWrapper.like("b_2.enumName",pageParam.getLspzName());
71
             queryWrapper.like("b_2.enumName",pageParam.getLspzName());
72
         }
72
         }
73
+        if (StringUtils.isNotBlank(pageParam.getJyjg())){
74
+            queryWrapper.like("DATA_CRKYW_JYXX_DEFAULT.jyjg",pageParam.getJyjg());
75
+        }
73
         if (StringUtils.isNotBlank(pageParam.getCph())){
76
         if (StringUtils.isNotBlank(pageParam.getCph())){
74
             queryWrapper.like("DATA_CRKYW_RMDJ_DEFAULT.cph",pageParam.getCph());
77
             queryWrapper.like("DATA_CRKYW_RMDJ_DEFAULT.cph",pageParam.getCph());
75
         }
78
         }
@@ -112,13 +115,14 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
112
         String xj = "6879"; //县级储备
115
         String xj = "6879"; //县级储备
113
         Boolean isFilter = false; //是否性质条件过滤
116
         Boolean isFilter = false; //是否性质条件过滤
114
         String orgId = "";
117
         String orgId = "";
118
+        String cityId = crkKcswParam.getCityId();
115
         Double mzl = 0.7; //折算比例,默认0.7
119
         Double mzl = 0.7; //折算比例,默认0.7
116
         if (StringUtils.isNotBlank(crkKcswParam.getLsxz())){ //表示需要进行过滤
120
         if (StringUtils.isNotBlank(crkKcswParam.getLsxz())){ //表示需要进行过滤
117
             xz = crkKcswParam.getLsxz();
121
             xz = crkKcswParam.getLsxz();
118
             isFilter = true;
122
             isFilter = true;
119
         }
123
         }
120
 
124
 
121
-        List<CrkKcswXzDataVO> dfcbList = kcswDefaultMapper.getXzList(xz,orgId);
125
+        List<CrkKcswXzDataVO> dfcbList = kcswDefaultMapper.getXzList(xz,orgId,cityId);
122
         for(CrkKcswXzDataVO xzDataVO:dfcbList){
126
         for(CrkKcswXzDataVO xzDataVO:dfcbList){
123
             String orgId_ = xzDataVO.getOrgId();
127
             String orgId_ = xzDataVO.getOrgId();
124
             CrkKcswDataVO crkKcswDataVO = new CrkKcswDataVO();
128
             CrkKcswDataVO crkKcswDataVO = new CrkKcswDataVO();
@@ -156,7 +160,7 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
156
             if (!isFilter ||(isFilter  && StringUtils.equals(sj,crkKcswParam.getLsxz()))) {
160
             if (!isFilter ||(isFilter  && StringUtils.equals(sj,crkKcswParam.getLsxz()))) {
157
                 //省级储备
161
                 //省级储备
158
                 //原粮:小麦,青稞,稻谷
162
                 //原粮:小麦,青稞,稻谷
159
-                List<CrkKcswXzDataVO> sjcbList = kcswDefaultMapper.getXzList(sj, orgId_);
163
+                List<CrkKcswXzDataVO> sjcbList = kcswDefaultMapper.getXzList(sj, orgId_,cityId);
160
                 if (sjcbList.size() > 0) {
164
                 if (sjcbList.size() > 0) {
161
                     CrkKcswXzDataVO sjcb = sjcbList.get(0);
165
                     CrkKcswXzDataVO sjcb = sjcbList.get(0);
162
                     //得到省级小麦,大米
166
                     //得到省级小麦,大米
@@ -193,7 +197,7 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
193
             //市级储备
197
             //市级储备
194
             if (!isFilter ||(isFilter  && StringUtils.equals(cj,crkKcswParam.getLsxz()))) {
198
             if (!isFilter ||(isFilter  && StringUtils.equals(cj,crkKcswParam.getLsxz()))) {
195
                 //原粮:小麦,青稞,稻谷
199
                 //原粮:小麦,青稞,稻谷
196
-                List<CrkKcswXzDataVO> cjcbList = kcswDefaultMapper.getXzList(cj, orgId_);
200
+                List<CrkKcswXzDataVO> cjcbList = kcswDefaultMapper.getXzList(cj, orgId_,cityId);
197
                 if (cjcbList.size() > 0) {
201
                 if (cjcbList.size() > 0) {
198
                     CrkKcswXzDataVO cjcb = cjcbList.get(0);
202
                     CrkKcswXzDataVO cjcb = cjcbList.get(0);
199
                     //得到市级小麦,大米
203
                     //得到市级小麦,大米
@@ -229,7 +233,7 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
229
             //县级储备
233
             //县级储备
230
             if (!isFilter ||(isFilter  && StringUtils.equals(xj,crkKcswParam.getLsxz()))) {
234
             if (!isFilter ||(isFilter  && StringUtils.equals(xj,crkKcswParam.getLsxz()))) {
231
                 //原粮:小麦,青稞,稻谷
235
                 //原粮:小麦,青稞,稻谷
232
-                List<CrkKcswXzDataVO> xjcbList = kcswDefaultMapper.getXzList(xj, orgId_);
236
+                List<CrkKcswXzDataVO> xjcbList = kcswDefaultMapper.getXzList(xj, orgId_,cityId);
233
                 if (xjcbList.size() > 0) {
237
                 if (xjcbList.size() > 0) {
234
                     CrkKcswXzDataVO xjcb = xjcbList.get(0);
238
                     CrkKcswXzDataVO xjcb = xjcbList.get(0);
235
                     //得到县级小麦,大米
239
                     //得到县级小麦,大米