fanxw 1 rok temu
rodzic
commit
9b0f96721c

+ 4 - 4
pom.xml

@@ -88,10 +88,10 @@
88 88
             <version>3.9</version>
89 89
         </dependency>
90 90
         <!-- 日志-->
91
-        <dependency>
92
-            <groupId>ch.qos.logback</groupId>
93
-            <artifactId>logback-classic</artifactId>
94
-        </dependency>
91
+<!--         <dependency> -->
92
+<!--             <groupId>ch.qos.logback</groupId> -->
93
+<!--             <artifactId>logback-classic</artifactId> -->
94
+<!--         </dependency> -->
95 95
         <!-- springCloud dependency -->
96 96
         <dependency>
97 97
             <groupId>org.springframework.cloud</groupId>

+ 116 - 13
src/main/java/com/chinaitop/depot/grainSituationCard/mapper/StorageCerealsCardMapper.xml

@@ -44,6 +44,13 @@
44 44
     <result column="sfgd" property="sfgd" jdbcType="VARCHAR" />
45 45
     <result column="gdsj" property="gdsj" jdbcType="TIMESTAMP" />
46 46
     <result column="zhycsj" property="zhycsj" jdbcType="TIMESTAMP" />
47
+    <result column="jkr" property="jkr" jdbcType="VARCHAR" />
48
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
49
+    <result column="lqss" property="lqss" jdbcType="VARCHAR" />
50
+    <result column="ywlx" property="ywlx" jdbcType="VARCHAR" />
51
+    <result column="cj" property="cj" jdbcType="VARCHAR" />
52
+    <result column="remark" property="remark" jdbcType="VARCHAR" />
53
+    <result column="data_status" property="dataStatus" jdbcType="VARCHAR" />
47 54
   </resultMap>
48 55
   <sql id="Example_Where_Clause" >
49 56
     <where >
@@ -109,7 +116,7 @@
109 116
     in_width, grain_line_heigth, bin_volume, storeman_code, storeman_name, lypz_code,
110 117
     lypz_name, lydj_code, lydj_name, rksj, scrq, lycd_code, lycd_name, lysl, js, bzgg,
111 118
     pinp, ccfs_code, ccfs_name, jkrq, org_id, image_url, spare_one, spare_two, spare_three,
112
-    spare_four, spare_five, sfgd, gdsj, zhycsj
119
+    spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark, data_status
113 120
   </sql>
114 121
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" >
115 122
     select
@@ -154,8 +161,8 @@
154 161
       bzgg, pinp, ccfs_code,
155 162
       ccfs_name, jkrq, org_id,
156 163
       image_url, spare_one, spare_two,
157
-      spare_three, spare_four, spare_five, sfgd, gdsj, zhycsj
158
-      )
164
+      spare_three, spare_four, spare_five, sfgd, gdsj, zhycsj, jkr, updatetime, lqss, ywlx, cj, remark,
165
+      data_status)
159 166
     values (#{id,jdbcType=VARCHAR}, #{storehouseCode,jdbcType=VARCHAR}, #{storehouseName,jdbcType=VARCHAR},
160 167
       #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{storehouseType,jdbcType=VARCHAR},
161 168
       #{storehouseTypeName,jdbcType=VARCHAR}, #{buildDate,jdbcType=TIMESTAMP}, #{wallCode,jdbcType=VARCHAR},
@@ -169,7 +176,9 @@
169 176
       #{ccfsName,jdbcType=VARCHAR}, #{jkrq,jdbcType=TIMESTAMP}, #{orgId,jdbcType=VARCHAR},
170 177
       #{imageUrl,jdbcType=VARCHAR}, #{spareOne,jdbcType=VARCHAR}, #{spareTwo,jdbcType=VARCHAR},
171 178
       #{spareThree,jdbcType=VARCHAR}, #{spareFour,jdbcType=VARCHAR}, #{spareFive,jdbcType=VARCHAR},
172
-      #{sfgd,jdbcType=VARCHAR}, #{gdsj,jdbcType=TIMESTAMP}, #{zhycsj,jdbcType=TIMESTAMP}
179
+      #{sfgd,jdbcType=VARCHAR}, #{gdsj,jdbcType=TIMESTAMP}, #{zhycsj,jdbcType=TIMESTAMP}, #{jkr,jdbcType=VARCHAR}, 
180
+      #{updatetime,jdbcType=TIMESTAMP}, #{lqss,jdbcType=VARCHAR}, #{ywlx,jdbcType=VARCHAR}, #{cj,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
181
+      #{dataStatus,jdbcType=VARCHAR}
173 182
       )
