java110 лет назад: 4
Родитель
Сommit
0dafd471a4

+ 5 - 0
java110-bean/src/main/java/com/java110/dto/accountDetail/AccountDetailDto.java

@@ -15,6 +15,11 @@ import java.util.Date;
  **/
 public class AccountDetailDto extends PageDto implements Serializable {
 
+
+    //类型,1001 转入 2002 转出
+    public static String DETAIL_TYPE_IN = "1001";
+    public static String DETAIL_TYPE_OUT = "2002";
+
     private String detailType;
     private String amount;
     private String orderId;

+ 8 - 0
java110-db/src/main/resources/mapper/acct/AccountDetailServiceDaoImplMapper.xml

@@ -232,4 +232,12 @@
 
     </select>
 
+    <!-- 保存账户交易信息 add by wuxw 2018-07-03 -->
+    <insert id="saveAccountDetails" parameterType="Map">
+        insert into account_detail(
+        detail_type,amount,order_id,obj_id,detail_id,acct_id,rel_acct_id,remark,b_id,obj_type
+        ) values (
+        #{detailType},#{amount},#{orderId},#{objId},#{detailId},#{acctId},#{relAcctId},#{remark},'-1',#{objType}
+        )
+    </insert>
 </mapper>

+ 26 - 1
java110-db/src/main/resources/mapper/acct/AccountServiceDaoImplMapper.xml

@@ -86,7 +86,8 @@
         acctId,t.status_cd,t.status_cd statusCd,t.acct_name,t.acct_name acctName,t.b_id,t.b_id bId,t.obj_type,t.obj_type
         objType,t.create_time createTime,td.`name` acctTypeName
         from account t
-        LEFT JOIN t_dict td on t.acct_type = td.status_cd and td.table_name = 'account' and td.table_columns = 'acct_type'
+        LEFT JOIN t_dict td on t.acct_type = td.status_cd and td.table_name = 'account' and td.table_columns =
+        'acct_type'
         where 1 =1
         <if test="amount !=null and amount != ''">
             and t.amount= #{amount}
@@ -184,4 +185,28 @@
 
     </select>
 
+
+    <!-- 修改账户信息 add by wuxw 2018-07-03 -->
+    <update id="updateAccount" parameterType="Map">
+        update account t
+        <set>
+            <if test="amount !=null and amount != ''">
+                t.amount= #{amount},
+            </if>
+            <if test="acctType !=null and acctType != ''">
+                t.acct_type= #{acctType},
+            </if>
+            <if test="acctName !=null and acctName != ''">
+                t.acct_name= #{acctName},
+            </if>
+        </set>
+        where 1=1
+        <if test="acctId !=null and acctId != ''">
+            and t.acct_id= #{acctId}
+        </if>
+        <if test="objId !=null and objId != ''">
+            t.obj_id= #{objId},
+        </if>
+    </update>
+
 </mapper>

+ 12 - 0
java110-interface/src/main/java/com/java110/intf/acct/IAccountDetailInnerServiceSMO.java

@@ -2,6 +2,7 @@ package com.java110.intf.acct;
 
 import com.java110.config.feign.FeignConfiguration;
 import com.java110.dto.accountDetail.AccountDetailDto;
+import com.java110.po.accountDetail.AccountDetailPo;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -39,4 +40,15 @@ public interface IAccountDetailInnerServiceSMO {
      */
     @RequestMapping(value = "/queryAccountDetailsCount", method = RequestMethod.POST)
     int queryAccountDetailsCount(@RequestBody AccountDetailDto accountDetailDto);
+
+
+    /**
+     * <p>查询小区楼信息</p>
+     *
+     *
+     * @param accountDetailPo 数据对象分享
+     * @return AccountDetailDto 对象数据
+     */
+    @RequestMapping(value = "/saveAccountDetails", method = RequestMethod.POST)
+    int saveAccountDetails(@RequestBody AccountDetailPo accountDetailPo);
 }

+ 10 - 0
java110-interface/src/main/java/com/java110/intf/acct/IAccountInnerServiceSMO.java

@@ -2,6 +2,7 @@ package com.java110.intf.acct;
 
 import com.java110.config.feign.FeignConfiguration;
 import com.java110.dto.account.AccountDto;
+import com.java110.po.account.AccountPo;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -39,4 +40,13 @@ public interface IAccountInnerServiceSMO {
      */
     @RequestMapping(value = "/queryAccountsCount", method = RequestMethod.POST)
     int queryAccountsCount(@RequestBody AccountDto accountDto);
+
+    /**
+     * 查询<p>小区楼</p>总记录数
+     *
+     * @param accountPo 数据对象分享
+     * @return 小区下的小区楼记录数
+     */
+    @RequestMapping(value = "/updateAccount", method = RequestMethod.POST)
+    int updateAccount(@RequestBody AccountPo accountPo);
 }

+ 13 - 12
service-acct/src/main/java/com/java110/acct/dao/IAccountDetailServiceDao.java

@@ -2,11 +2,6 @@ package com.java110.acct.dao;
 
 
 import com.java110.utils.exception.DAOException;
-import com.java110.entity.merchant.BoMerchant;
-import com.java110.entity.merchant.BoMerchantAttr;
-import com.java110.entity.merchant.Merchant;
-import com.java110.entity.merchant.MerchantAttr;
-
 
 import java.util.List;
 import java.util.Map;
@@ -15,23 +10,24 @@ import java.util.Map;
  * 账户交易组件内部之间使用,没有给外围系统提供服务能力
  * 账户交易服务接口类,要求全部以字符串传输,方便微服务化
  * 新建客户,修改客户,删除客户,查询客户等功能
- *
+ * <p>
  * Created by wuxw on 2016/12/27.
  */
 public interface IAccountDetailServiceDao {
 
     /**
      * 保存 账户交易信息
+     *
      * @param businessAccountDetailInfo 账户交易信息 封装
      * @throws DAOException 操作数据库异常
      */
     void saveBusinessAccountDetailInfo(Map businessAccountDetailInfo) throws DAOException;
 
 
-
     /**
      * 查询账户交易信息(business过程)
      * 根据bId 查询账户交易信息
+     *
      * @param info bId 信息
      * @return 账户交易信息
      * @throws DAOException DAO异常
@@ -39,21 +35,19 @@ public interface IAccountDetailServiceDao {
     List<Map> getBusinessAccountDetailInfo(Map info) throws DAOException;
 
 
-
-
     /**
      * 保存 账户交易信息 Business数据到 Instance中
+     *
      * @param info
      * @throws DAOException DAO异常
      */
     void saveAccountDetailInfoInstance(Map info) throws DAOException;
 
 
-
-
     /**
      * 查询账户交易信息(instance过程)
      * 根据bId 查询账户交易信息
+     *
      * @param info bId 信息
      * @return 账户交易信息
      * @throws DAOException DAO异常
@@ -61,9 +55,9 @@ public interface IAccountDetailServiceDao {
     List<Map> getAccountDetailInfo(Map info) throws DAOException;
 
 
-
     /**
      * 修改账户交易信息
+     *
      * @param info 修改信息
      * @throws DAOException DAO异常
      */
@@ -78,4 +72,11 @@ public interface IAccountDetailServiceDao {
      */
     int queryAccountDetailsCount(Map info);
 
+    /**
+     * 保存账户 明细
+     *
+     * @param beanCovertMap
+     * @return
+     */
+    int saveAccountDetails(Map beanCovertMap);
 }

+ 7 - 0
service-acct/src/main/java/com/java110/acct/dao/IAccountServiceDao.java

@@ -78,4 +78,11 @@ public interface IAccountServiceDao {
      */
     int queryAccountsCount(Map info);
 
+    /**
+     * 查询账户总数
+     *
+     * @param info 账户信息
+     * @return 账户数量
+     */
+    int updateAccount(Map info);
 }

+ 34 - 23
service-acct/src/main/java/com/java110/acct/dao/impl/AccountDetailServiceDaoImpl.java

@@ -1,15 +1,14 @@
 package com.java110.acct.dao.impl;
 
 import com.alibaba.fastjson.JSONObject;
+import com.java110.acct.dao.IAccountDetailServiceDao;
+import com.java110.core.base.dao.BaseServiceDao;
 import com.java110.utils.constant.ResponseConstant;
 import com.java110.utils.exception.DAOException;
 import com.java110.utils.util.DateUtil;
-import com.java110.core.base.dao.BaseServiceDao;
-import com.java110.acct.dao.IAccountDetailServiceDao;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 
 import java.util.List;
 import java.util.Map;
@@ -26,6 +25,7 @@ public class AccountDetailServiceDaoImpl extends BaseServiceDao implements IAcco
 
     /**
      * 账户交易信息封装
+     *
      * @param businessAccountDetailInfo 账户交易信息 封装
      * @throws DAOException DAO异常
      */
@@ -33,17 +33,18 @@ public class AccountDetailServiceDaoImpl extends BaseServiceDao implements IAcco
     public void saveBusinessAccountDetailInfo(Map businessAccountDetailInfo) throws DAOException {
         businessAccountDetailInfo.put("month", DateUtil.getCurrentMonth());
         // 查询business_user 数据是否已经存在
-        logger.debug("保存账户交易信息 入参 businessAccountDetailInfo : {}",businessAccountDetailInfo);
-        int saveFlag = sqlSessionTemplate.insert("accountDetailServiceDaoImpl.saveBusinessAccountDetailInfo",businessAccountDetailInfo);
+        logger.debug("保存账户交易信息 入参 businessAccountDetailInfo : {}", businessAccountDetailInfo);
+        int saveFlag = sqlSessionTemplate.insert("accountDetailServiceDaoImpl.saveBusinessAccountDetailInfo", businessAccountDetailInfo);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存账户交易数据失败:"+ JSONObject.toJSONString(businessAccountDetailInfo));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存账户交易数据失败:" + JSONObject.toJSONString(businessAccountDetailInfo));
         }
     }
 
 
     /**
      * 查询账户交易信息
+     *
      * @param info bId 信息
      * @return 账户交易信息
      * @throws DAOException DAO异常
@@ -51,43 +52,44 @@ public class AccountDetailServiceDaoImpl extends BaseServiceDao implements IAcco
     @Override
     public List<Map> getBusinessAccountDetailInfo(Map info) throws DAOException {
 
-        logger.debug("查询账户交易信息 入参 info : {}",info);
+        logger.debug("查询账户交易信息 入参 info : {}", info);
 
-        List<Map> businessAccountDetailInfos = sqlSessionTemplate.selectList("accountDetailServiceDaoImpl.getBusinessAccountDetailInfo",info);
+        List<Map> businessAccountDetailInfos = sqlSessionTemplate.selectList("accountDetailServiceDaoImpl.getBusinessAccountDetailInfo", info);
 
         return businessAccountDetailInfos;
     }
 
 
-
     /**
      * 保存账户交易信息 到 instance
-     * @param info   bId 信息
+     *
+     * @param info bId 信息
      * @throws DAOException DAO异常
      */
     @Override
     public void saveAccountDetailInfoInstance(Map info) throws DAOException {
-        logger.debug("保存账户交易信息Instance 入参 info : {}",info);
+        logger.debug("保存账户交易信息Instance 入参 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.insert("accountDetailServiceDaoImpl.saveAccountDetailInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.insert("accountDetailServiceDaoImpl.saveAccountDetailInfoInstance", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存账户交易信息Instance数据失败:"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存账户交易信息Instance数据失败:" + JSONObject.toJSONString(info));
         }
     }
 
 
     /**
      * 查询账户交易信息(instance)
+     *
      * @param info bId 信息
      * @return List<Map>
      * @throws DAOException DAO异常
      */
     @Override
     public List<Map> getAccountDetailInfo(Map info) throws DAOException {
-        logger.debug("查询账户交易信息 入参 info : {}",info);
+        logger.debug("查询账户交易信息 入参 info : {}", info);
 
-        List<Map> businessAccountDetailInfos = sqlSessionTemplate.selectList("accountDetailServiceDaoImpl.getAccountDetailInfo",info);
+        List<Map> businessAccountDetailInfos = sqlSessionTemplate.selectList("accountDetailServiceDaoImpl.getAccountDetailInfo", info);
 
         return businessAccountDetailInfos;
     }
