Selaa lähdekoodia

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

tangsong 3 kuukautta sitten
vanhempi
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 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 22
         select t1.*, t2.DICT_LABEL dictLabel
23 23
         from biz_unit_info t1
24 24
         left join dev_dict t2 on t1.dwlx = t2.id
@@ -34,7 +34,7 @@
34 34
 
35 35
         order by t1.create_time desc
36 36
 
37
-    </select>-->
37
+    </select>
38 38
 
39 39
     <select id="getDwGjjDate" parameterType="java.lang.String" resultType="java.util.Map">
40 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 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 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 61
      * @param xz
61
-     * @param orgId_
62
+     * @param orgId
62 63
      * @return
63 64
      */
64 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 110
         depot_qh.org_info b
111 111
         LEFT JOIN  depot_qh.data_kcgl_kcsw_default a on a.UnitID=b.org_id
112 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 114
     WHERE
114 115
         IFNULL(a.hwxz,'6877') IN (${xz}) and IFNULL(a.pz,'3164') in (3164,3166,8000)
115 116
         <if test="orgId == null or orgId == ''">
@@ -118,6 +119,9 @@
118 119
         <if test="orgId != null and orgId != ''">
119 120
             and b.org_id = #{orgId}
120 121
         </if>
122
+        <if test="cityId != null and cityId != ''">
123
+            AND f.zcdz_city  = #{cityId}
124
+        </if>
121 125
     GROUP BY
122 126
         b.org_id,a.pz
123 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 29
 public class CrkKcswParam {
30 30
 
31 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 50
     @ApiModelProperty(value = "粮食品种名称")
51 51
     String lspzName;
52 52
 
53
+    @ApiModelProperty(value = "检验结果")
54
+    String jyjg;
55
+
53 56
     @ApiModelProperty(value = "单据号")
54 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 70
         if (StringUtils.isNotBlank(pageParam.getLspzName())){
71 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 76
         if (StringUtils.isNotBlank(pageParam.getCph())){
74 77
             queryWrapper.like("DATA_CRKYW_RMDJ_DEFAULT.cph",pageParam.getCph());
75 78
         }
@@ -112,13 +115,14 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
112 115
         String xj = "6879"; //县级储备
113 116
         Boolean isFilter = false; //是否性质条件过滤
114 117
         String orgId = "";
118
+        String cityId = crkKcswParam.getCityId();
115 119
         Double mzl = 0.7; //折算比例,默认0.7
116 120
         if (StringUtils.isNotBlank(crkKcswParam.getLsxz())){ //表示需要进行过滤
117 121
             xz = crkKcswParam.getLsxz();
118 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 126
         for(CrkKcswXzDataVO xzDataVO:dfcbList){
123 127
             String orgId_ = xzDataVO.getOrgId();
124 128
             CrkKcswDataVO crkKcswDataVO = new CrkKcswDataVO();
@@ -156,7 +160,7 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
156 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 164
                 if (sjcbList.size() > 0) {
161 165
                     CrkKcswXzDataVO sjcb = sjcbList.get(0);
162 166
                     //得到省级小麦,大米
@@ -193,7 +197,7 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
193 197
             //市级储备
194 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 201
                 if (cjcbList.size() > 0) {
198 202
                     CrkKcswXzDataVO cjcb = cjcbList.get(0);
199 203
                     //得到市级小麦,大米
@@ -229,7 +233,7 @@ public class KcswDefaultServiceImpl extends ServiceImpl<KcswDefaultMapper, DataK
229 233
             //县级储备
230 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 237
                 if (xjcbList.size() > 0) {
234 238
                     CrkKcswXzDataVO xjcb = xjcbList.get(0);
235 239
                     //得到县级小麦,大米