174 183
   </insert>
175 184
   <insert id="insertSelective" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCard" >
@@ -301,6 +310,27 @@
301 310
       <if test="zhycsj != null">
302 311
         zhycsj,
303 312
       </if>
313
+      <if test="jkr != null">
314
+        jkr,
315
+      </if>
316
+      <if test="updatetime != null">
317
+        updatetime,
318
+      </if>
319
+      <if test="lqss != null">
320
+        lqss,
321
+      </if>
322
+      <if test="ywlx != null">
323
+        ywlx,
324
+      </if>
325
+      <if test="cj != null">
326
+        cj,
327
+      </if>
328
+      <if test="remark != null">
329
+        remark,
330
+      </if>
331
+      <if test="dataStatus != null">
332
+        data_status,
333
+      </if>
304 334
     </trim>
305 335
     <trim prefix="values (" suffix=")" suffixOverrides="," >
306 336
       <if test="id != null" >
@@ -429,6 +459,27 @@
429 459
       <if test="zhycsj != null">
430 460
         #{zhycsj,jdbcType=TIMESTAMP},
431 461
       </if>
462
+      <if test="jkr != null">
463
+        #{jkr,jdbcType=VARCHAR},
464
+      </if>
465
+      <if test="updatetime != null">
466
+        #{updatetime,jdbcType=TIMESTAMP},
467
+      </if>
468
+      <if test="lqss != null">
469
+        #{lqss,jdbcType=VARCHAR},
470
+      </if>
471
+      <if test="ywlx != null">
472
+        #{ywlx,jdbcType=VARCHAR},
473
+      </if>
474
+      <if test="cj != null">
475
+        #{cj,jdbcType=VARCHAR},
476
+      </if>
477
+      <if test="remark != null">
478
+        #{remark,jdbcType=VARCHAR},
479
+      </if>
480
+      <if test="dataStatus != null">
481
+        #{dataStatus,jdbcType=VARCHAR},
482
+      </if>
432 483
     </trim>
433 484
   </insert>
434 485
   <select id="countByExample" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" resultType="java.lang.Integer" >
@@ -566,6 +617,27 @@
566 617
       <if test="record.zhycsj != null">
567 618
         zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP},
568 619
       </if>
620
+      <if test="record.jkr != null">
621
+        jkr = #{record.jkr,jdbcType=VARCHAR},
622
+      </if>
623
+      <if test="record.updatetime != null">
624
+        updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
625
+      </if>
626
+      <if test="record.lqss != null">
627
+        lqss = #{record.lqss,jdbcType=VARCHAR},
628
+      </if>
629
+      <if test="record.ywlx != null">
630
+        ywlx = #{record.ywlx,jdbcType=VARCHAR},
631
+      </if>
632
+      <if test="record.cj != null">
633
+        cj = #{record.cj,jdbcType=VARCHAR},
634
+      </if>
635
+      <if test="record.remark != null">
636
+        remark = #{record.remark,jdbcType=VARCHAR},
637
+      </if>
638
+      <if test="record.dataStatus != null">
639
+        data_status = #{record.dataStatus,jdbcType=VARCHAR},
640
+      </if>
569 641
     </set>
570 642
     <if test="_parameter != null" >
571 643
       <include refid="Update_By_Example_Where_Clause" />