@@ -95,28 +97,30 @@ public class AccountDetailServiceDaoImpl extends BaseServiceDao implements IAcco
 
     /**
      * 修改账户交易信息
+     *
      * @param info 修改信息
      * @throws DAOException DAO异常
      */
     @Override
     public void updateAccountDetailInfoInstance(Map info) throws DAOException {
-        logger.debug("修改账户交易信息Instance 入参 info : {}",info);
+        logger.debug("修改账户交易信息Instance 入参 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.update("accountDetailServiceDaoImpl.updateAccountDetailInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.update("accountDetailServiceDaoImpl.updateAccountDetailInfoInstance", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改账户交易信息Instance数据失败:"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "修改账户交易信息Instance数据失败:" + JSONObject.toJSONString(info));
         }
     }
 
-     /**
+    /**
      * 查询账户交易数量
+     *
      * @param info 账户交易信息
      * @return 账户交易数量
      */
     @Override
     public int queryAccountDetailsCount(Map info) {
-        logger.debug("查询账户交易数据 入参 info : {}",info);
+        logger.debug("查询账户交易数据 入参 info : {}", info);
 
         List<Map> businessAccountDetailInfos = sqlSessionTemplate.selectList("accountDetailServiceDaoImpl.queryAccountDetailsCount", info);
         if (businessAccountDetailInfos.size() < 1) {
@@ -126,5 +130,12 @@ public class AccountDetailServiceDaoImpl extends BaseServiceDao implements IAcco
         return Integer.parseInt(businessAccountDetailInfos.get(0).get("count").toString());
     }
 
+    @Override
+    public int saveAccountDetails(Map info) {
+        int saveFlag = sqlSessionTemplate.update("accountDetailServiceDaoImpl.saveAccountDetails", info);
+
+        return saveFlag;
+    }
+
 
 }

+ 41 - 23
service-acct/src/main/java/com/java110/acct/dao/impl/AccountServiceDaoImpl.java

@@ -1,15 +1,14 @@
 package com.java110.acct.dao.impl;
 
 import com.alibaba.fastjson.JSONObject;
+import com.java110.acct.dao.IAccountServiceDao;
+import com.java110.core.base.dao.BaseServiceDao;
 import com.java110.utils.constant.ResponseConstant;
 import com.java110.utils.exception.DAOException;
 import com.java110.utils.util.DateUtil;
-import com.java110.core.base.dao.BaseServiceDao;
-import com.java110.acct.dao.IAccountServiceDao;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Transactional;
 
 import java.util.List;
 import java.util.Map;
@@ -26,6 +25,7 @@ public class AccountServiceDaoImpl extends BaseServiceDao implements IAccountSer
 
     /**
      * 账户信息封装
+     *
      * @param businessAccountInfo 账户信息 封装
      * @throws DAOException DAO异常
      */
@@ -33,17 +33,18 @@ public class AccountServiceDaoImpl extends BaseServiceDao implements IAccountSer
     public void saveBusinessAccountInfo(Map businessAccountInfo) throws DAOException {
         businessAccountInfo.put("month", DateUtil.getCurrentMonth());
         // 查询business_user 数据是否已经存在
-        logger.debug("保存账户信息 入参 businessAccountInfo : {}",businessAccountInfo);
-        int saveFlag = sqlSessionTemplate.insert("accountServiceDaoImpl.saveBusinessAccountInfo",businessAccountInfo);
+        logger.debug("保存账户信息 入参 businessAccountInfo : {}", businessAccountInfo);
+        int saveFlag = sqlSessionTemplate.insert("accountServiceDaoImpl.saveBusinessAccountInfo", businessAccountInfo);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存账户数据失败:"+ JSONObject.toJSONString(businessAccountInfo));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存账户数据失败:" + JSONObject.toJSONString(businessAccountInfo));
         }
     }
 
 
     /**
      * 查询账户信息
+     *
      * @param info bId 信息
      * @return 账户信息
      * @throws DAOException DAO异常
@@ -51,43 +52,44 @@ public class AccountServiceDaoImpl extends BaseServiceDao implements IAccountSer
     @Override
     public List<Map> getBusinessAccountInfo(Map info) throws DAOException {
 
-        logger.debug("查询账户信息 入参 info : {}",info);
+        logger.debug("查询账户信息 入参 info : {}", info);
 
-        List<Map> businessAccountInfos = sqlSessionTemplate.selectList("accountServiceDaoImpl.getBusinessAccountInfo",info);
+        List<Map> businessAccountInfos = sqlSessionTemplate.selectList("accountServiceDaoImpl.getBusinessAccountInfo", info);
 
         return businessAccountInfos;
     }
 
 
-
     /**
      * 保存账户信息 到 instance
-     * @param info   bId 信息
+     *
+     * @param info bId 信息
      * @throws DAOException DAO异常
      */
     @Override
     public void saveAccountInfoInstance(Map info) throws DAOException {
-        logger.debug("保存账户信息Instance 入参 info : {}",info);
+        logger.debug("保存账户信息Instance 入参 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.insert("accountServiceDaoImpl.saveAccountInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.insert("accountServiceDaoImpl.saveAccountInfoInstance", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"保存账户信息Instance数据失败:"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "保存账户信息Instance数据失败:" + JSONObject.toJSONString(info));
         }
     }
 
 
     /**
      * 查询账户信息(instance)
+     *
      * @param info bId 信息
      * @return List<Map>
      * @throws DAOException DAO异常
      */
     @Override
     public List<Map> getAccountInfo(Map info) throws DAOException {
-        logger.debug("查询账户信息 入参 info : {}",info);
+        logger.debug("查询账户信息 入参 info : {}", info);
 
-        List<Map> businessAccountInfos = sqlSessionTemplate.selectList("accountServiceDaoImpl.getAccountInfo",info);
+        List<Map> businessAccountInfos = sqlSessionTemplate.selectList("accountServiceDaoImpl.getAccountInfo", info);
 
         return businessAccountInfos;
     }
