Procházet zdrojové kódy

成品粮购销管理-添加计划名称

tangsong před 1 rokem
rodič
revize
0673998606

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

@@ -147,6 +147,9 @@
147 147
       <if test="planCode != null" >
148 148
         plan_code,
149 149
       </if>
150
+      <if test="planName != null" >
151
+        plan_name,
152
+      </if>
150 153
       <if test="planType != null" >
151 154
         plan_type,
152 155
       </if>
@@ -197,6 +200,9 @@
197 200
       <if test="planCode != null" >
198 201
         #{planCode,jdbcType=VARCHAR},
199 202
       </if>
203
+      <if test="planName != null" >
204
+        #{planName,jdbcType=VARCHAR},
205
+      </if>
200 206
       <if test="planType != null" >
201 207
         #{planType,jdbcType=TINYINT},
202 208
       </if>
@@ -387,6 +393,7 @@
387 393
     SELECT
388 394
     a.id as "id",
389 395
     a.plan_code as "planCode",
396
+    a.plan_name as "planName",
390 397
     a.plan_type as "planType",
391 398
     DATE_FORMAT(a.plan_start_time,'%Y') as "planYear",
392 399
     a.plan_quantity as "planQuantity",
@@ -416,6 +423,7 @@
416 423
 	a.updatedate,
417 424
 	a.org_id as orgId,
418 425
 	a.plan_code as planCode,
426
+	a.plan_name as planName,
419 427
 	a.plan_type as planType,
420 428
 	a.plan_start_time as planStartTime,
421 429
 	a.plan_end_time as planEndTime,

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

@@ -45,6 +45,11 @@ public class BusinessPgGopsPlan {
45 45
     @ApiModelProperty(value = "计划编号", position = 6)
46 46
     private String planCode;
47 47
 
48
+    /** 计划名称 */
49
+    @ApiModelProperty(value = "计划名称", position = 6)
50
+    private String planName;
51
+
52
+
48 53
     /** 计划类型,1:销售计划;2:收购计划; */
49 54
     @ApiModelProperty(value = "计划类型,1:销售计划;2:收购计划;", position = 7)
50 55
     private Integer planType;