From 755262ba9a1a3c0573a0e910bbd0a353e9e2a2c5 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期三, 16 六月 2021 16:39:57 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
java110-bean/src/main/java/com/java110/dto/accountWithdrawalApply/AccountWithdrawalApplyDto.java | 97 +++++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/UpdateAccountWithdrawalApplyBMOImpl.java | 38 ++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/SaveAccountWithdrawalApplyBMOImpl.java | 40 ++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/DeleteAccountWithdrawalApplyBMOImpl.java | 36 +
java110-interface/src/main/java/com/java110/intf/acct/IAccountWithdrawalApplyInnerServiceSMO.java | 53 ++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IUpdateAccountWithdrawalApplyBMO.java | 17
java110-generator/src/main/resources/web/template_1.json | 90 ++--
java110-db/src/main/resources/mapper/acct/AccountWithdrawalApplyServiceDaoImplMapper.xml | 142 +++++++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/GetAccountWithdrawalApplyBMOImpl.java | 46 ++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IDeleteAccountWithdrawalApplyBMO.java | 17
java110-generator/src/main/resources/newBack/template_1.json | 58 +-
java110-bean/src/main/java/com/java110/po/accountWithdrawalApply/AccountWithdrawalApplyPo.java | 74 +++
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IGetAccountWithdrawalApplyBMO.java | 16
service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/ISaveAccountWithdrawalApplyBMO.java | 17
service-acct/src/main/java/com/java110/acct/smo/impl/AccountWithdrawalApplyInnerServiceSMOImpl.java | 83 ++++
service-acct/src/main/java/com/java110/acct/api/AccountWithdrawalApplyApi.java | 108 +++++
service-acct/src/main/java/com/java110/acct/dao/IAccountWithdrawalApplyServiceDao.java | 61 +++
service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java | 98 +++++
18 files changed, 1,017 insertions(+), 74 deletions(-)
diff --git a/java110-bean/src/main/java/com/java110/dto/accountWithdrawalApply/AccountWithdrawalApplyDto.java b/java110-bean/src/main/java/com/java110/dto/accountWithdrawalApply/AccountWithdrawalApplyDto.java
new file mode 100644
index 0000000..779e993
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/dto/accountWithdrawalApply/AccountWithdrawalApplyDto.java
@@ -0,0 +1,97 @@
+package com.java110.dto.accountWithdrawalApply;
+
+import com.java110.dto.PageDto;
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @ClassName FloorDto
+ * @Description 璐︽埛鎻愮幇鏁版嵁灞傚皝瑁�
+ * @Author wuxw
+ * @Date 2019/4/24 8:52
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+public class AccountWithdrawalApplyDto extends PageDto implements Serializable {
+
+ private String applyId;
+private String applyUserName;
+private String amount;
+private String context;
+private String acctId;
+private String state;
+private String applyUserTel;
+private String applyUserId;
+
+
+ private Date createTime;
+
+ private String statusCd = "0";
+
+
+ public String getApplyId() {
+ return applyId;
+ }
+public void setApplyId(String applyId) {
+ this.applyId = applyId;
+ }
+public String getApplyUserName() {
+ return applyUserName;
+ }
+public void setApplyUserName(String applyUserName) {
+ this.applyUserName = applyUserName;
+ }
+public String getAmount() {
+ return amount;
+ }
+public void setAmount(String amount) {
+ this.amount = amount;
+ }
+public String getContext() {
+ return context;
+ }
+public void setContext(String context) {
+ this.context = context;
+ }
+public String getAcctId() {
+ return acctId;
+ }
+public void setAcctId(String acctId) {
+ this.acctId = acctId;
+ }
+public String getState() {
+ return state;
+ }
+public void setState(String state) {
+ this.state = state;
+ }
+public String getApplyUserTel() {
+ return applyUserTel;
+ }
+public void setApplyUserTel(String applyUserTel) {
+ this.applyUserTel = applyUserTel;
+ }
+public String getApplyUserId() {
+ return applyUserId;
+ }
+public void setApplyUserId(String applyUserId) {
+ this.applyUserId = applyUserId;
+ }
+
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getStatusCd() {
+ return statusCd;
+ }
+
+ public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+}
diff --git a/java110-bean/src/main/java/com/java110/po/accountWithdrawalApply/AccountWithdrawalApplyPo.java b/java110-bean/src/main/java/com/java110/po/accountWithdrawalApply/AccountWithdrawalApplyPo.java
new file mode 100644
index 0000000..62dcb8b
--- /dev/null
+++ b/java110-bean/src/main/java/com/java110/po/accountWithdrawalApply/AccountWithdrawalApplyPo.java
@@ -0,0 +1,74 @@
+package com.java110.po.accountWithdrawalApply;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class AccountWithdrawalApplyPo implements Serializable {
+
+ private String applyId;
+private String applyUserName;
+private String amount;
+private String context;
+private String acctId;
+private String statusCd = "0";
+private String state = "486";
+private String applyUserTel;
+private String applyUserId;
+public String getApplyId() {
+ return applyId;
+ }
+public void setApplyId(String applyId) {
+ this.applyId = applyId;
+ }
+public String getApplyUserName() {
+ return applyUserName;
+ }
+public void setApplyUserName(String applyUserName) {
+ this.applyUserName = applyUserName;
+ }
+public String getAmount() {
+ return amount;
+ }
+public void setAmount(String amount) {
+ this.amount = amount;
+ }
+public String getContext() {
+ return context;
+ }
+public void setContext(String context) {
+ this.context = context;
+ }
+public String getAcctId() {
+ return acctId;
+ }
+public void setAcctId(String acctId) {
+ this.acctId = acctId;
+ }
+public String getStatusCd() {
+ return statusCd;
+ }
+public void setStatusCd(String statusCd) {
+ this.statusCd = statusCd;
+ }
+public String getState() {
+ return state;
+ }
+public void setState(String state) {
+ this.state = state;
+ }
+public String getApplyUserTel() {
+ return applyUserTel;
+ }
+public void setApplyUserTel(String applyUserTel) {
+ this.applyUserTel = applyUserTel;
+ }
+public String getApplyUserId() {
+ return applyUserId;
+ }
+public void setApplyUserId(String applyUserId) {
+ this.applyUserId = applyUserId;
+ }
+
+
+
+}
diff --git a/java110-db/src/main/resources/mapper/acct/AccountWithdrawalApplyServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/acct/AccountWithdrawalApplyServiceDaoImplMapper.xml
new file mode 100644
index 0000000..ed4bfff
--- /dev/null
+++ b/java110-db/src/main/resources/mapper/acct/AccountWithdrawalApplyServiceDaoImplMapper.xml
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="accountWithdrawalApplyServiceDaoImpl">
+
+
+
+
+
+ <!-- 淇濆瓨璐︽埛鎻愮幇淇℃伅 add by wuxw 2018-07-03 -->
+ <insert id="saveAccountWithdrawalApplyInfo" parameterType="Map">
+ insert into account_withdrawal_apply(
+apply_id,apply_user_name,amount,context,acct_id,state,apply_user_tel,apply_user_id
+) values (
+#{applyId},#{applyUserName},#{amount},#{context},#{acctId},#{state},#{applyUserTel},#{applyUserId}
+)
+ </insert>
+
+
+
+ <!-- 鏌ヨ璐︽埛鎻愮幇淇℃伅 add by wuxw 2018-07-03 -->
+ <select id="getAccountWithdrawalApplyInfo" parameterType="Map" resultType="Map">
+ select t.apply_id,t.apply_id applyId,t.apply_user_name,t.apply_user_name applyUserName,t.amount,t.create_time,t.create_time createTime,t.context,t.acct_id,t.acct_id acctId,t.status_cd,t.status_cd statusCd,t.state,t.apply_user_tel,t.apply_user_tel applyUserTel,t.apply_user_id,t.apply_user_id applyUserId
+from account_withdrawal_apply t
+where 1 =1
+<if test="applyId !=null and applyId != ''">
+ and t.apply_id= #{applyId}
+</if>
+<if test="applyUserName !=null and applyUserName != ''">
+ and t.apply_user_name= #{applyUserName}
+</if>
+<if test="amount !=null and amount != ''">
+ and t.amount= #{amount}
+</if>
+<if test="createTime !=null and createTime != ''">
+ and t.create_time= #{createTime}
+</if>
+<if test="context !=null and context != ''">
+ and t.context= #{context}
+</if>
+<if test="acctId !=null and acctId != ''">
+ and t.acct_id= #{acctId}
+</if>
+<if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+</if>
+<if test="state !=null and state != ''">
+ and t.state= #{state}
+</if>
+<if test="applyUserTel !=null and applyUserTel != ''">
+ and t.apply_user_tel= #{applyUserTel}
+</if>
+<if test="applyUserId !=null and applyUserId != ''">
+ and t.apply_user_id= #{applyUserId}
+</if>
+order by t.create_time desc
+<if test="page != -1 and page != null ">
+ limit #{page}, #{row}
+</if>
+
+ </select>
+
+
+
+
+ <!-- 淇敼璐︽埛鎻愮幇淇℃伅 add by wuxw 2018-07-03 -->
+ <update id="updateAccountWithdrawalApplyInfo" parameterType="Map">
+ update account_withdrawal_apply t set t.status_cd = #{statusCd}
+<if test="newBId != null and newBId != ''">
+,t.b_id = #{newBId}
+</if>
+<if test="applyUserName !=null and applyUserName != ''">
+, t.apply_user_name= #{applyUserName}
+</if>
+<if test="amount !=null and amount != ''">
+, t.amount= #{amount}
+</if>
+<if test="createTime !=null and createTime != ''">
+, t.create_time= #{createTime}
+</if>
+<if test="context !=null and context != ''">
+, t.context= #{context}
+</if>
+<if test="acctId !=null and acctId != ''">
+, t.acct_id= #{acctId}
+</if>
+<if test="state !=null and state != ''">
+, t.state= #{state}
+</if>
+<if test="applyUserTel !=null and applyUserTel != ''">
+, t.apply_user_tel= #{applyUserTel}
+</if>
+<if test="applyUserId !=null and applyUserId != ''">
+, t.apply_user_id= #{applyUserId}
+</if>
+ where 1=1 <if test="applyId !=null and applyId != ''">
+and t.apply_id= #{applyId}
+</if>
+
+ </update>
+
+ <!-- 鏌ヨ璐︽埛鎻愮幇鏁伴噺 add by wuxw 2018-07-03 -->
+ <select id="queryAccountWithdrawalApplysCount" parameterType="Map" resultType="Map">
+ select count(1) count
+from account_withdrawal_apply t
+where 1 =1
+<if test="applyId !=null and applyId != ''">
+ and t.apply_id= #{applyId}
+</if>
+<if test="applyUserName !=null and applyUserName != ''">
+ and t.apply_user_name= #{applyUserName}
+</if>
+<if test="amount !=null and amount != ''">
+ and t.amount= #{amount}
+</if>
+<if test="createTime !=null and createTime != ''">
+ and t.create_time= #{createTime}
+</if>
+<if test="context !=null and context != ''">
+ and t.context= #{context}
+</if>
+<if test="acctId !=null and acctId != ''">
+ and t.acct_id= #{acctId}
+</if>
+<if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+</if>
+<if test="state !=null and state != ''">
+ and t.state= #{state}
+</if>
+<if test="applyUserTel !=null and applyUserTel != ''">
+ and t.apply_user_tel= #{applyUserTel}
+</if>
+<if test="applyUserId !=null and applyUserId != ''">
+ and t.apply_user_id= #{applyUserId}
+</if>
+
+
+ </select>
+
+</mapper>
diff --git a/java110-generator/src/main/resources/newBack/template_1.json b/java110-generator/src/main/resources/newBack/template_1.json
index 273e5f9..6ae8692 100755
--- a/java110-generator/src/main/resources/newBack/template_1.json
+++ b/java110-generator/src/main/resources/newBack/template_1.json
@@ -1,35 +1,45 @@
{
"autoMove": true,
- "id": "pfId",
- "name": "reportOwnerPayFee",
- "desc": "涓氫富缂磋垂鏄庣粏",
- "shareParam": "communityId",
- "shareColumn": "community_id",
- "shareName": "report",
- "tableName": "report_owner_pay_fee",
+ "id": "applyId",
+ "name": "accountWithdrawalApply",
+ "desc": "璐︽埛鎻愮幇",
+ "shareParam": "acctId",
+ "shareColumn": "acct_id",
+ "shareName": "acct",
+ "tableName": "account_withdrawal_apply",
"param": {
- "pfId": "pf_id",
- "pfYear": "pf_year",
- "pfMonth": "pf_month",
- "pfDate": "pf_date",
- "communityId": "community_id",
- "ownerId": "owner_id",
- "ownerName": "owner_name",
- "objName": "obj_name",
- "objType": "obj_type",
- "objId": "obj_id",
- "detailId": "detail_id",
- "configId": "config_id",
- "configName": "config_name",
- "feeId": "fee_id",
- "feeName": "fee_name",
+ "applyId": "apply_id",
+ "acctId": "acct_id",
"amount": "amount",
+ "applyUserId": "apply_user_id",
+ "applyUserName": "apply_user_name",
+ "applyUserTel": "apply_user_tel",
+ "context": "context",
+ "state": "state",
+ "createTime": "create_time",
"statusCd": "status_cd"
},
"required": [
{
- "code": "pfId",
- "msg": "缂磋垂ID涓嶈兘涓虹┖"
+ "code": "acctId",
+ "msg": "璐︽埛ID涓嶈兘涓虹┖"
+ },
+ {
+ "code": "amount",
+ "msg": "鎻愮幇閲戦涓嶈兘涓虹┖"
+ },
+ {
+ "code": "applyUserId",
+ "msg": "鐢宠浜篒D涓嶈兘涓虹┖"
+ },{
+ "code": "applyUserName",
+ "msg": "鐢宠浜哄悕绉颁笉鑳戒负绌�"
+ },{
+ "code": "applyUserTel",
+ "msg": "鐢宠浜虹數璇濅笉鑳戒负绌�"
+ },{
+ "code": "state",
+ "msg": "鐢宠鐘舵�佷笉鑳戒负绌�"
}
]
}
\ No newline at end of file
diff --git a/java110-generator/src/main/resources/web/template_1.json b/java110-generator/src/main/resources/web/template_1.json
index cab1f58..a479892 100755
--- a/java110-generator/src/main/resources/web/template_1.json
+++ b/java110-generator/src/main/resources/web/template_1.json
@@ -1,94 +1,84 @@
{
- "templateName":"閲戝竵璁剧疆",
- "templateCode":"systemGoldSetting",
- "templateKey":"settingId",
- "templateKeyName":"璁剧疆ID",
- "searchCode": "settingId",
- "searchName": "璁剧疆ID",
- "directories": "admin",
+ "templateName":"璐︽埛鎻愮幇",
+ "templateCode":"accountWithdrawalApply",
+ "templateKey":"applyId",
+ "templateKeyName":"鎻愮幇ID",
+ "searchCode": "applyId",
+ "searchName": "鎻愮幇ID",
+ "directories": "acct",
"conditions": [
{
- "name": "娲诲姩鏍囬",
+ "name": "鐢宠浜哄悕绉�",
"inputType": "input",
- "code": "title",
+ "code": "applyUserName",
+ "whereCondition": "equal"
+ },
+ {
+ "name": "鐢宠浜虹數璇�",
+ "inputType": "input",
+ "code": "applyUserTel",
"whereCondition": "equal"
}
],
"columns":[
{
- "code":"goldName",
- "cnCode":"鍚嶇О",
- "desc":"蹇呭~锛岃濉啓鍚嶇О",
+ "code":"amount",
+ "cnCode":"鎻愮幇閲戦",
+ "desc":"蹇呭~锛岃濉啓鎻愮幇閲戦",
"required":true,
"hasDefaultValue":false,
"inputType":"input",
- "limit":"maxin",
- "limitParam":"1,64",
- "limitErrInfo":"鍚嶇О涓嶈兘瓒呰繃64浣�",
+ "limit":"money",
+ "limitParam":"",
+ "limitErrInfo":"鎻愮幇閲戦鏍煎紡閿欒",
"show": true
},
{
- "code": "goldType",
- "cnCode":"绫诲瀷",
+ "code": "applyUserId",
+ "cnCode":"鐢宠浜篒D",
"desc":"蹇呭~锛岃閫夋嫨绫诲瀷",
"required":true,
"hasDefaultValue":false,
- "inputType": "select",
- "selectValue":"1001",
- "selectValueName":"鏅�氶噾甯�",
+ "inputType": "input",
"limit":"num",
"limitParam":"",
"limitErrInfo":"绫诲瀷鏍煎紡閿欒",
"show": true
},
{
- "code": "buyPrice",
- "cnCode":"璐拱浠锋牸",
- "desc":"蹇呭~锛岃濉啓璐拱閲戝竵浠锋牸",
+ "code": "applyUserName",
+ "cnCode":"鐢宠浜哄悕绉�",
+ "desc":"蹇呭~锛岃濉啓鐢宠浜哄悕绉�",
"required":true,
"hasDefaultValue":false,
"inputType": "input",
- "limit":"money",
- "limitParam":"",
- "limitErrInfo":"璐拱浠锋牸鏍煎紡閿欒",
+ "limit":"maxin",
+ "limitParam":"1,20",
+ "limitErrInfo":"鐢宠浜哄悕绉颁笉鑳借秴杩�20浣�",
"show": true
},
{
- "code": "usePrice",
- "cnCode":"浣跨敤浠锋牸",
- "desc":"蹇呭~锛岃濉啓浣跨敤浠锋牸",
+ "code": "applyUserTel",
+ "cnCode":"鐢宠浜虹數璇�",
+ "desc":"蹇呭~锛岃濉啓鐢宠浜虹數璇�",
"required":true,
"hasDefaultValue":false,
"inputType": "input",
- "limit":"money",
+ "limit":"phone",
"limitParam":"",
- "limitErrInfo":"浣跨敤浠锋牸鏍煎紡閿欒",
+ "limitErrInfo":"鐢宠浜虹數璇濇牸寮忛敊璇�",
"show": true
},
{
- "code": "validity",
- "cnCode":"鏈夋晥鏈�",
- "desc":"蹇呭~锛岃濉啓鏈夋晥鏈�",
+ "code": "context",
+ "cnCode":"鐢宠璇存槑",
+ "desc":"璇峰~鍐欑敵璇疯鏄�",
"required":true,
"hasDefaultValue":false,
"inputType": "input",
- "limit":"num",
- "limitParam":"",
- "limitErrInfo":"鏈夋晥鏈熷繀椤讳负鏁存暟",
- "show": true
- },
- {
- "code": "state",
- "cnCode":"鐘舵��",
- "desc":"蹇呭~锛岃閫夋嫨鐘舵��",
- "required":true,
- "hasDefaultValue":false,
- "inputType": "select",
- "selectValue":"001,002",
- "selectValueName":"鍚敤,鍋滅敤",
"limit":"maxLength",
- "limitParam":"12",
- "limitErrInfo":"鐘舵�佹牸寮忛敊璇�",
+ "limitParam":"500",
+ "limitErrInfo":"鐢宠璇存槑涓嶈兘瓒呰繃500",
"show": true
}
]
diff --git a/java110-interface/src/main/java/com/java110/intf/acct/IAccountWithdrawalApplyInnerServiceSMO.java b/java110-interface/src/main/java/com/java110/intf/acct/IAccountWithdrawalApplyInnerServiceSMO.java
new file mode 100644
index 0000000..e8f14d6
--- /dev/null
+++ b/java110-interface/src/main/java/com/java110/intf/acct/IAccountWithdrawalApplyInnerServiceSMO.java
@@ -0,0 +1,53 @@
+package com.java110.intf.acct;
+
+import com.java110.config.feign.FeignConfiguration;
+import com.java110.dto.accountWithdrawalApply.AccountWithdrawalApplyDto;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+
+import java.util.List;
+
+/**
+ * @ClassName IAccountWithdrawalApplyInnerServiceSMO
+ * @Description 璐︽埛鎻愮幇鎺ュ彛绫�
+ * @Author wuxw
+ * @Date 2019/4/24 9:04
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+@FeignClient(name = "community-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/accountWithdrawalApplyApi")
+public interface IAccountWithdrawalApplyInnerServiceSMO {
+
+
+ @RequestMapping(value = "/saveAccountWithdrawalApply", method = RequestMethod.POST)
+ public int saveAccountWithdrawalApply(@RequestBody AccountWithdrawalApplyPo accountWithdrawalApplyPo);
+
+ @RequestMapping(value = "/updateAccountWithdrawalApply", method = RequestMethod.POST)
+ public int updateAccountWithdrawalApply(@RequestBody AccountWithdrawalApplyPo accountWithdrawalApplyPo);
+
+ @RequestMapping(value = "/deleteAccountWithdrawalApply", method = RequestMethod.POST)
+ public int deleteAccountWithdrawalApply(@RequestBody AccountWithdrawalApplyPo accountWithdrawalApplyPo);
+
+ /**
+ * <p>鏌ヨ灏忓尯妤间俊鎭�</p>
+ *
+ *
+ * @param accountWithdrawalApplyDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return AccountWithdrawalApplyDto 瀵硅薄鏁版嵁
+ */
+ @RequestMapping(value = "/queryAccountWithdrawalApplys", method = RequestMethod.POST)
+ List<AccountWithdrawalApplyDto> queryAccountWithdrawalApplys(@RequestBody AccountWithdrawalApplyDto accountWithdrawalApplyDto);
+
+ /**
+ * 鏌ヨ<p>灏忓尯妤�</p>鎬昏褰曟暟
+ *
+ * @param accountWithdrawalApplyDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return 灏忓尯涓嬬殑灏忓尯妤艰褰曟暟
+ */
+ @RequestMapping(value = "/queryAccountWithdrawalApplysCount", method = RequestMethod.POST)
+ int queryAccountWithdrawalApplysCount(@RequestBody AccountWithdrawalApplyDto accountWithdrawalApplyDto);
+}
diff --git a/service-acct/src/main/java/com/java110/acct/api/AccountWithdrawalApplyApi.java b/service-acct/src/main/java/com/java110/acct/api/AccountWithdrawalApplyApi.java
new file mode 100644
index 0000000..30fa237
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/api/AccountWithdrawalApplyApi.java
@@ -0,0 +1,108 @@
+package com.java110.acct.api;
+
+import com.alibaba.fastjson.JSONObject;
+import com.java110.acct.bmo.accountWithdrawalApply.IDeleteAccountWithdrawalApplyBMO;
+import com.java110.acct.bmo.accountWithdrawalApply.IGetAccountWithdrawalApplyBMO;
+import com.java110.acct.bmo.accountWithdrawalApply.ISaveAccountWithdrawalApplyBMO;
+import com.java110.acct.bmo.accountWithdrawalApply.IUpdateAccountWithdrawalApplyBMO;
+import com.java110.dto.accountWithdrawalApply.AccountWithdrawalApplyDto;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import com.java110.utils.util.Assert;
+import com.java110.utils.util.BeanConvertUtil;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.web.bind.annotation.*;
+
+@RestController
+@RequestMapping(value = "/accountWithdrawalApply")
+public class AccountWithdrawalApplyApi {
+
+ @Autowired
+ private ISaveAccountWithdrawalApplyBMO saveAccountWithdrawalApplyBMOImpl;
+ @Autowired
+ private IUpdateAccountWithdrawalApplyBMO updateAccountWithdrawalApplyBMOImpl;
+ @Autowired
+ private IDeleteAccountWithdrawalApplyBMO deleteAccountWithdrawalApplyBMOImpl;
+
+ @Autowired
+ private IGetAccountWithdrawalApplyBMO getAccountWithdrawalApplyBMOImpl;
+
+ /**
+ * 寰俊淇濆瓨娑堟伅妯℃澘
+ * @serviceCode /accountWithdrawalApply/saveAccountWithdrawalApply
+ * @path /app/accountWithdrawalApply/saveAccountWithdrawalApply
+ * @param reqJson
+ * @return
+ */
+ @RequestMapping(value = "/saveAccountWithdrawalApply", method = RequestMethod.POST)
+ public ResponseEntity<String> saveAccountWithdrawalApply(@RequestBody JSONObject reqJson) {
+
+ Assert.hasKeyAndValue(reqJson, "acctId", "璇锋眰鎶ユ枃涓湭鍖呭惈acctId");
+ Assert.hasKeyAndValue(reqJson, "amount", "璇锋眰鎶ユ枃涓湭鍖呭惈amount");
+ Assert.hasKeyAndValue(reqJson, "applyUserId", "璇锋眰鎶ユ枃涓湭鍖呭惈applyUserId");
+ Assert.hasKeyAndValue(reqJson, "applyUserName", "璇锋眰鎶ユ枃涓湭鍖呭惈applyUserName");
+ Assert.hasKeyAndValue(reqJson, "applyUserTel", "璇锋眰鎶ユ枃涓湭鍖呭惈applyUserTel");
+ Assert.hasKeyAndValue(reqJson, "state", "璇锋眰鎶ユ枃涓湭鍖呭惈state");
+
+
+ AccountWithdrawalApplyPo accountWithdrawalApplyPo = BeanConvertUtil.covertBean(reqJson, AccountWithdrawalApplyPo.class);
+ return saveAccountWithdrawalApplyBMOImpl.save(accountWithdrawalApplyPo);
+ }
+
+ /**
+ * 寰俊淇敼娑堟伅妯℃澘
+ * @serviceCode /accountWithdrawalApply/updateAccountWithdrawalApply
+ * @path /app/accountWithdrawalApply/updateAccountWithdrawalApply
+ * @param reqJson
+ * @return
+ */
+ @RequestMapping(value = "/updateAccountWithdrawalApply", method = RequestMethod.POST)
+ public ResponseEntity<String> updateAccountWithdrawalApply(@RequestBody JSONObject reqJson) {
+
+ Assert.hasKeyAndValue(reqJson, "acctId", "璇锋眰鎶ユ枃涓湭鍖呭惈acctId");
+ Assert.hasKeyAndValue(reqJson, "amount", "璇锋眰鎶ユ枃涓湭鍖呭惈amount");
+ Assert.hasKeyAndValue(reqJson, "applyUserId", "璇锋眰鎶ユ枃涓湭鍖呭惈applyUserId");
+ Assert.hasKeyAndValue(reqJson, "applyUserName", "璇锋眰鎶ユ枃涓湭鍖呭惈applyUserName");
+ Assert.hasKeyAndValue(reqJson, "applyUserTel", "璇锋眰鎶ユ枃涓湭鍖呭惈applyUserTel");
+ Assert.hasKeyAndValue(reqJson, "state", "璇锋眰鎶ユ枃涓湭鍖呭惈state");
+ Assert.hasKeyAndValue(reqJson, "applyId", "applyId涓嶈兘涓虹┖");
+
+
+ AccountWithdrawalApplyPo accountWithdrawalApplyPo = BeanConvertUtil.covertBean(reqJson, AccountWithdrawalApplyPo.class);
+ return updateAccountWithdrawalApplyBMOImpl.update(accountWithdrawalApplyPo);
+ }
+
+ /**
+ * 寰俊鍒犻櫎娑堟伅妯℃澘
+ * @serviceCode /accountWithdrawalApply/deleteAccountWithdrawalApply
+ * @path /app/accountWithdrawalApply/deleteAccountWithdrawalApply
+ * @param reqJson
+ * @return
+ */
+ @RequestMapping(value = "/deleteAccountWithdrawalApply", method = RequestMethod.POST)
+ public ResponseEntity<String> deleteAccountWithdrawalApply(@RequestBody JSONObject reqJson) {
+ Assert.hasKeyAndValue(reqJson, "communityId", "灏忓尯ID涓嶈兘涓虹┖");
+
+ Assert.hasKeyAndValue(reqJson, "applyId", "applyId涓嶈兘涓虹┖");
+
+
+ AccountWithdrawalApplyPo accountWithdrawalApplyPo = BeanConvertUtil.covertBean(reqJson, AccountWithdrawalApplyPo.class);
+ return deleteAccountWithdrawalApplyBMOImpl.delete(accountWithdrawalApplyPo);
+ }
+
+ /**
+ * 寰俊鍒犻櫎娑堟伅妯℃澘
+ * @serviceCode /accountWithdrawalApply/queryAccountWithdrawalApply
+ * @path /app/accountWithdrawalApply/queryAccountWithdrawalApply
+ * @param
+ * @return
+ */
+ @RequestMapping(value = "/queryAccountWithdrawalApply", method = RequestMethod.GET)
+ public ResponseEntity<String> queryAccountWithdrawalApply(@RequestParam(value = "page") int page,
+ @RequestParam(value = "row") int row) {
+ AccountWithdrawalApplyDto accountWithdrawalApplyDto = new AccountWithdrawalApplyDto();
+ accountWithdrawalApplyDto.setPage(page);
+ accountWithdrawalApplyDto.setRow(row);
+ return getAccountWithdrawalApplyBMOImpl.get(accountWithdrawalApplyDto);
+ }
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IDeleteAccountWithdrawalApplyBMO.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IDeleteAccountWithdrawalApplyBMO.java
new file mode 100644
index 0000000..e0bcd0f
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IDeleteAccountWithdrawalApplyBMO.java
@@ -0,0 +1,17 @@
+package com.java110.acct.bmo.accountWithdrawalApply;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import org.springframework.http.ResponseEntity;
+
+public interface IDeleteAccountWithdrawalApplyBMO {
+
+
+ /**
+ * 淇敼璐︽埛鎻愮幇
+ * add by wuxw
+ * @param accountWithdrawalApplyPo
+ * @return
+ */
+ ResponseEntity<String> delete(AccountWithdrawalApplyPo accountWithdrawalApplyPo);
+
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IGetAccountWithdrawalApplyBMO.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IGetAccountWithdrawalApplyBMO.java
new file mode 100644
index 0000000..230d1f4
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IGetAccountWithdrawalApplyBMO.java
@@ -0,0 +1,16 @@
+package com.java110.acct.bmo.accountWithdrawalApply;
+import com.java110.dto.accountWithdrawalApply.AccountWithdrawalApplyDto;
+import org.springframework.http.ResponseEntity;
+public interface IGetAccountWithdrawalApplyBMO {
+
+
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇
+ * add by wuxw
+ * @param accountWithdrawalApplyDto
+ * @return
+ */
+ ResponseEntity<String> get(AccountWithdrawalApplyDto accountWithdrawalApplyDto);
+
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/ISaveAccountWithdrawalApplyBMO.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/ISaveAccountWithdrawalApplyBMO.java
new file mode 100644
index 0000000..daae1af
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/ISaveAccountWithdrawalApplyBMO.java
@@ -0,0 +1,17 @@
+package com.java110.acct.bmo.accountWithdrawalApply;
+
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import org.springframework.http.ResponseEntity;
+public interface ISaveAccountWithdrawalApplyBMO {
+
+
+ /**
+ * 娣诲姞璐︽埛鎻愮幇
+ * add by wuxw
+ * @param accountWithdrawalApplyPo
+ * @return
+ */
+ ResponseEntity<String> save(AccountWithdrawalApplyPo accountWithdrawalApplyPo);
+
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IUpdateAccountWithdrawalApplyBMO.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IUpdateAccountWithdrawalApplyBMO.java
new file mode 100644
index 0000000..6d3a065
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/IUpdateAccountWithdrawalApplyBMO.java
@@ -0,0 +1,17 @@
+package com.java110.acct.bmo.accountWithdrawalApply;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import org.springframework.http.ResponseEntity;
+
+public interface IUpdateAccountWithdrawalApplyBMO {
+
+
+ /**
+ * 淇敼璐︽埛鎻愮幇
+ * add by wuxw
+ * @param accountWithdrawalApplyPo
+ * @return
+ */
+ ResponseEntity<String> update(AccountWithdrawalApplyPo accountWithdrawalApplyPo);
+
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/DeleteAccountWithdrawalApplyBMOImpl.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/DeleteAccountWithdrawalApplyBMOImpl.java
new file mode 100644
index 0000000..e38677a
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/DeleteAccountWithdrawalApplyBMOImpl.java
@@ -0,0 +1,36 @@
+package com.java110.acct.bmo.accountWithdrawalApply.impl;
+
+import com.java110.acct.bmo.accountWithdrawalApply.IDeleteAccountWithdrawalApplyBMO;
+import com.java110.core.annotation.Java110Transactional;
+
+import com.java110.intf.acct.IAccountWithdrawalApplyInnerServiceSMO;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+
+
+@Service("deleteAccountWithdrawalApplyBMOImpl")
+public class DeleteAccountWithdrawalApplyBMOImpl implements IDeleteAccountWithdrawalApplyBMO {
+
+ @Autowired
+ private IAccountWithdrawalApplyInnerServiceSMO accountWithdrawalApplyInnerServiceSMOImpl;
+
+ /**
+ * @param accountWithdrawalApplyPo 鏁版嵁
+ * @return 璁㈠崟鏈嶅姟鑳藉鎺ュ彈鐨勬姤鏂�
+ */
+ @Java110Transactional
+ public ResponseEntity<String> delete(AccountWithdrawalApplyPo accountWithdrawalApplyPo) {
+
+ int flag = accountWithdrawalApplyInnerServiceSMOImpl.deleteAccountWithdrawalApply(accountWithdrawalApplyPo);
+
+ if (flag > 0) {
+ return ResultVo.createResponseEntity(ResultVo.CODE_OK, "淇濆瓨鎴愬姛");
+ }
+
+ return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "淇濆瓨澶辫触");
+ }
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/GetAccountWithdrawalApplyBMOImpl.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/GetAccountWithdrawalApplyBMOImpl.java
new file mode 100644
index 0000000..4e02579
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/GetAccountWithdrawalApplyBMOImpl.java
@@ -0,0 +1,46 @@
+package com.java110.acct.bmo.accountWithdrawalApply.impl;
+
+import com.java110.acct.bmo.accountWithdrawalApply.IGetAccountWithdrawalApplyBMO;
+import com.java110.intf.acct.IAccountWithdrawalApplyInnerServiceSMO;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.HttpStatus;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+import com.java110.dto.accountWithdrawalApply.AccountWithdrawalApplyDto;
+
+import java.util.ArrayList;
+import java.util.List;
+
+@Service("getAccountWithdrawalApplyBMOImpl")
+public class GetAccountWithdrawalApplyBMOImpl implements IGetAccountWithdrawalApplyBMO {
+
+ @Autowired
+ private IAccountWithdrawalApplyInnerServiceSMO accountWithdrawalApplyInnerServiceSMOImpl;
+
+ /**
+ *
+ *
+ * @param accountWithdrawalApplyDto
+ * @return 璁㈠崟鏈嶅姟鑳藉鎺ュ彈鐨勬姤鏂�
+ */
+ public ResponseEntity<String> get(AccountWithdrawalApplyDto accountWithdrawalApplyDto) {
+
+
+ int count = accountWithdrawalApplyInnerServiceSMOImpl.queryAccountWithdrawalApplysCount(accountWithdrawalApplyDto);
+
+ List<AccountWithdrawalApplyDto> accountWithdrawalApplyDtos = null;
+ if (count > 0) {
+ accountWithdrawalApplyDtos = accountWithdrawalApplyInnerServiceSMOImpl.queryAccountWithdrawalApplys(accountWithdrawalApplyDto);
+ } else {
+ accountWithdrawalApplyDtos = new ArrayList<>();
+ }
+
+ ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) accountWithdrawalApplyDto.getRow()), count, accountWithdrawalApplyDtos);
+
+ ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK);
+
+ return responseEntity;
+ }
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/SaveAccountWithdrawalApplyBMOImpl.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/SaveAccountWithdrawalApplyBMOImpl.java
new file mode 100644
index 0000000..e63742d
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/SaveAccountWithdrawalApplyBMOImpl.java
@@ -0,0 +1,40 @@
+package com.java110.acct.bmo.accountWithdrawalApply.impl;
+
+import com.java110.acct.bmo.accountWithdrawalApply.ISaveAccountWithdrawalApplyBMO;
+import com.java110.core.annotation.Java110Transactional;
+import com.java110.core.factory.GenerateCodeFactory;
+
+import com.java110.intf.acct.IAccountWithdrawalApplyInnerServiceSMO;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+import java.util.List;
+
+@Service("saveAccountWithdrawalApplyBMOImpl")
+public class SaveAccountWithdrawalApplyBMOImpl implements ISaveAccountWithdrawalApplyBMO {
+
+ @Autowired
+ private IAccountWithdrawalApplyInnerServiceSMO accountWithdrawalApplyInnerServiceSMOImpl;
+
+ /**
+ * 娣诲姞灏忓尯淇℃伅
+ *
+ * @param accountWithdrawalApplyPo
+ * @return 璁㈠崟鏈嶅姟鑳藉鎺ュ彈鐨勬姤鏂�
+ */
+ @Java110Transactional
+ public ResponseEntity<String> save(AccountWithdrawalApplyPo accountWithdrawalApplyPo) {
+
+ accountWithdrawalApplyPo.setApplyId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_applyId));
+ int flag = accountWithdrawalApplyInnerServiceSMOImpl.saveAccountWithdrawalApply(accountWithdrawalApplyPo);
+
+ if (flag > 0) {
+ return ResultVo.createResponseEntity(ResultVo.CODE_OK, "淇濆瓨鎴愬姛");
+ }
+
+ return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "淇濆瓨澶辫触");
+ }
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/UpdateAccountWithdrawalApplyBMOImpl.java b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/UpdateAccountWithdrawalApplyBMOImpl.java
new file mode 100644
index 0000000..cdca7ea
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/bmo/accountWithdrawalApply/impl/UpdateAccountWithdrawalApplyBMOImpl.java
@@ -0,0 +1,38 @@
+package com.java110.acct.bmo.accountWithdrawalApply.impl;
+
+import com.java110.acct.bmo.accountWithdrawalApply.IUpdateAccountWithdrawalApplyBMO;
+import com.java110.core.annotation.Java110Transactional;
+
+import com.java110.intf.acct.IAccountWithdrawalApplyInnerServiceSMO;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import com.java110.vo.ResultVo;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
+import org.springframework.stereotype.Service;
+
+
+@Service("updateAccountWithdrawalApplyBMOImpl")
+public class UpdateAccountWithdrawalApplyBMOImpl implements IUpdateAccountWithdrawalApplyBMO {
+
+ @Autowired
+ private IAccountWithdrawalApplyInnerServiceSMO accountWithdrawalApplyInnerServiceSMOImpl;
+
+ /**
+ *
+ *
+ * @param accountWithdrawalApplyPo
+ * @return 璁㈠崟鏈嶅姟鑳藉鎺ュ彈鐨勬姤鏂�
+ */
+ @Java110Transactional
+ public ResponseEntity<String> update(AccountWithdrawalApplyPo accountWithdrawalApplyPo) {
+
+ int flag = accountWithdrawalApplyInnerServiceSMOImpl.updateAccountWithdrawalApply(accountWithdrawalApplyPo);
+
+ if (flag > 0) {
+ return ResultVo.createResponseEntity(ResultVo.CODE_OK, "淇濆瓨鎴愬姛");
+ }
+
+ return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "淇濆瓨澶辫触");
+ }
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/dao/IAccountWithdrawalApplyServiceDao.java b/service-acct/src/main/java/com/java110/acct/dao/IAccountWithdrawalApplyServiceDao.java
new file mode 100644
index 0000000..624ab28
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/dao/IAccountWithdrawalApplyServiceDao.java
@@ -0,0 +1,61 @@
+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;
+
+/**
+ * 璐︽埛鎻愮幇缁勪欢鍐呴儴涔嬮棿浣跨敤锛屾病鏈夌粰澶栧洿绯荤粺鎻愪緵鏈嶅姟鑳藉姏
+ * 璐︽埛鎻愮幇鏈嶅姟鎺ュ彛绫伙紝瑕佹眰鍏ㄩ儴浠ュ瓧绗︿覆浼犺緭锛屾柟渚垮井鏈嶅姟鍖�
+ * 鏂板缓瀹㈡埛锛屼慨鏀瑰鎴凤紝鍒犻櫎瀹㈡埛锛屾煡璇㈠鎴风瓑鍔熻兘
+ *
+ * Created by wuxw on 2016/12/27.
+ */
+public interface IAccountWithdrawalApplyServiceDao {
+
+
+ /**
+ * 淇濆瓨 璐︽埛鎻愮幇淇℃伅
+ * @param info
+ * @throws DAOException DAO寮傚父
+ */
+ void saveAccountWithdrawalApplyInfo(Map info) throws DAOException;
+
+
+
+
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇淇℃伅锛坕nstance杩囩▼锛�
+ * 鏍规嵁bId 鏌ヨ璐︽埛鎻愮幇淇℃伅
+ * @param info bId 淇℃伅
+ * @return 璐︽埛鎻愮幇淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ List<Map> getAccountWithdrawalApplyInfo(Map info) throws DAOException;
+
+
+
+ /**
+ * 淇敼璐︽埛鎻愮幇淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ void updateAccountWithdrawalApplyInfo(Map info) throws DAOException;
+
+
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇鎬绘暟
+ *
+ * @param info 璐︽埛鎻愮幇淇℃伅
+ * @return 璐︽埛鎻愮幇鏁伴噺
+ */
+ int queryAccountWithdrawalApplysCount(Map info);
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java b/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java
new file mode 100644
index 0000000..9df2246
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/dao/impl/AccountWithdrawalApplyServiceDaoImpl.java
@@ -0,0 +1,98 @@
+package com.java110.acct.dao.impl;
+
+import com.alibaba.fastjson.JSONObject;
+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.IAccountWithdrawalApplyServiceDao;
+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;
+
+/**
+ * 璐︽埛鎻愮幇鏈嶅姟 涓庢暟鎹簱浜や簰
+ * Created by wuxw on 2017/4/5.
+ */
+@Service("accountWithdrawalApplyServiceDaoImpl")
+//@Transactional
+public class AccountWithdrawalApplyServiceDaoImpl extends BaseServiceDao implements IAccountWithdrawalApplyServiceDao {
+
+ private static Logger logger = LoggerFactory.getLogger(AccountWithdrawalApplyServiceDaoImpl.class);
+
+
+
+
+
+ /**
+ * 淇濆瓨璐︽埛鎻愮幇淇℃伅 鍒� instance
+ * @param info bId 淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public void saveAccountWithdrawalApplyInfo(Map info) throws DAOException {
+ logger.debug("淇濆瓨璐︽埛鎻愮幇淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.insert("accountWithdrawalApplyServiceDaoImpl.saveAccountWithdrawalApplyInfo",info);
+
+ if(saveFlag < 1){
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇濆瓨璐︽埛鎻愮幇淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+ }
+ }
+
+
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇淇℃伅锛坕nstance锛�
+ * @param info bId 淇℃伅
+ * @return List<Map>
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public List<Map> getAccountWithdrawalApplyInfo(Map info) throws DAOException {
+ logger.debug("鏌ヨ璐︽埛鎻愮幇淇℃伅 鍏ュ弬 info : {}",info);
+
+ List<Map> businessAccountWithdrawalApplyInfos = sqlSessionTemplate.selectList("accountWithdrawalApplyServiceDaoImpl.getAccountWithdrawalApplyInfo",info);
+
+ return businessAccountWithdrawalApplyInfos;
+ }
+
+
+ /**
+ * 淇敼璐︽埛鎻愮幇淇℃伅
+ * @param info 淇敼淇℃伅
+ * @throws DAOException DAO寮傚父
+ */
+ @Override
+ public void updateAccountWithdrawalApplyInfo(Map info) throws DAOException {
+ logger.debug("淇敼璐︽埛鎻愮幇淇℃伅Instance 鍏ュ弬 info : {}",info);
+
+ int saveFlag = sqlSessionTemplate.update("accountWithdrawalApplyServiceDaoImpl.updateAccountWithdrawalApplyInfo",info);
+
+ if(saveFlag < 1){
+ throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"淇敼璐︽埛鎻愮幇淇℃伅Instance鏁版嵁澶辫触锛�"+ JSONObject.toJSONString(info));
+ }
+ }
+
+ /**
+ * 鏌ヨ璐︽埛鎻愮幇鏁伴噺
+ * @param info 璐︽埛鎻愮幇淇℃伅
+ * @return 璐︽埛鎻愮幇鏁伴噺
+ */
+ @Override
+ public int queryAccountWithdrawalApplysCount(Map info) {
+ logger.debug("鏌ヨ璐︽埛鎻愮幇鏁版嵁 鍏ュ弬 info : {}",info);
+
+ List<Map> businessAccountWithdrawalApplyInfos = sqlSessionTemplate.selectList("accountWithdrawalApplyServiceDaoImpl.queryAccountWithdrawalApplysCount", info);
+ if (businessAccountWithdrawalApplyInfos.size() < 1) {
+ return 0;
+ }
+
+ return Integer.parseInt(businessAccountWithdrawalApplyInfos.get(0).get("count").toString());
+ }
+
+
+}
diff --git a/service-acct/src/main/java/com/java110/acct/smo/impl/AccountWithdrawalApplyInnerServiceSMOImpl.java b/service-acct/src/main/java/com/java110/acct/smo/impl/AccountWithdrawalApplyInnerServiceSMOImpl.java
new file mode 100644
index 0000000..6aa102d
--- /dev/null
+++ b/service-acct/src/main/java/com/java110/acct/smo/impl/AccountWithdrawalApplyInnerServiceSMOImpl.java
@@ -0,0 +1,83 @@
+package com.java110.acct.smo.impl;
+
+
+import com.java110.acct.dao.IAccountWithdrawalApplyServiceDao;
+import com.java110.dto.accountWithdrawalApply.AccountWithdrawalApplyDto;
+import com.java110.intf.acct.IAccountWithdrawalApplyInnerServiceSMO;
+import com.java110.po.accountWithdrawalApply.AccountWithdrawalApplyPo;
+import com.java110.utils.util.BeanConvertUtil;
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.PageDto;
+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;
+
+/**
+ * @ClassName FloorInnerServiceSMOImpl
+ * @Description 璐︽埛鎻愮幇鍐呴儴鏈嶅姟瀹炵幇绫�
+ * @Author wuxw
+ * @Date 2019/4/24 9:20
+ * @Version 1.0
+ * add by wuxw 2019/4/24
+ **/
+@RestController
+public class AccountWithdrawalApplyInnerServiceSMOImpl extends BaseServiceSMO implements IAccountWithdrawalApplyInnerServiceSMO {
+
+ @Autowired
+ private IAccountWithdrawalApplyServiceDao accountWithdrawalApplyServiceDaoImpl;
+
+
+ @Override
+ public int saveAccountWithdrawalApply(@RequestBody AccountWithdrawalApplyPo accountWithdrawalApplyPo) {
+ int saveFlag = 1;
+ accountWithdrawalApplyServiceDaoImpl.saveAccountWithdrawalApplyInfo(BeanConvertUtil.beanCovertMap(accountWithdrawalApplyPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int updateAccountWithdrawalApply(@RequestBody AccountWithdrawalApplyPo accountWithdrawalApplyPo) {
+ int saveFlag = 1;
+ accountWithdrawalApplyServiceDaoImpl.updateAccountWithdrawalApplyInfo(BeanConvertUtil.beanCovertMap(accountWithdrawalApplyPo));
+ return saveFlag;
+ }
+
+ @Override
+ public int deleteAccountWithdrawalApply(@RequestBody AccountWithdrawalApplyPo accountWithdrawalApplyPo) {
+ int saveFlag = 1;
+ accountWithdrawalApplyPo.setStatusCd("1");
+ accountWithdrawalApplyServiceDaoImpl.updateAccountWithdrawalApplyInfo(BeanConvertUtil.beanCovertMap(accountWithdrawalApplyPo));
+ return saveFlag;
+ }
+
+ @Override
+ public List<AccountWithdrawalApplyDto> queryAccountWithdrawalApplys(@RequestBody AccountWithdrawalApplyDto accountWithdrawalApplyDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = accountWithdrawalApplyDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ accountWithdrawalApplyDto.setPage((page - 1) * accountWithdrawalApplyDto.getRow());
+ }
+
+ List<AccountWithdrawalApplyDto> accountWithdrawalApplys = BeanConvertUtil.covertBeanList(accountWithdrawalApplyServiceDaoImpl.getAccountWithdrawalApplyInfo(BeanConvertUtil.beanCovertMap(accountWithdrawalApplyDto)), AccountWithdrawalApplyDto.class);
+
+ return accountWithdrawalApplys;
+ }
+
+
+ @Override
+ public int queryAccountWithdrawalApplysCount(@RequestBody AccountWithdrawalApplyDto accountWithdrawalApplyDto) {
+ return accountWithdrawalApplyServiceDaoImpl.queryAccountWithdrawalApplysCount(BeanConvertUtil.beanCovertMap(accountWithdrawalApplyDto)); }
+
+ public IAccountWithdrawalApplyServiceDao getAccountWithdrawalApplyServiceDaoImpl() {
+ return accountWithdrawalApplyServiceDaoImpl;
+ }
+
+ public void setAccountWithdrawalApplyServiceDaoImpl(IAccountWithdrawalApplyServiceDao accountWithdrawalApplyServiceDaoImpl) {
+ this.accountWithdrawalApplyServiceDaoImpl = accountWithdrawalApplyServiceDaoImpl;
+ }
+}
--
Gitblit v1.8.0