@@ -95,28 +97,30 @@ public class AccountServiceDaoImpl extends BaseServiceDao implements IAccountSer
 
     /**
      * 修改账户信息
+     *
      * @param info 修改信息
      * @throws DAOException DAO异常
      */
     @Override
     public void updateAccountInfoInstance(Map info) throws DAOException {
-        logger.debug("修改账户信息Instance 入参 info : {}",info);
+        logger.debug("修改账户信息Instance 入参 info : {}", info);
 
-        int saveFlag = sqlSessionTemplate.update("accountServiceDaoImpl.updateAccountInfoInstance",info);
+        int saveFlag = sqlSessionTemplate.update("accountServiceDaoImpl.updateAccountInfoInstance", info);
 
-        if(saveFlag < 1){
-            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改账户信息Instance数据失败:"+ JSONObject.toJSONString(info));
+        if (saveFlag < 1) {
+            throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR, "修改账户信息Instance数据失败:" + JSONObject.toJSONString(info));
         }
     }
 
-     /**
+    /**
      * 查询账户数量
+     *
      * @param info 账户信息
      * @return 账户数量
      */
     @Override
     public int queryAccountsCount(Map info) {
-        logger.debug("查询账户数据 入参 info : {}",info);
+        logger.debug("查询账户数据 入参 info : {}", info);
 
         List<Map> businessAccountInfos = sqlSessionTemplate.selectList("accountServiceDaoImpl.queryAccountsCount", info);
         if (businessAccountInfos.size() < 1) {
@@ -126,5 +130,19 @@ public class AccountServiceDaoImpl extends BaseServiceDao implements IAccountSer
         return Integer.parseInt(businessAccountInfos.get(0).get("count").toString());
     }
 
+    /**
+     * 查询账户数量
+     *
+     * @param info 账户信息
+     * @return 账户数量
+     */
+    @Override
+    public int updateAccount(Map info) {
+        logger.debug("查询账户数据 入参 info : {}", info);
+
+        int flag = sqlSessionTemplate.update("accountServiceDaoImpl.updateAccount", info);
+        return flag;
+    }
+
 
 }