@@ -614,7 +686,14 @@
614 686
       spare_five = #{record.spareFive,jdbcType=VARCHAR},
615 687
       sfgd = #{record.sfgd,jdbcType=VARCHAR},
616 688
       gdsj = #{record.gdsj,jdbcType=TIMESTAMP},
617
-      zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP}
689
+      zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP},
690
+      jkr = #{record.jkr,jdbcType=VARCHAR},
691
+      updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
692
+      lqss = #{record.lqss,jdbcType=VARCHAR},
693
+      ywlx = #{record.ywlx,jdbcType=VARCHAR},
694
+      cj = #{record.cj,jdbcType=VARCHAR},
695
+      remark = #{record.remark,jdbcType=VARCHAR},
696
+      data_status = #{record.dataStatus,jdbcType=VARCHAR}
618 697
     <if test="_parameter != null" >
619 698
       <include refid="Update_By_Example_Where_Clause" />
620 699
     </if>
@@ -745,6 +824,27 @@
745 824
       <if test="zhycsj != null">
746 825
         zhycsj = #{zhycsj,jdbcType=TIMESTAMP},
747 826
       </if>
827
+      <if test="jkr != null">
828
+        jkr = #{jkr,jdbcType=VARCHAR},
829
+      </if>
830
+      <if test="updatetime != null">
831
+        updatetime = #{updatetime,jdbcType=TIMESTAMP},
832
+      </if>
833
+      <if test="lqss != null">
834
+        lqss = #{lqss,jdbcType=VARCHAR},
835
+      </if>
836
+      <if test="ywlx != null">
837
+        ywlx = #{ywlx,jdbcType=VARCHAR},
838
+      </if>
839
+      <if test="cj != null">
840
+        cj = #{cj,jdbcType=VARCHAR},
841
+      </if>
842
+      <if test="remark != null">
843
+        remark = #{remark,jdbcType=VARCHAR},
844
+      </if>
845
+      <if test="dataStatus != null">
846
+        data_status = #{dataStatus,jdbcType=VARCHAR},
847
+      </if>
748 848
     </set>
749 849
     where id = #{id,jdbcType=VARCHAR}
750 850
   </update>
@@ -790,7 +890,14 @@
790 890
       spare_five = #{spareFive,jdbcType=VARCHAR},
791 891
       sfgd = #{sfgd,jdbcType=VARCHAR},
792 892
       gdsj = #{gdsj,jdbcType=TIMESTAMP},
793
-      zhycsj = #{zhycsj,jdbcType=TIMESTAMP}
893
+      zhycsj = #{zhycsj,jdbcType=TIMESTAMP},
894
+      jkr = #{jkr,jdbcType=VARCHAR},
895
+      updatetime = #{updatetime,jdbcType=TIMESTAMP},
896
+      lqss = #{lqss,jdbcType=VARCHAR},
897
+      ywlx = #{ywlx,jdbcType=VARCHAR},
898
+      cj = #{cj,jdbcType=VARCHAR},
899
+      remark = #{remark,jdbcType=VARCHAR},
900
+      data_status = #{dataStatus,jdbcType=VARCHAR}
794 901
     where id = #{id,jdbcType=VARCHAR}
795 902
   </update>
796 903
 
@@ -843,13 +950,9 @@
843 950
                 scc.spare_four,
844 951
                 scc.spare_five,
845 952
                 scc.zhycsj
846
-            from
847
-                basic_keeper bk right join basic_keeper_house bkh on
848
-                bkh.keeper_id = bk.id
849
-                and bk.org_id = bkh.org_id right join storage_cereals_card scc on
850
-                scc.org_id = bk.org_id
851
-                and scc.org_id = bkh.org_id
852
-                and scc.spare_one = bkh.house_id
953
+            from basic_keeper bk 
954
+            right join basic_keeper_house bkh on bkh.keeper_id = bk.id and bk.org_id = bkh.org_id 
955
+            right join storage_cereals_card scc on scc.org_id = bk.org_id and scc.org_id = bkh.org_id and scc.spare_one = bkh.house_id
853 956
             where
