浏览代码

農家インターフェース修正

zdsong 2 周之前
父节点
当前提交
14a1d207a5

+ 5 - 0
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/domain/bo/MastFarmerBo.java

@@ -62,6 +62,11 @@ public class MastFarmerBo implements Serializable {
     private String mailAddress;
 
     /**
+     * 郵便番号
+     */
+    private String postalCode;
+
+    /**
      * 都道府県
      */
     @LmLength(min = 1, max = 20, params = {"{prefecture}", "20"}, groups = {ValidatorGroup.AddGroup.class, ValidatorGroup.UpdateGroup.class})

+ 4 - 0
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/domain/entity/MastFarmer.java

@@ -47,6 +47,10 @@ public class MastFarmer extends BaseEntity {
      * メールアドレス
      */
     private String mailAddress;
+    /**
+     * 郵便番号
+     */
+    private String postalCode;
 
     /**
      * 都道府県

+ 5 - 0
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/domain/vo/MastFarmerVo.java

@@ -42,6 +42,11 @@ public class MastFarmerVo extends BaseEntity {
     private String mailAddress;
 
     /**
+     * 郵便番号
+     */
+    private String postalCode;
+
+    /**
      * 都道府県
      */
     private String prefecture;

+ 14 - 0
farm-crm-biz/src/main/resources/mapper/crm/MastFarmerMapper.xml

@@ -11,6 +11,7 @@
         <result property="farmerNameKn" column="farmer_name_kn"/>
         <result property="phoneNumber" column="phone_number"/>
         <result property="mailAddress" column="mail_address"/>
+        <result property="postalCode" column="postal_code"/>
         <result property="prefecture" column="prefecture"/>
         <result property="city" column="city"/>
         <result property="townStreetArea" column="town_street_area"/>
@@ -44,6 +45,7 @@
         farmer_name_kn,
         phone_number,
         mail_address,
+        postal_code,
         prefecture,
         city,
         town_street_area,
@@ -135,6 +137,9 @@
             <if test="discontinuedDate != null  and discontinuedDate != ''">
                 and discontinued_date = #{discontinuedDate}
             </if>
+            <if test="postalCode != null  and postalCode != ''">
+                and postal_code = #{postalCode}
+            </if>
 
         </where>
         order by farmer_id asc
@@ -167,6 +172,9 @@
             <if test="mailAddress != null">
                 mail_address,
             </if>
+            <if test="postalCode != null">
+                postal_code,
+            </if>
             <if test="prefecture != null">
                 prefecture,
             </if>
@@ -254,6 +262,9 @@
             <if test="mailAddress != null">
                 #{mailAddress},
             </if>
+            <if test="postalCode != null">
+                #{postalCode},
+            </if>
             <if test="prefecture != null">
                 #{prefecture},
             </if>
@@ -339,6 +350,9 @@
             <if test="mailAddress != null">
                 mail_address = #{mailAddress},
             </if>
+            <if test="postalCode != null">
+                postal_code = #{postalCode},
+            </if>
             <if test="prefecture != null">
                 prefecture = #{prefecture},
             </if>