fanxw před 1 rokem
rodič
revize
9b0f96721c

+ 4 - 4
pom.xml

@@ -88,10 +88,10 @@
88
             <version>3.9</version>
88
             <version>3.9</version>
89
         </dependency>
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
         <!-- springCloud dependency -->
95
         <!-- springCloud dependency -->
96
         <dependency>
96
         <dependency>
97
             <groupId>org.springframework.cloud</groupId>
97
             <groupId>org.springframework.cloud</groupId>

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

@@ -44,6 +44,13 @@
44
     <result column="sfgd" property="sfgd" jdbcType="VARCHAR" />
44
     <result column="sfgd" property="sfgd" jdbcType="VARCHAR" />
45
     <result column="gdsj" property="gdsj" jdbcType="TIMESTAMP" />
45
     <result column="gdsj" property="gdsj" jdbcType="TIMESTAMP" />
46
     <result column="zhycsj" property="zhycsj" jdbcType="TIMESTAMP" />
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
   </resultMap>
54
   </resultMap>
48
   <sql id="Example_Where_Clause" >
55
   <sql id="Example_Where_Clause" >
49
     <where >
56
     <where >
@@ -109,7 +116,7 @@
109
     in_width, grain_line_heigth, bin_volume, storeman_code, storeman_name, lypz_code,
116
     in_width, grain_line_heigth, bin_volume, storeman_code, storeman_name, lypz_code,
110
     lypz_name, lydj_code, lydj_name, rksj, scrq, lycd_code, lycd_name, lysl, js, bzgg,
117
     lypz_name, lydj_code, lydj_name, rksj, scrq, lycd_code, lycd_name, lysl, js, bzgg,
111
     pinp, ccfs_code, ccfs_name, jkrq, org_id, image_url, spare_one, spare_two, spare_three,
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
   </sql>
120
   </sql>
114
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" >
121
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" >
115
     select
122
     select
@@ -154,8 +161,8 @@
154
       bzgg, pinp, ccfs_code,
161
       bzgg, pinp, ccfs_code,
155
       ccfs_name, jkrq, org_id,
162
       ccfs_name, jkrq, org_id,