854 957
                 scc.id = #{id,jdbcType=VARCHAR}
855 958
         ) t

+ 128 - 0
src/main/java/com/chinaitop/depot/grainSituationCard/model/StorageCerealsCard.java

@@ -93,6 +93,21 @@ public class StorageCerealsCard {
93 93
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
94 94
     private Date zhycsj;
95 95
 
96
+    private String jkr;
97
+
98
+    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
99
+    private Date updatetime;
100
+
101
+    private String lqss;
102
+
103
+    private String ywlx;
104
+
105
+    private String cj;
106
+
107
+    private String remark;
108
+
109
+    private String dataStatus;
110
+
96 111
     /**
97 112
      * 成品粮粮情卡主键
98 113
      * @return id 成品粮粮情卡主键
@@ -764,4 +779,117 @@ public class StorageCerealsCard {
764 779
 	public void setZhycsj(Date zhycsj) {
765 780
 		this.zhycsj = zhycsj;
766 781
 	}
782
+
783
+	/**
784
+	 * 建卡人
785
+	 * @return
786
+	 */
787
+	public String getJkr() {
788
+		return jkr;
789
+	}
790
+
791
+	/**
792
+	 * 建卡人
793
+	 * @param jkr
794
+	 */
795
+	public void setJkr(String jkr) {
796
+		this.jkr = jkr;
797
+	}
798
+
799
+	/**
800
+	 * 最后修改时间
801
+	 * @return
802
+	 */
803
+	public Date getUpdatetime() {
804
+		return updatetime;
805
+	}
806
+
807
+	/**
808
+	 * 最后修改时间
809
+	 * @param updatetime
810
+	 */
811
+	public void setUpdatetime(Date updatetime) {
812
+		this.updatetime = updatetime;
813
+	}
814
+
815
+	/**
816
+	 * 粮权所属
817
+	 * @return
818
+	 */
819
+	public String getLqss() {
820
+		return lqss;
821
+	}
822
+
823
+	/**
824
+	 * 粮权所属
825
+	 * @param lqss
826
+	 */
827
+	public void setLqss(String lqss) {
828
+		this.lqss = lqss;
829
+	}
830
+
831
+	/**
832
+	 * 业务类型
833
+	 * @return
834
+	 */
835
+	public String getYwlx() {
836
+		return ywlx;
837
+	}
838
+
839
+	/**
840
+	 * 业务类型
841
+	 * @param ywlx
842
+	 */
843
+	public void setYwlx(String ywlx) {
844
+		this.ywlx = ywlx;
845
+	}
846
+
847
+	/**
848
+	 * 厂家
849
+	 * @return
850
+	 */
851
+	public String getCj() {
852
+		return cj;
853
+	}
854
+
855
+	/**
856
+	 * 厂家
857
+	 * @param cj
858
+	 */
859
+	public void setCj(String cj) {
860
+		this.cj = cj;
861
+	}
862
+
863
+	/**
864
+	 * 备注
865
+	 * @return
866
+	 */
867
+	public String getRemark() {
868
+		return remark;
869
+	}
870
+
871
+	/**
872
+	 * 备注
873
+	 * @param remark
874
+	 */
875
+	public void setRemark(String remark) {
876
+		this.remark = remark;
877
+	}
878
+
879
+	/**
880
+	 * 数据状态(0:保存,1:提交)
881
+	 * @return
882
+	 */
883
+	public String getDataStatus() {
884
+		return dataStatus;
885
+	}
886
+
887
+	/**
888
+	 * 数据状态(0:保存,1:提交)
889
+	 * @param dataStatus
890
+	 */
891
+	public void setDataStatus(String dataStatus) {
892
+		this.dataStatus = dataStatus;
893
+	}
894
+
767 895
 }