+ 8 - 30
service-acct/src/main/java/com/java110/acct/smo/impl/AccountDetailInnerServiceSMOImpl.java

@@ -2,17 +2,17 @@ package com.java110.acct.smo.impl;
 
 
 import com.java110.acct.dao.IAccountDetailServiceDao;
+import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.base.smo.BaseServiceSMO;
 import com.java110.dto.PageDto;
 import com.java110.dto.accountDetail.AccountDetailDto;
-import com.java110.dto.user.UserDto;
 import com.java110.intf.acct.IAccountDetailInnerServiceSMO;
+import com.java110.po.accountDetail.AccountDetailPo;
 import com.java110.utils.util.BeanConvertUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.util.ArrayList;
 import java.util.List;
 
 /**
@@ -46,40 +46,18 @@ public class AccountDetailInnerServiceSMOImpl extends BaseServiceSMO implements
         return accountDetails;
     }
 
-    /**
-     * 从用户列表中查询用户,将用户中的信息 刷新到 floor对象中
-     *
-     * @param accountDetail 小区账户交易信息
-     * @param users         用户列表
-     */
-    private void refreshAccountDetail(AccountDetailDto accountDetail, List<UserDto> users) {
-        for (UserDto user : users) {
-            if (accountDetail.getDetailId().equals(user.getUserId())) {
-                BeanConvertUtil.covertBean(user, accountDetail);
-            }
-        }
-    }
-
-    /**
-     * 获取批量userId
-     *
-     * @param accountDetails 小区楼信息
-     * @return 批量userIds 信息
-     */
-    private String[] getUserIds(List<AccountDetailDto> accountDetails) {
-        List<String> userIds = new ArrayList<String>();
-        for (AccountDetailDto accountDetail : accountDetails) {
-            userIds.add(accountDetail.getDetailId());
-        }
-
-        return userIds.toArray(new String[userIds.size()]);
-    }
 
     @Override
     public int queryAccountDetailsCount(@RequestBody AccountDetailDto accountDetailDto) {
         return accountDetailServiceDaoImpl.queryAccountDetailsCount(BeanConvertUtil.beanCovertMap(accountDetailDto));
     }
 