156
       image_url, spare_one, spare_two,
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
     values (#{id,jdbcType=VARCHAR}, #{storehouseCode,jdbcType=VARCHAR}, #{storehouseName,jdbcType=VARCHAR},
166
     values (#{id,jdbcType=VARCHAR}, #{storehouseCode,jdbcType=VARCHAR}, #{storehouseName,jdbcType=VARCHAR},
160
       #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{storehouseType,jdbcType=VARCHAR},
167
       #{warehouseCode,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR}, #{storehouseType,jdbcType=VARCHAR},
161
       #{storehouseTypeName,jdbcType=VARCHAR}, #{buildDate,jdbcType=TIMESTAMP}, #{wallCode,jdbcType=VARCHAR},
168
       #{storehouseTypeName,jdbcType=VARCHAR}, #{buildDate,jdbcType=TIMESTAMP}, #{wallCode,jdbcType=VARCHAR},
@@ -169,7 +176,9 @@
169
       #{ccfsName,jdbcType=VARCHAR}, #{jkrq,jdbcType=TIMESTAMP}, #{orgId,jdbcType=VARCHAR},
176
       #{ccfsName,jdbcType=VARCHAR}, #{jkrq,jdbcType=TIMESTAMP}, #{orgId,jdbcType=VARCHAR},
170
       #{imageUrl,jdbcType=VARCHAR}, #{spareOne,jdbcType=VARCHAR}, #{spareTwo,jdbcType=VARCHAR},
177
       #{imageUrl,jdbcType=VARCHAR}, #{spareOne,jdbcType=VARCHAR}, #{spareTwo,jdbcType=VARCHAR},
171
       #{spareThree,jdbcType=VARCHAR}, #{spareFour,jdbcType=VARCHAR}, #{spareFive,jdbcType=VARCHAR},
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
   </insert>
183
   </insert>
175
   <insert id="insertSelective" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCard" >
184
   <insert id="insertSelective" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCard" >
@@ -301,6 +310,27 @@
301
       <if test="zhycsj != null">
310
       <if test="zhycsj != null">
302
         zhycsj,
311
         zhycsj,
303
       </if>
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
     </trim>
334
     </trim>
305
     <trim prefix="values (" suffix=")" suffixOverrides="," >
335
     <trim prefix="values (" suffix=")" suffixOverrides="," >
306
       <if test="id != null" >
336
       <if test="id != null" >
@@ -429,6 +459,27 @@
429
       <if test="zhycsj != null">
459
       <if test="zhycsj != null">
430
         #{zhycsj,jdbcType=TIMESTAMP},
460
         #{zhycsj,jdbcType=TIMESTAMP},
431
       </if>
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
     </trim>
483
     </trim>
433
   </insert>
484
   </insert>
434
   <select id="countByExample" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" resultType="java.lang.Integer" >
485
   <select id="countByExample" parameterType="com.chinaitop.depot.grainSituationCard.model.StorageCerealsCardExample" resultType="java.lang.Integer" >
@@ -566,6 +617,27 @@
566
       <if test="record.zhycsj != null">
617
       <if test="record.zhycsj != null">
567
         zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP},
618
         zhycsj = #{record.zhycsj,jdbcType=TIMESTAMP},
568
       </if>
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
     </set>
641
     </set>
570
     <if test="_parameter != null" >
642
     <if test="_parameter != null" >
571
       <include refid="Update_By_Example_Where_Clause" />
643
       <include refid="Update_By_Example_Where_Clause" />
@@ -614,7 +686,14 @@
614
       spare_five = #{record.spareFive,jdbcType=VARCHAR},
686
       spare_five = #{record.spareFive,jdbcType=VARCHAR},
615
       sfgd = #{record.sfgd,jdbcType=VARCHAR},
687
       sfgd = #{record.sfgd,jdbcType=VARCHAR},
616
       gdsj = #{record.gdsj,jdbcType=TIMESTAMP},
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
     <if test="_parameter != null" >
697
     <if test="_parameter != null" >
619
       <include refid="Update_By_Example_Where_Clause" />
698
       <include refid="Update_By_Example_Where_Clause" />
620
     </if>
699
     </if>
@@ -745,6 +824,27 @@
745
       <if test="zhycsj != null">
824
       <if test="zhycsj != null">
746
         zhycsj = #{zhycsj,jdbcType=TIMESTAMP},
825
         zhycsj = #{zhycsj,jdbcType=TIMESTAMP},
747
       </if>
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
     </set>
848
     </set>
749
     where id = #{id,jdbcType=VARCHAR}
849
     where id = #{id,jdbcType=VARCHAR}
750
   </update>
850
   </update>
@@ -790,7 +890,14 @@
790
       spare_five = #{spareFive,jdbcType=VARCHAR},
890
       spare_five = #{spareFive,jdbcType=VARCHAR},
791
       sfgd = #{sfgd,jdbcType=VARCHAR},
891
       sfgd = #{sfgd,jdbcType=VARCHAR},
792
       gdsj = #{gdsj,jdbcType=TIMESTAMP},
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
     where id = #{id,jdbcType=VARCHAR}
901
     where id = #{id,jdbcType=VARCHAR}
795
   </update>
902
   </update>
796
 
903
 
@@ -843,13 +950,9 @@
843
                 scc.spare_four,
950
                 scc.spare_four,
844
                 scc.spare_five,
951
                 scc.spare_five,
845
                 scc.zhycsj
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
             where
956
             where
854
                 scc.id = #{id,jdbcType=VARCHAR}
957
                 scc.id = #{id,jdbcType=VARCHAR}
855
         ) t
958
         ) t

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

@@ -93,6 +93,21 @@ public class StorageCerealsCard {
93
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
93
     @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
94
     private Date zhycsj;
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
      * @return id 成品粮粮情卡主键
113
      * @return id 成品粮粮情卡主键
@@ -764,4 +779,117 @@ public class StorageCerealsCard {
764
 	public void setZhycsj(Date zhycsj) {
779
 	public void setZhycsj(Date zhycsj) {
765
 		this.zhycsj = zhycsj;
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
 }