Selaa lähdekoodia

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

ZeroLiYi 1 vuosi sitten
vanhempi
commit
658bd300e0

+ 4 - 0
src/main/java/com/chinaitop/depot/grainReserves/common/PageParam.java

@@ -23,4 +23,8 @@ public class PageParam {
23 23
     @NotNull(message = "页码非空")
24 24
     @Min(value = 1, message = "每页条数>=1")
25 25
     private Integer pageSize;
26
+
27
+    @ApiModelProperty(value = "库区编码")
28
+    @NotNull(message = "库区编码非空")
29
+    private Integer orgId;
26 30
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/grainReserves/mapper/BizGopsPlanMapper.java

@@ -14,7 +14,7 @@ import java.util.List;
14 14
  */
15 15
 @Repository
16 16
 public interface BizGopsPlanMapper {
17
-    List<BizGopsPlan> getPageList(@Param("orgName") String orgName);
17
+    List<BizGopsPlan> getPageList(@Param("planName") String planName, @Param("orgId") Integer orgId);
18 18
 
19 19
     List<GopsPlanObject> getPlanSaleList(@Param("id") String id);
20 20
 

+ 3 - 2
src/main/java/com/chinaitop/depot/grainReserves/mapper/BizGopsPlanMapper.xml

@@ -19,8 +19,9 @@
19 19
         LEFT JOIN org_info oi ON bfp.org_id = oi.org_id
20 20
         <where>
21 21
             bfp.`status` = 1
22
-            <if test="orgName != null and orgName != ''">
23
-                oi.org_name LIKE CONCAT("%", orgName, "%")
22
+            and bfp.org_id = #{orgId}
23
+            <if test="planName != null and planName != ''">
24
+               and bfp.plan_name LIKE CONCAT("%", #{planName}, "%")
24 25
             </if>
25 26
         </where>
26 27
     </select>

+ 1 - 1
src/main/java/com/chinaitop/depot/grainReserves/model/BizGopsPlan.java

@@ -42,7 +42,7 @@ public class BizGopsPlan {
42 42
     private Integer planType;
43 43
 
44 44
     @ApiModelProperty(value = "计划下达时间")
45
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
45
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
46 46
     private Date planReleaseTime;
47 47
 
48 48
     @ApiModelProperty(value = "状态 0:保存;1:下发;")

+ 2 - 2
src/main/java/com/chinaitop/depot/grainReserves/model/BizGopsPlanPage.java

@@ -17,7 +17,7 @@ import java.io.Serializable;
17 17
 public class BizGopsPlanPage extends PageParam implements Serializable {
18 18
     private static final long serialVersionUID = 4988791677403961372L;
19 19
 
20
-    @ApiModelProperty(value = "库区名称")
21
-    private String orgName;
20
+    @ApiModelProperty(value = "计划名称")
21
+    private String planName;
22 22
 
23 23
 }

+ 4 - 4
src/main/java/com/chinaitop/depot/grainReserves/model/GopsPlanObject.java

@@ -50,28 +50,28 @@ public class GopsPlanObject {
50 50
     private Integer warehouseId;
51 51
 
52 52
     @ApiModelProperty(value = "货位名称", position = 6)
53
-    private Integer warehouseName;
53
+    private String warehouseName;
54 54
 
55 55
     /** 粮食品种;外库depot_qh.basic_enum的id; */
56 56
     @ApiModelProperty(value = "粮食品种id", position = 7)
57 57
     private Integer grainVarietyId;
58 58
 
59 59
     @ApiModelProperty(value = "粮食品种名称", position = 8)
60
-    private Integer grainVarietyName;
60
+    private String grainVarietyName;
61 61
 
62 62
     /** 粮食性质;外库depot_qh.basic_enum的id; */
63 63
     @ApiModelProperty(value = "粮食性质id", position = 9)
64 64
     private Integer grainNatureId;
65 65
 
66 66
     @ApiModelProperty(value = "粮食性质名称", position = 10)
67
-    private Integer grainNatureName;
67
+    private String grainNatureName;
68 68
 
69 69
     /** 粮食等级;外库depot_qh.basic_enum的id; */
70 70
     @ApiModelProperty(value = "粮食等级id", position = 11)
71 71
     private Integer grainGradeId;
72 72
 
73 73
     @ApiModelProperty(value = "粮食等级名称", position = 12)
74
-    private Integer grainGradeName;
74
+    private String grainGradeName;
75 75
 
76 76
     /** 计划数量 */
77 77
     @ApiModelProperty(value = "计划数量", position = 13)

+ 1 - 1
src/main/java/com/chinaitop/depot/grainReserves/service/BizGopsPlanService.java

@@ -31,7 +31,7 @@ public interface BizGopsPlanService {
31 31
         @Override
32 32
         public PageInfo<BizGopsPlan> getPageList(BizGopsPlanPage pageParam) {
33 33
             PageHelper.startPage(pageParam.getPageNum(), pageParam.getPageSize());
34
-            List<BizGopsPlan> list = gopsPlanMapper.getPageList(pageParam.getOrgName());
34
+            List<BizGopsPlan> list = gopsPlanMapper.getPageList(pageParam.getPlanName(), pageParam.getOrgId());
35 35
             return new PageInfo<>(list);
36 36
         }
37 37
 

+ 1 - 0
src/main/java/com/chinaitop/depot/pg/mapper/BusinessPgGopsPlanDetailMapper.xml

@@ -13,6 +13,7 @@
13 13
     <result column="weight" property="weight" jdbcType="DECIMAL" />
14 14
     <result column="unit_price" property="unitPrice" jdbcType="DECIMAL" />
15 15
     <result column="amount" property="amount" jdbcType="DECIMAL" />
16
+    <result column="completion_quantity" property="completionQuantity" jdbcType="DECIMAL" />
16 17
   </resultMap>
17 18
   <sql id="Example_Where_Clause" >
18 19
     <where >

+ 2 - 2
src/main/java/com/chinaitop/depot/pg/mapper/BusinessPgGopsPlanMapper.xml

@@ -16,8 +16,8 @@
16 16
     <result column="total_amount" property="totalAmount" jdbcType="DECIMAL" />
17 17
     <result column="completion_amount" property="completionAmount" jdbcType="DECIMAL" />
18 18
     <result column="remaining_amount" property="remainingAmount" jdbcType="DECIMAL" />
19
-    <result column="plan_quantity" property="planQuantity" jdbcType="INTEGER" />
20
-    <result column="completion_quantity" property="completionQuantity" jdbcType="INTEGER" />
19
+    <result column="plan_quantity" property="planQuantity" jdbcType="DECIMAL" />
20
+    <result column="completion_quantity" property="completionQuantity" jdbcType="DECIMAL" />
21 21
   </resultMap>
22 22
   <sql id="Example_Where_Clause" >
23 23
     <where >

+ 2 - 2
src/main/java/com/chinaitop/depot/pg/model/BusinessPgGopsPlan.java

@@ -86,11 +86,11 @@ public class BusinessPgGopsPlan {
86 86
 
87 87
     /** 计划数量 */
88 88
     @ApiModelProperty(value = "计划数量", position = 15)
89
-    private Integer planQuantity;
89
+    private BigDecimal planQuantity;
90 90
 
91 91
     /** 完成数量 */
92 92
     @ApiModelProperty(value = "完成数量", position = 16)
93
-    private Integer completionQuantity;
93
+    private BigDecimal completionQuantity;
94 94
 
95 95
     @ApiModelProperty(value = "成品粮明细数据", position = 17)
96 96
     List<BusinessPgGopsPlanDetail> detailList;

+ 4 - 0
src/main/java/com/chinaitop/depot/pg/model/BusinessPgGopsPlanDetail.java

@@ -63,4 +63,8 @@ public class BusinessPgGopsPlanDetail {
63 63
     /** 金额,单位:万元 */
64 64
     @ApiModelProperty(value = "金额,单位:万元", position = 11)
65 65
     private BigDecimal amount;
66
+
67
+    /** 完成数量 */
68
+    @ApiModelProperty(value = "完成数量", position = 16)
69
+    private BigDecimal completionQuantity;
66 70
 }

+ 3 - 0
src/main/java/com/chinaitop/depot/rp/mapper/BusinessRpBiweeklyReportMapper.xml

@@ -272,6 +272,9 @@
272 272
         LEFT JOIN depot_qh.business_rp_biweekly_report_grain f on f.rp_biweekly_report_id = a.id
273 273
         LEFT JOIN depot_qh.basic_enum g on g.enumId = f.grain_variety_id
274 274
         where 1=1
275
+        <if test="pageParam.orgId !=null and pageParam.orgId!=''">
276
+            and a.org_id = #{pageParam.orgId}
277
+        </if>
275 278
         <if test="pageParam.unitName !=null and pageParam.unitName!=''">
276 279
             and b.dwmc like concat("%",#{pageParam.unitName},"%")
277 280
         </if>

+ 4 - 0
src/main/java/com/chinaitop/depot/rp/param/BusinessRpBiweeklyReportPageParam.java

@@ -42,6 +42,10 @@ public class BusinessRpBiweeklyReportPageParam {
42 42
     @ApiModelProperty(value = "排序方式,升序:ASCEND;降序:DESCEND")
43 43
     private String sortOrder;
44 44
 
45
+    /** 库区id */
46
+    @ApiModelProperty(value = "库区id")
47
+    private String orgId;
48
+
45 49
     /** 企业名称 */
46 50
     @ApiModelProperty(value = "企业名称")
47 51
     private String unitName;