+    @Override
+    @Java110Transactional
+    public int saveAccountDetails(@RequestBody AccountDetailPo accountDetailPo) {
+        return accountDetailServiceDaoImpl.saveAccountDetails(BeanConvertUtil.beanCovertMap(accountDetailPo));
+    }
+
     public IAccountDetailServiceDao getAccountDetailServiceDaoImpl() {
         return accountDetailServiceDaoImpl;
     }

+ 8 - 0
service-acct/src/main/java/com/java110/acct/smo/impl/AccountInnerServiceSMOImpl.java

@@ -2,11 +2,13 @@ package com.java110.acct.smo.impl;
 
 
 import com.java110.acct.dao.IAccountServiceDao;
+import com.java110.core.annotation.Java110Transactional;
 import com.java110.core.base.smo.BaseServiceSMO;
 import com.java110.dto.PageDto;
 import com.java110.dto.account.AccountDto;
 import com.java110.dto.user.UserDto;
 import com.java110.intf.acct.IAccountInnerServiceSMO;
+import com.java110.po.account.AccountPo;
 import com.java110.utils.util.BeanConvertUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -81,6 +83,12 @@ public class AccountInnerServiceSMOImpl extends BaseServiceSMO implements IAccou
         return accountServiceDaoImpl.queryAccountsCount(BeanConvertUtil.beanCovertMap(accountDto));
     }
 
+    @Override
+    @Java110Transactional
+    public int updateAccount(@RequestBody AccountPo accountPo) {
+        return accountServiceDaoImpl.updateAccount(BeanConvertUtil.beanCovertMap(accountPo));
+    }
+
     public IAccountServiceDao getAccountServiceDaoImpl() {
         return accountServiceDaoImpl;
     }