ソースを参照

顾客结构调整

zdsong 1 ヶ月 前
コミット
0418ff7cbe

+ 2 - 1
farm-common-biz/src/main/resources/mapper/MastCustomerBaseMapper.xml

@@ -64,7 +64,8 @@
           farmer_id,
           system_source_flg,
           discontinued_flg,
-          discontinued_date
+          discontinued_date,
+          version
         from mast_customer
     </sql>
     <select id="selectList" parameterType="MastCustomerEntity" resultMap="MastCustomerEntityResult">

+ 1 - 57
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/domain/vo/MastCustomerVo.java

@@ -1,6 +1,5 @@
 package jp.yamoto.farm.crm.biz.master.domain.vo;
 
-import jp.yamoto.farm.common.core.domain.BaseEntity;
 import lombok.Data;
 
 /**
@@ -9,7 +8,7 @@ import lombok.Data;
  * @author nextosd
  */
 @Data
-public class MastCustomerVo extends BaseEntity {
+public class MastCustomerVo {
 
     /**
      * ID
@@ -22,16 +21,6 @@ public class MastCustomerVo extends BaseEntity {
     private String customerId;
 
     /**
-     * 氏名(姓)
-     */
-    private String firstName;
-
-    /**
-     * 氏名(名)
-     */
-    private String lastName;
-
-    /**
      * 顧客名
      */
     private String customerName;
@@ -52,51 +41,11 @@ public class MastCustomerVo extends BaseEntity {
     private String memberId;
 
     /**
-     * 氏名フリガナ(セイ)
-     */
-    private String furiganaSei;
-
-    /**
-     * 氏名フリガナ(メイ)
-     */
-    private String furiganaMei;
-
-    /**
-     * 会社名
-     */
-    private String companyName;
-
-    /**
-     * 部署名
-     */
-    private String departmentName;
-
-    /**
      * 郵便番号
      */
     private String postalCode;
 
     /**
-     * 都道府県
-     */
-    private String prefecture;
-
-    /**
-     * 市区町村
-     */
-    private String city;
-
-    /**
-     * 町域・番地
-     */
-    private String townStreetArea;
-
-    /**
-     * ビル等
-     */
-    private String buildingEtc;
-
-    /**
      * 住所
      */
     private String address;
@@ -132,11 +81,6 @@ public class MastCustomerVo extends BaseEntity {
     private String discontinuedFlg;
 
     /**
-     * 廃止日
-     */
-    private String discontinuedDate;
-
-    /**
      * リビジョン
      */
     private Integer version;

+ 5 - 20
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/mapper/MastCustomerMapper.java

@@ -2,6 +2,7 @@ package jp.yamoto.farm.crm.biz.master.mapper;
 
 import jp.yamoto.farm.crm.biz.master.domain.entity.MastCustomer;
 import jp.yamoto.farm.crm.biz.master.domain.vo.MastCustomerVo;
+
 import java.util.List;
 
 
@@ -12,16 +13,16 @@ import java.util.List;
  */
 public interface MastCustomerMapper {
 
-     /**
-     *顧客マスタを検索
+    /**
+     * 顧客マスタを検索
      *
      * @param id 顧客マスタプライマリ・キー
      * @return 顧客マスタ
      */
     public MastCustomerVo selectById(String id);
 
-     /**
-     *顧客マスタを検索リスト
+    /**
+     * 顧客マスタを検索リスト
      *
      * @param mastCustomer 顧客マスタ
      * @return 顧客マスタリスト
@@ -44,22 +45,6 @@ public interface MastCustomerMapper {
      */
     public int getCustomerCntByPhoneNumber(String phoneNumber);
 
-     /**
-     *顧客マスタを登録
-     *
-     * @param mastCustomer 顧客マスタ
-     * @return  結果
-     */
-    public int insert(MastCustomer mastCustomer);
-
-     /**
-     *顧客マスタを修正
-     *
-     * @param mastCustomer 顧客マスタ
-     * @return  結果
-     */
-    public int update(MastCustomer mastCustomer);
-
     /**
      * 一覧表示項目スタの論理削除
      *

+ 2 - 2
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/service/IMastCustomerService.java

@@ -19,7 +19,7 @@ public interface IMastCustomerService {
      * @param id 顧客マスタプライマリ・キー
      * @return 顧客マスタ
      */
-    public MastCustomerVo selectById(String id);
+    public MastCustomerVo selectCustomerById(String id);
 
     /**
      * 顧客マスタのリストを検索
@@ -27,7 +27,7 @@ public interface IMastCustomerService {
      * @param mastCustomerBo 顧客マスタパラメータ対象
      * @return 顧客マスタリスト
      */
-    public List<MastCustomerVo> selectList(MastCustomerBo mastCustomerBo);
+    public List<MastCustomerVo> selectCustomerList(MastCustomerBo mastCustomerBo);
 
     /**
      * 顧客マスタの保存

+ 27 - 17
farm-crm-biz/src/main/java/jp/yamoto/farm/crm/biz/master/service/impl/MastCustomerServiceImpl.java

@@ -1,5 +1,7 @@
 package jp.yamoto.farm.crm.biz.master.service.impl;
 
+import jp.yamoto.farm.common.biz.domain.entity.MastCustomerEntity;
+import jp.yamoto.farm.common.biz.service.impl.MastCustomerBaseServiceImpl;
 import jp.yamoto.farm.common.core.domain.model.LoginUser;
 import jp.yamoto.farm.common.core.enums.DelFlgEnum;
 import jp.yamoto.farm.common.core.service.IRangedSeqService;
@@ -30,7 +32,7 @@ import java.util.List;
  * @author nextosd
  */
 @Service
-public class MastCustomerServiceImpl implements IMastCustomerService {
+public class MastCustomerServiceImpl extends MastCustomerBaseServiceImpl implements IMastCustomerService {
 
     @Autowired
     private MastCustomerMapper mastCustomerMapper;
@@ -45,14 +47,16 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
      * @return 顧客マスタ
      */
     @Override
-    public MastCustomerVo selectById(String id) {
-        MastCustomerVo mastCustomerVo = mastCustomerMapper.selectById(id);
+    public MastCustomerVo selectCustomerById(String id) {
+        MastCustomerEntity customerEntity = this.selectById(id);
 
-        if (mastCustomerVo == null) {
+        if (customerEntity == null) {
             throw new ServiceException(MessageUtils.message("E0007"));
         }
 
         // 検索結果をリセット
+        MastCustomerVo mastCustomerVo = new MastCustomerVo();
+        BeanUtils.copyProperties(customerEntity, mastCustomerVo);
         this.restSearchData4View(mastCustomerVo, true);
         return mastCustomerVo;
     }
@@ -64,7 +68,7 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
      * @return 顧客マスタリスト
      */
     @Override
-    public List<MastCustomerVo> selectList(MastCustomerBo mastCustomerBo) {
+    public List<MastCustomerVo> selectCustomerList(MastCustomerBo mastCustomerBo) {
         // 未削除フラグ設定
         mastCustomerBo.setDiscontinuedFlg(DelFlgEnum.OFF.getCode());
         MastCustomer mastCustomer = new MastCustomer();
@@ -86,9 +90,9 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
     @Transactional(rollbackFor = Exception.class)
     public int save(MastCustomerBo mastCustomerBo) {
         if (ValueUtils.isEmpty(mastCustomerBo.getId())) {
-            return this.insert(mastCustomerBo);
+            return this.insertInfo(mastCustomerBo);
         } else {
-            return this.update(mastCustomerBo);
+            return this.updateInfo(mastCustomerBo);
         }
     }
 
@@ -112,7 +116,7 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
             // お問い合わせ者顧客を増やすフラグ
             String autoCustomerId = rangedSeqService.generateSerialNo(IRangedSeqService.SERIAL_TYPE_CUSTOMER);
             mastCustomerBo.setCustomerId(autoCustomerId);
-            this.insert(mastCustomerBo);
+            this.insertInfo(mastCustomerBo);
             return autoCustomerId;
         }
 
@@ -123,7 +127,7 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
                 customerId = item.getCustomerId();
                 continue;
             }
-            this.update(mastCustomerBo);
+            this.updateInfo(mastCustomerBo);
         }
         return customerId;
 
@@ -135,7 +139,8 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
      * @param mastCustomerBo 顧客マスタパラメータ対象
      * @return 結果
      */
-    private int insert(MastCustomerBo mastCustomerBo) {
+    @Transactional(rollbackFor = Exception.class)
+    public int insertInfo(MastCustomerBo mastCustomerBo) {
         MastCustomer mastCustomer = new MastCustomer();
         BeanUtils.copyProperties(mastCustomerBo, mastCustomer);
 
@@ -147,8 +152,10 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
 
         // 保存前にデータを構築
         this.buildCustomerInfo4Save(mastCustomer);
+        MastCustomerEntity mastCustomerEntity = new MastCustomerEntity();
+        BeanUtils.copyProperties(mastCustomer, mastCustomerEntity);
 
-        return mastCustomerMapper.insert(mastCustomer);
+        return this.insert(mastCustomerEntity);
     }
 
     /**
@@ -157,15 +164,18 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
      * @param mastCustomerBo 顧客マスタパラメータ対象
      * @return 結果
      */
-    private int update(MastCustomerBo mastCustomerBo) {
+    @Transactional(rollbackFor = Exception.class)
+    public int updateInfo(MastCustomerBo mastCustomerBo) {
         MastCustomer mastCustomer = new MastCustomer();
         BeanUtils.copyProperties(mastCustomerBo, mastCustomer);
 
         // 保存前にデータを構築
         this.buildCustomerInfo4Save(mastCustomer);
+        MastCustomerEntity mastCustomerEntity = new MastCustomerEntity();
+        BeanUtils.copyProperties(mastCustomer, mastCustomerEntity);
 
         // データの変更
-        int result = mastCustomerMapper.update(mastCustomer);
+        int result = this.update(mastCustomerEntity);
         if (result < 1) {
             throw new ServiceException(MessageUtils.message("E0007"));
         }
@@ -204,8 +214,8 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
      * @return 結果
      */
     public boolean checkExistCustomerByPhoneNumber(String phoneNumber) {
-       int mastCustomerCount = mastCustomerMapper.getCustomerCntByPhoneNumber(phoneNumber);
-       return  mastCustomerCount > 0 ;
+        int mastCustomerCount = mastCustomerMapper.getCustomerCntByPhoneNumber(phoneNumber);
+        return mastCustomerCount > 0;
     }
 
     /**
@@ -239,10 +249,10 @@ public class MastCustomerServiceImpl implements IMastCustomerService {
      * 検索結果をリセット
      *
      * @param mastCustomerVo 農家マスタ詳細情報Vo
-     * @param isDecryptMail 農家マスタ詳細情報Vo
+     * @param isDecryptMail  農家マスタ詳細情報Vo
      */
     @SneakyThrows
-    private void restSearchData4View(MastCustomerVo mastCustomerVo,boolean isDecryptMail) {
+    private void restSearchData4View(MastCustomerVo mastCustomerVo, boolean isDecryptMail) {
         // デコードページにはアイテムが表示されます
 
         //電話番号

+ 1 - 383
farm-crm-biz/src/main/resources/mapper/crm/MastCustomerMapper.xml

@@ -6,21 +6,11 @@
    <resultMap type="MastCustomerVo" id="MastCustomerResult">
         <result property="id" column="id"/>
         <result property="customerId" column="customer_id"/>
-        <result property="firstName" column="first_name"/>
-        <result property="lastName" column="last_name"/>
         <result property="customerName" column="customer_name"/>
         <result property="phoneNumber" column="phone_number"/>
         <result property="sysCustomerId" column="sys_customer_id"/>
         <result property="memberId" column="member_id"/>
-        <result property="furiganaSei" column="furigana_sei"/>
-        <result property="furiganaMei" column="furigana_mei"/>
-        <result property="companyName" column="company_name"/>
-        <result property="departmentName" column="department_name"/>
         <result property="postalCode" column="postal_code"/>
-        <result property="prefecture" column="prefecture"/>
-        <result property="city" column="city"/>
-        <result property="townStreetArea" column="town_street_area"/>
-        <result property="buildingEtc" column="building_etc"/>
         <result property="address" column="address"/>
         <result property="mailAddress" column="mail_address"/>
         <result property="mobile" column="mobile"/>
@@ -28,13 +18,6 @@
         <result property="farmerId" column="farmer_id"/>
         <result property="systemSourceFlg" column="system_source_flg"/>
         <result property="discontinuedFlg" column="discontinued_flg"/>
-        <result property="discontinuedDate" column="discontinued_date"/>
-        <result property="createTime" column="create_time"/>
-        <result property="createBy" column="create_by"/>
-        <result property="createPgId" column="create_pg_id"/>
-        <result property="updateTime" column="update_time"/>
-        <result property="updateBy" column="update_by"/>
-        <result property="updatePgId" column="update_pg_id"/>
         <result property="version" column="version"/>
 
     </resultMap>
@@ -42,21 +25,11 @@
         select
           id,
           customer_id,
-          first_name,
-          last_name,
           customer_name,
           phone_number,
           sys_customer_id,
           member_id,
-          furigana_sei,
-          furigana_mei,
-          company_name,
-          department_name,
           postal_code,
-          prefecture,
-          city,
-          town_street_area,
-          building_etc,
           address,
           mail_address,
           mobile,
@@ -64,13 +37,6 @@
           farmer_id,
           system_source_flg,
           discontinued_flg,
-          discontinued_date,
-          create_time,
-          create_by,
-          create_pg_id,
-          update_time,
-          update_by,
-          update_pg_id,
           version
         from mast_customer
     </sql>
@@ -83,12 +49,6 @@
             <if test="customerId != null  and customerId != ''">
                 and customer_id = #{customerId}
             </if>
-            <if test="firstName != null  and firstName != ''">
-                and first_name = #{firstName}
-            </if>
-            <if test="lastName != null  and lastName != ''">
-                and last_name = #{lastName}
-            </if>
             <if test="customerName != null  and customerName != ''">
                 and customer_name = #{customerName}
             </if>
@@ -101,33 +61,10 @@
             <if test="memberId != null  and memberId != ''">
                 and member_id = #{memberId}
             </if>
-            <if test="furiganaSei != null  and furiganaSei != ''">
-                and furigana_sei = #{furiganaSei}
-            </if>
-            <if test="furiganaMei != null  and furiganaMei != ''">
-                and furigana_mei = #{furiganaMei}
-            </if>
-            <if test="companyName != null  and companyName != ''">
-                and company_name = #{companyName}
-            </if>
-            <if test="departmentName != null  and departmentName != ''">
-                and department_name = #{departmentName}
-            </if>
             <if test="postalCode != null  and postalCode != ''">
                 and postal_code = #{postalCode}
             </if>
-            <if test="prefecture != null  and prefecture != ''">
-                and prefecture = #{prefecture}
-            </if>
-            <if test="city != null  and city != ''">
-                and city = #{city}
-            </if>
-            <if test="townStreetArea != null  and townStreetArea != ''">
-                and town_street_area = #{townStreetArea}
-            </if>
-            <if test="buildingEtc != null  and buildingEtc != ''">
-                and building_etc = #{buildingEtc}
-            </if>
+
             <if test="address != null  and address != ''">
                 and address = #{address}
             </if>
@@ -149,9 +86,6 @@
             <if test="discontinuedFlg != null ">
                 and discontinued_flg = #{discontinuedFlg}
             </if>
-            <if test="discontinuedDate != null  and discontinuedDate != ''">
-                and discontinued_date = #{discontinuedDate}
-            </if>
 
         </where>
     </select>
@@ -186,322 +120,6 @@
         </where>
     </select>
 
-    <insert id="insert" parameterType="MastCustomer">
-        insert into mast_customer
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="id != null">
-                id,
-            </if>
-            <if test="customerId != null">
-                customer_id,
-            </if>
-            <if test="firstName != null">
-                first_name,
-            </if>
-            <if test="lastName != null">
-                last_name,
-            </if>
-            <if test="customerName != null">
-                customer_name,
-            </if>
-            <if test="phoneNumber != null">
-                phone_number,
-            </if>
-            <if test="sysCustomerId != null">
-                sys_customer_id,
-            </if>
-            <if test="memberId != null">
-                member_id,
-            </if>
-            <if test="furiganaSei != null">
-                furigana_sei,
-            </if>
-            <if test="furiganaMei != null">
-                furigana_mei,
-            </if>
-            <if test="companyName != null">
-                company_name,
-            </if>
-            <if test="departmentName != null">
-                department_name,
-            </if>
-            <if test="postalCode != null">
-                postal_code,
-            </if>
-            <if test="prefecture != null">
-                prefecture,
-            </if>
-            <if test="city != null">
-                city,
-            </if>
-            <if test="townStreetArea != null">
-                town_street_area,
-            </if>
-            <if test="buildingEtc != null">
-                building_etc,
-            </if>
-            <if test="address != null">
-                address,
-            </if>
-            <if test="mailAddress != null">
-                mail_address,
-            </if>
-            <if test="mobile != null">
-                mobile,
-            </if>
-            <if test="fax != null">
-                fax,
-            </if>
-            <if test="farmerId != null">
-                farmer_id,
-            </if>
-            <if test="systemSourceFlg != null">
-                system_source_flg,
-            </if>
-            <if test="discontinuedFlg != null">
-                discontinued_flg,
-            </if>
-            <if test="discontinuedDate != null">
-                discontinued_date,
-            </if>
-            <if test="createTime != null">
-                create_time,
-            </if>
-            <if test="createBy != null">
-                create_by,
-            </if>
-            <if test="createPgId != null">
-                create_pg_id,
-            </if>
-            <if test="updateTime != null">
-                update_time,
-            </if>
-            <if test="updateBy != null">
-                update_by,
-            </if>
-            <if test="updatePgId != null">
-                update_pg_id,
-            </if>
-            <if test="version != null">
-                version,
-            </if>
-
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="id != null">
-                #{id},
-            </if>
-            <if test="customerId != null">
-                #{customerId},
-            </if>
-            <if test="firstName != null">
-                #{firstName},
-            </if>
-            <if test="lastName != null">
-                #{lastName},
-            </if>
-            <if test="customerName != null">
-                #{customerName},
-            </if>
-            <if test="phoneNumber != null">
-                #{phoneNumber},
-            </if>
-            <if test="sysCustomerId != null">
-                #{sysCustomerId},
-            </if>
-            <if test="memberId != null">
-                #{memberId},
-            </if>
-            <if test="furiganaSei != null">
-                #{furiganaSei},
-            </if>
-            <if test="furiganaMei != null">
-                #{furiganaMei},
-            </if>
-            <if test="companyName != null">
-                #{companyName},
-            </if>
-            <if test="departmentName != null">
-                #{departmentName},
-            </if>
-            <if test="postalCode != null">
-                #{postalCode},
-            </if>
-            <if test="prefecture != null">
-                #{prefecture},
-            </if>
-            <if test="city != null">
-                #{city},
-            </if>
-            <if test="townStreetArea != null">
-                #{townStreetArea},
-            </if>
-            <if test="buildingEtc != null">
-                #{buildingEtc},
-            </if>
-            <if test="address != null">
-                #{address},
-            </if>
-            <if test="mailAddress != null">
-                #{mailAddress},
-            </if>
-            <if test="mobile != null">
-                #{mobile},
-            </if>
-            <if test="fax != null">
-                #{fax},
-            </if>
-            <if test="farmerId != null">
-                #{farmerId},
-            </if>
-            <if test="systemSourceFlg != null">
-                #{systemSourceFlg},
-            </if>
-            <if test="discontinuedFlg != null">
-                #{discontinuedFlg},
-            </if>
-            <if test="discontinuedDate != null">
-                #{discontinuedDate},
-            </if>
-            <if test="createTime != null">
-                #{createTime},
-            </if>
-            <if test="createBy != null">
-                #{createBy},
-            </if>
-            <if test="createPgId != null">
-                #{createPgId},
-            </if>
-            <if test="updateTime != null">
-                #{updateTime},
-            </if>
-            <if test="updateBy != null">
-                #{updateBy},
-            </if>
-            <if test="updatePgId != null">
-                #{updatePgId},
-            </if>
-            <if test="version != null">
-                #{version},
-            </if>
-
-        </trim>
-    </insert>
-
-    <update id="update" parameterType="MastCustomer">
-        update mast_customer
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="id != null">
-                id = #{id},
-            </if>
-            <if test="customerId != null">
-                customer_id = #{customerId},
-            </if>
-            <if test="firstName != null">
-                first_name = #{firstName},
-            </if>
-            <if test="lastName != null">
-                last_name = #{lastName},
-            </if>
-            <if test="customerName != null">
-                customer_name = #{customerName},
-            </if>
-            <if test="phoneNumber != null">
-                phone_number = #{phoneNumber},
-            </if>
-            <if test="sysCustomerId != null">
-                sys_customer_id = #{sysCustomerId},
-            </if>
-            <if test="memberId != null">
-                member_id = #{memberId},
-            </if>
-            <if test="furiganaSei != null">
-                furigana_sei = #{furiganaSei},
-            </if>
-            <if test="furiganaMei != null">
-                furigana_mei = #{furiganaMei},
-            </if>
-            <if test="companyName != null">
-                company_name = #{companyName},
-            </if>
-            <if test="departmentName != null">
-                department_name = #{departmentName},
-            </if>
-            <if test="postalCode != null">
-                postal_code = #{postalCode},
-            </if>
-            <if test="prefecture != null">
-                prefecture = #{prefecture},
-            </if>
-            <if test="city != null">
-                city = #{city},
-            </if>
-            <if test="townStreetArea != null">
-                town_street_area = #{townStreetArea},
-            </if>
-            <if test="buildingEtc != null">
-                building_etc = #{buildingEtc},
-            </if>
-            <if test="address != null">
-                address = #{address},
-            </if>
-            <if test="mailAddress != null">
-                mail_address = #{mailAddress},
-            </if>
-            <if test="mobile != null">
-                mobile = #{mobile},
-            </if>
-            <if test="fax != null">
-                fax = #{fax},
-            </if>
-            <if test="farmerId != null">
-                farmer_id = #{farmerId},
-            </if>
-            <if test="systemSourceFlg != null">
-                system_source_flg = #{systemSourceFlg},
-            </if>
-            <if test="discontinuedFlg != null">
-                discontinued_flg = #{discontinuedFlg},
-            </if>
-            <if test="discontinuedDate != null">
-                discontinued_date = #{discontinuedDate},
-            </if>
-            <if test="createTime != null">
-                create_time = #{createTime},
-            </if>
-            <if test="createBy != null">
-                create_by = #{createBy},
-            </if>
-            <if test="createPgId != null">
-                create_pg_id = #{createPgId},
-            </if>
-            <if test="updateTime != null">
-                update_time = #{updateTime},
-            </if>
-            <if test="updateBy != null">
-                update_by = #{updateBy},
-            </if>
-            <if test="updatePgId != null">
-                update_pg_id = #{updatePgId},
-            </if>
-            version = version + 1
-
-        </trim>
-        where
-        id = #{id}
-
-        and version = #{version}
-    </update>
-
-    <delete id="deleteById" parameterType="String">
-        delete
-        from
-        mast_customer
-        where
-        id = #{id}
-
-    </delete>
-
     <update id="deleteLogicByIdAndVersion" parameterType="MastCustomer">
         update
         mast_customer

+ 2 - 2
farm-crm/src/main/java/jp/yamoto/farm/crm/web/controller/master/MastCustomerController.java

@@ -40,7 +40,7 @@ public class MastCustomerController extends BaseController {
     @GetMapping("/list")
     public TableDataInfo list(MastCustomerBo mastCustomerBo) {
         startPage();
-        List<MastCustomerVo> list = mastCustomerService.selectList(mastCustomerBo);
+        List<MastCustomerVo> list = mastCustomerService.selectCustomerList(mastCustomerBo);
         return getDataTable(list);
     }
 
@@ -49,7 +49,7 @@ public class MastCustomerController extends BaseController {
      */
     @GetMapping(value = "/info/{id}")
     public AjaxResult getInfo(@PathVariable("id") String id) {
-        return success(mastCustomerService.selectById(id));
+        return success(mastCustomerService.selectCustomerById(id));
     }
 
     /**