Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
| New file |
| | |
| | | package com.java110.dto.accountBond; |
| | | |
| | | 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 AccountBondDto extends PageDto implements Serializable { |
| | | |
| | | private String amount; |
| | | private String bondId; |
| | | private String bondMonth; |
| | | private String bondType; |
| | | private String objId; |
| | | private String remark; |
| | | private String bondName; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getAmount() { |
| | | return amount; |
| | | } |
| | | public void setAmount(String amount) { |
| | | this.amount = amount; |
| | | } |
| | | public String getBondId() { |
| | | return bondId; |
| | | } |
| | | public void setBondId(String bondId) { |
| | | this.bondId = bondId; |
| | | } |
| | | public String getBondMonth() { |
| | | return bondMonth; |
| | | } |
| | | public void setBondMonth(String bondMonth) { |
| | | this.bondMonth = bondMonth; |
| | | } |
| | | public String getBondType() { |
| | | return bondType; |
| | | } |
| | | public void setBondType(String bondType) { |
| | | this.bondType = bondType; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getBondName() { |
| | | return bondName; |
| | | } |
| | | public void setBondName(String bondName) { |
| | | this.bondName = bondName; |
| | | } |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.accountBondObj; |
| | | |
| | | 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 AccountBondObjDto extends PageDto implements Serializable { |
| | | |
| | | private String bondId; |
| | | private String bobjId; |
| | | private String objId; |
| | | private String bondType; |
| | | private String receivableAmount; |
| | | private String remark; |
| | | private String startTime; |
| | | private String receivedAmount; |
| | | private String state; |
| | | private String endTime; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getBondId() { |
| | | return bondId; |
| | | } |
| | | public void setBondId(String bondId) { |
| | | this.bondId = bondId; |
| | | } |
| | | public String getBobjId() { |
| | | return bobjId; |
| | | } |
| | | public void setBobjId(String bobjId) { |
| | | this.bobjId = bobjId; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getBondType() { |
| | | return bondType; |
| | | } |
| | | public void setBondType(String bondType) { |
| | | this.bondType = bondType; |
| | | } |
| | | public String getReceivableAmount() { |
| | | return receivableAmount; |
| | | } |
| | | public void setReceivableAmount(String receivableAmount) { |
| | | this.receivableAmount = receivableAmount; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getReceivedAmount() { |
| | | return receivedAmount; |
| | | } |
| | | public void setReceivedAmount(String receivedAmount) { |
| | | this.receivedAmount = receivedAmount; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.dto.accountBondObjDetail; |
| | | |
| | | 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 AccountBondObjDetailDto extends PageDto implements Serializable { |
| | | |
| | | private String bobjId; |
| | | private String objId; |
| | | private String bondType; |
| | | private String detailId; |
| | | private String receivableAmount; |
| | | private String remark; |
| | | private String startTime; |
| | | private String receivedAmount; |
| | | private String state; |
| | | private String endTime; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getBobjId() { |
| | | return bobjId; |
| | | } |
| | | public void setBobjId(String bobjId) { |
| | | this.bobjId = bobjId; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getBondType() { |
| | | return bondType; |
| | | } |
| | | public void setBondType(String bondType) { |
| | | this.bondType = bondType; |
| | | } |
| | | public String getDetailId() { |
| | | return detailId; |
| | | } |
| | | public void setDetailId(String detailId) { |
| | | this.detailId = detailId; |
| | | } |
| | | public String getReceivableAmount() { |
| | | return receivableAmount; |
| | | } |
| | | public void setReceivableAmount(String receivableAmount) { |
| | | this.receivableAmount = receivableAmount; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getReceivedAmount() { |
| | | return receivedAmount; |
| | | } |
| | | public void setReceivedAmount(String receivedAmount) { |
| | | this.receivedAmount = receivedAmount; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.po.accountBond; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class AccountBondPo implements Serializable { |
| | | |
| | | private String amount; |
| | | private String bondId; |
| | | private String bondMonth; |
| | | private String bondType; |
| | | private String objId; |
| | | private String remark; |
| | | private String statusCd = "0"; |
| | | private String bondName; |
| | | public String getAmount() { |
| | | return amount; |
| | | } |
| | | public void setAmount(String amount) { |
| | | this.amount = amount; |
| | | } |
| | | public String getBondId() { |
| | | return bondId; |
| | | } |
| | | public void setBondId(String bondId) { |
| | | this.bondId = bondId; |
| | | } |
| | | public String getBondMonth() { |
| | | return bondMonth; |
| | | } |
| | | public void setBondMonth(String bondMonth) { |
| | | this.bondMonth = bondMonth; |
| | | } |
| | | public String getBondType() { |
| | | return bondType; |
| | | } |
| | | public void setBondType(String bondType) { |
| | | this.bondType = bondType; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getBondName() { |
| | | return bondName; |
| | | } |
| | | public void setBondName(String bondName) { |
| | | this.bondName = bondName; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.po.accountBondObj; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class AccountBondObjPo implements Serializable { |
| | | |
| | | private String bondId; |
| | | private String bobjId; |
| | | private String objId; |
| | | private String bondType; |
| | | private String receivableAmount; |
| | | private String remark; |
| | | private String startTime; |
| | | private String statusCd = "0"; |
| | | private String receivedAmount; |
| | | private String state; |
| | | private String endTime; |
| | | public String getBondId() { |
| | | return bondId; |
| | | } |
| | | public void setBondId(String bondId) { |
| | | this.bondId = bondId; |
| | | } |
| | | public String getBobjId() { |
| | | return bobjId; |
| | | } |
| | | public void setBobjId(String bobjId) { |
| | | this.bobjId = bobjId; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getBondType() { |
| | | return bondType; |
| | | } |
| | | public void setBondType(String bondType) { |
| | | this.bondType = bondType; |
| | | } |
| | | public String getReceivableAmount() { |
| | | return receivableAmount; |
| | | } |
| | | public void setReceivableAmount(String receivableAmount) { |
| | | this.receivableAmount = receivableAmount; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getReceivedAmount() { |
| | | return receivedAmount; |
| | | } |
| | | public void setReceivedAmount(String receivedAmount) { |
| | | this.receivedAmount = receivedAmount; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.po.accountBondObjDetail; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class AccountBondObjDetailPo implements Serializable { |
| | | |
| | | private String bobjId; |
| | | private String objId; |
| | | private String bondType; |
| | | private String detailId; |
| | | private String receivableAmount; |
| | | private String remark; |
| | | private String startTime; |
| | | private String statusCd = "0"; |
| | | private String receivedAmount; |
| | | private String state; |
| | | private String endTime; |
| | | public String getBobjId() { |
| | | return bobjId; |
| | | } |
| | | public void setBobjId(String bobjId) { |
| | | this.bobjId = bobjId; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getBondType() { |
| | | return bondType; |
| | | } |
| | | public void setBondType(String bondType) { |
| | | this.bondType = bondType; |
| | | } |
| | | public String getDetailId() { |
| | | return detailId; |
| | | } |
| | | public void setDetailId(String detailId) { |
| | | this.detailId = detailId; |
| | | } |
| | | public String getReceivableAmount() { |
| | | return receivableAmount; |
| | | } |
| | | public void setReceivableAmount(String receivableAmount) { |
| | | this.receivableAmount = receivableAmount; |
| | | } |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getReceivedAmount() { |
| | | return receivedAmount; |
| | | } |
| | | public void setReceivedAmount(String receivedAmount) { |
| | | this.receivedAmount = receivedAmount; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | public static final String CODE_PREFIX_rssId = "33"; |
| | | public static final String CODE_PREFIX_pfId = "34"; |
| | | public static final String CODE_PREFIX_bankId = "74"; |
| | | public static final String CODE_PREFIX_bondId = "76"; |
| | | public static final String CODE_PREFIX_bobjId = "77"; |
| | | |
| | | |
| | | |
| New file |
| | |
| | | <?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="accountBondObjDetailServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存保证金明细信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveAccountBondObjDetailInfo" parameterType="Map"> |
| | | insert into account_bond_obj_detail( |
| | | bobj_id,obj_id,bond_type,detail_id,receivable_amount,remark,start_time,received_amount,state,end_time |
| | | ) values ( |
| | | #{bobjId},#{objId},#{bondType},#{detailId},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询保证金明细信息 add by wuxw 2018-07-03 --> |
| | | <select id="getAccountBondObjDetailInfo" parameterType="Map" resultType="Map"> |
| | | select t.bobj_id,t.bobj_id bobjId,t.create_time,t.create_time createTime,t.obj_id,t.obj_id objId,t.bond_type,t.bond_type bondType,t.detail_id,t.detail_id detailId,t.receivable_amount,t.receivable_amount receivableAmount,t.remark,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.state,t.end_time,t.end_time endTime |
| | | from account_bond_obj_detail t |
| | | where 1 =1 |
| | | <if test="bobjId !=null and bobjId != ''"> |
| | | and t.bobj_id= #{bobjId} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | and t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="receivableAmount !=null and receivableAmount != ''"> |
| | | and t.receivable_amount= #{receivableAmount} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="receivedAmount !=null and receivedAmount != ''"> |
| | | and t.received_amount= #{receivedAmount} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </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="updateAccountBondObjDetailInfo" parameterType="Map"> |
| | | update account_bond_obj_detail t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="bobjId !=null and bobjId != ''"> |
| | | , t.bobj_id= #{bobjId} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | , t.create_time= #{createTime} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | , t.obj_id= #{objId} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | , t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="receivableAmount !=null and receivableAmount != ''"> |
| | | , t.receivable_amount= #{receivableAmount} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | , t.start_time= #{startTime} |
| | | </if> |
| | | <if test="receivedAmount !=null and receivedAmount != ''"> |
| | | , t.received_amount= #{receivedAmount} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | , t.end_time= #{endTime} |
| | | </if> |
| | | where 1=1 <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询保证金明细数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryAccountBondObjDetailsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from account_bond_obj_detail t |
| | | where 1 =1 |
| | | <if test="bobjId !=null and bobjId != ''"> |
| | | and t.bobj_id= #{bobjId} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | and t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="receivableAmount !=null and receivableAmount != ''"> |
| | | and t.receivable_amount= #{receivableAmount} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="receivedAmount !=null and receivedAmount != ''"> |
| | | and t.received_amount= #{receivedAmount} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?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="accountBondObjServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存保证金对象信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveAccountBondObjInfo" parameterType="Map"> |
| | | insert into account_bond_obj( |
| | | bond_id,bobj_id,obj_id,bond_type,receivable_amount,remark,start_time,received_amount,state,end_time |
| | | ) values ( |
| | | #{bondId},#{bobjId},#{objId},#{bondType},#{receivableAmount},#{remark},#{startTime},#{receivedAmount},#{state},#{endTime} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询保证金对象信息 add by wuxw 2018-07-03 --> |
| | | <select id="getAccountBondObjInfo" parameterType="Map" resultType="Map"> |
| | | select t.bond_id,t.bond_id bondId,t.bobj_id,t.bobj_id bobjId,t.create_time,t.create_time createTime,t.obj_id,t.obj_id objId,t.bond_type,t.bond_type bondType,t.receivable_amount,t.receivable_amount receivableAmount,t.remark,t.start_time,t.start_time startTime,t.status_cd,t.status_cd statusCd,t.received_amount,t.received_amount receivedAmount,t.state,t.end_time,t.end_time endTime |
| | | from account_bond_obj t |
| | | where 1 =1 |
| | | <if test="bondId !=null and bondId != ''"> |
| | | and t.bond_id= #{bondId} |
| | | </if> |
| | | <if test="bobjId !=null and bobjId != ''"> |
| | | and t.bobj_id= #{bobjId} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | and t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="receivableAmount !=null and receivableAmount != ''"> |
| | | and t.receivable_amount= #{receivableAmount} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="receivedAmount !=null and receivedAmount != ''"> |
| | | and t.received_amount= #{receivedAmount} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </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="updateAccountBondObjInfo" parameterType="Map"> |
| | | update account_bond_obj t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="bondId !=null and bondId != ''"> |
| | | , t.bond_id= #{bondId} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | , t.create_time= #{createTime} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | , t.obj_id= #{objId} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | , t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="receivableAmount !=null and receivableAmount != ''"> |
| | | , t.receivable_amount= #{receivableAmount} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | , t.start_time= #{startTime} |
| | | </if> |
| | | <if test="receivedAmount !=null and receivedAmount != ''"> |
| | | , t.received_amount= #{receivedAmount} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | , t.end_time= #{endTime} |
| | | </if> |
| | | where 1=1 <if test="bobjId !=null and bobjId != ''"> |
| | | and t.bobj_id= #{bobjId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询保证金对象数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryAccountBondObjsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from account_bond_obj t |
| | | where 1 =1 |
| | | <if test="bondId !=null and bondId != ''"> |
| | | and t.bond_id= #{bondId} |
| | | </if> |
| | | <if test="bobjId !=null and bobjId != ''"> |
| | | and t.bobj_id= #{bobjId} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | and t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="receivableAmount !=null and receivableAmount != ''"> |
| | | and t.receivable_amount= #{receivableAmount} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="receivedAmount !=null and receivedAmount != ''"> |
| | | and t.received_amount= #{receivedAmount} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?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="accountBondServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存保证金信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveAccountBondInfo" parameterType="Map"> |
| | | insert into account_bond( |
| | | amount,bond_id,bond_month,bond_type,obj_id,remark,bond_name |
| | | ) values ( |
| | | #{amount},#{bondId},#{bondMonth},#{bondType},#{objId},#{remark},#{bondName} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询保证金信息 add by wuxw 2018-07-03 --> |
| | | <select id="getAccountBondInfo" parameterType="Map" resultType="Map"> |
| | | select t.amount,t.bond_id,t.bond_id bondId,t.bond_month,t.bond_month bondMonth,t.create_time,t.create_time createTime,t.bond_type,t.bond_type bondType,t.obj_id,t.obj_id objId,t.remark,t.status_cd,t.status_cd statusCd,t.bond_name,t.bond_name bondName |
| | | from account_bond t |
| | | where 1 =1 |
| | | <if test="amount !=null and amount != ''"> |
| | | and t.amount= #{amount} |
| | | </if> |
| | | <if test="bondId !=null and bondId != ''"> |
| | | and t.bond_id= #{bondId} |
| | | </if> |
| | | <if test="bondMonth !=null and bondMonth != ''"> |
| | | and t.bond_month= #{bondMonth} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | and t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="bondName !=null and bondName != ''"> |
| | | and t.bond_name= #{bondName} |
| | | </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="updateAccountBondInfo" parameterType="Map"> |
| | | update account_bond t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="amount !=null and amount != ''"> |
| | | , t.amount= #{amount} |
| | | </if> |
| | | <if test="bondMonth !=null and bondMonth != ''"> |
| | | , t.bond_month= #{bondMonth} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | , t.create_time= #{createTime} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | , t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | , t.obj_id= #{objId} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="bondName !=null and bondName != ''"> |
| | | , t.bond_name= #{bondName} |
| | | </if> |
| | | where 1=1 <if test="bondId !=null and bondId != ''"> |
| | | and t.bond_id= #{bondId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询保证金数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryAccountBondsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from account_bond t |
| | | where 1 =1 |
| | | <if test="amount !=null and amount != ''"> |
| | | and t.amount= #{amount} |
| | | </if> |
| | | <if test="bondId !=null and bondId != ''"> |
| | | and t.bond_id= #{bondId} |
| | | </if> |
| | | <if test="bondMonth !=null and bondMonth != ''"> |
| | | and t.bond_month= #{bondMonth} |
| | | </if> |
| | | <if test="createTime !=null and createTime != ''"> |
| | | and t.create_time= #{createTime} |
| | | </if> |
| | | <if test="bondType !=null and bondType != ''"> |
| | | and t.bond_type= #{bondType} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | and t.remark= #{remark} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="bondName !=null and bondName != ''"> |
| | | and t.bond_name= #{bondName} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | { |
| | | "autoMove": true, |
| | | "id": "bankId", |
| | | "name": "accountBank", |
| | | "desc": "开户行", |
| | | "shareParam": "shopId", |
| | | "shareColumn": "shop_id", |
| | | "id": "detailId", |
| | | "name": "accountBondObjDetail", |
| | | "desc": "保证金明细", |
| | | "shareParam": "detailId", |
| | | "shareColumn": "detail_id", |
| | | "shareName": "acct", |
| | | "tableName": "account_bank", |
| | | "tableName": "account_bond_obj_detail", |
| | | "param": { |
| | | "bankId": "bank_id", |
| | | "bankCode": "bank_code", |
| | | "personName": "person_name", |
| | | "personTel": "person_tel", |
| | | "bankName": "bank_name", |
| | | "shopId": "shop_id", |
| | | "detailId": "detail_id", |
| | | "bobjId": "bobj_id", |
| | | "objId": "obj_id", |
| | | "bondType": "bond_type", |
| | | "receivableAmount": "receivable_amount", |
| | | "receivedAmount": "received_amount", |
| | | "remark": "remark", |
| | | "state": "state", |
| | | "startTime": "start_time", |
| | | "endTime": "end_time", |
| | | "createTime": "create_time", |
| | | "statusCd": "status_cd" |
| | | }, |
| | | "required": [ |
| | | { |
| | | "code": "bankCode", |
| | | "msg": "账号不能为空" |
| | | "code": "bobjId", |
| | | "msg": "保证金ID不能为空" |
| | | }, |
| | | { |
| | | "code": "personName", |
| | | "msg": "持卡人名称不能为空" |
| | | "code": "objId", |
| | | "msg": "保证对象ID类型不能为空" |
| | | }, |
| | | { |
| | | "code": "bankName", |
| | | "msg": "开户行不能为空" |
| | | "code": "bondType", |
| | | "msg": "保证对象类型不能为空" |
| | | },{ |
| | | "code": "shopId", |
| | | "msg": "商铺ID不能为空" |
| | | "code": "receivableAmount", |
| | | "msg": "应收金额不能为空" |
| | | },{ |
| | | "code": "receivedAmount", |
| | | "msg": "实收金额不能为空" |
| | | }, |
| | | { |
| | | "code": "state", |
| | | "msg": "状态不能为空" |
| | | },{ |
| | | "code": "startTime", |
| | | "msg": "开始时间不能为空" |
| | | },{ |
| | | "code": "endTime", |
| | | "msg": "结束时间不能为空" |
| | | } |
| | | ] |
| | | } |
| | |
| | | { |
| | | "templateName":"开户行", |
| | | "templateCode":"accountBank", |
| | | "templateKey":"bankId", |
| | | "templateKeyName":"银行ID", |
| | | "searchCode": "bankId", |
| | | "searchName": "银行ID", |
| | | "templateName":"保证金对象", |
| | | "templateCode":"accountBondObj", |
| | | "templateKey":"bobjId", |
| | | "templateKeyName":"保证金对象ID", |
| | | "searchCode": "bobjId", |
| | | "searchName": "保证金对象ID", |
| | | "directories": "acct", |
| | | "conditions": [ |
| | | ], |
| | | "columns":[ |
| | | { |
| | | "code":"bankCode", |
| | | "cnCode":"银行账号", |
| | | "desc":"必填,请填写银行账号", |
| | | "code":"bondId", |
| | | "cnCode":"保证金", |
| | | "desc":"必填,请填写保证金", |
| | | "required":true, |
| | | "hasDefaultValue":false, |
| | | "inputType":"input", |
| | | "limit":"maxin", |
| | | "limitParam":"1,20", |
| | | "limitErrInfo":"银行账号超长了", |
| | | "limitErrInfo":"保证金名称超长了", |
| | | "show": true |
| | | }, |
| | | { |
| | | "code": "personName", |
| | | "cnCode":"持卡人", |
| | | "desc":"必填,请填写持卡人", |
| | | "code": "objId", |
| | | "cnCode":"保证金对象ID", |
| | | "desc":"必填,请填写保证金对象ID", |
| | | "required":true, |
| | | "hasDefaultValue":false, |
| | | "inputType": "input", |
| | | "limit":"maxLength", |
| | | "limitParam":"20", |
| | | "limitErrInfo":"持卡人名称不能超过20位", |
| | | "limit":"num", |
| | | "limitParam":"", |
| | | "limitErrInfo":"保证金金额格式有误", |
| | | "show": true |
| | | }, |
| | | { |
| | | "code": "personTel", |
| | | "cnCode":"手机号", |
| | | "desc":"必填,请填写手机号", |
| | | "code": "receivableAmount", |
| | | "cnCode":"应收金额", |
| | | "desc":"必填,请填写应收金额", |
| | | "required":false, |
| | | "hasDefaultValue":false, |
| | | "inputType": "input", |
| | | "limit":"phone", |
| | | "limit":"num", |
| | | "limitParam":"", |
| | | "limitErrInfo":"电话格式错误", |
| | | "limitErrInfo":"不是有效数字格式", |
| | | "show": true |
| | | }, |
| | | { |
| | | "code": "bankName", |
| | | "cnCode":"开户行", |
| | | "desc":"必填,请填写开户行", |
| | | "required":true, |
| | | "code": "receivedAmount", |
| | | "cnCode":"实收金额", |
| | | "desc":"必填,请填写实收金额", |
| | | "required":false, |
| | | "hasDefaultValue":false, |
| | | "inputType": "input", |
| | | "limit":"maxLength", |
| | | "limitParam":"100", |
| | | "limitErrInfo":"开户行名称不能超过100位", |
| | | "limit":"num", |
| | | "limitParam":"", |
| | | "limitErrInfo":"不是有效数字格式", |
| | | "show": true |
| | | } |
| | | ] |
| | |
| | | package com.java110.intf; |
| | | package com.java110.intf.acct; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.accountBank.AccountBankDto; |
| | |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "community-service", configuration = {FeignConfiguration.class}) |
| | | @FeignClient(name = "acct-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/accountBankApi") |
| | | public interface IAccountBankInnerServiceSMO { |
| | | |
| New file |
| | |
| | | package com.java110.intf.acct; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.accountBond.AccountBondDto; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | 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 IAccountBondInnerServiceSMO |
| | | * @Description 保证金接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "acct-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/accountBondApi") |
| | | public interface IAccountBondInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveAccountBond", method = RequestMethod.POST) |
| | | public int saveAccountBond(@RequestBody AccountBondPo accountBondPo); |
| | | |
| | | @RequestMapping(value = "/updateAccountBond", method = RequestMethod.POST) |
| | | public int updateAccountBond(@RequestBody AccountBondPo accountBondPo); |
| | | |
| | | @RequestMapping(value = "/deleteAccountBond", method = RequestMethod.POST) |
| | | public int deleteAccountBond(@RequestBody AccountBondPo accountBondPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param accountBondDto 数据对象分享 |
| | | * @return AccountBondDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBonds", method = RequestMethod.POST) |
| | | List<AccountBondDto> queryAccountBonds(@RequestBody AccountBondDto accountBondDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param accountBondDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondsCount", method = RequestMethod.POST) |
| | | int queryAccountBondsCount(@RequestBody AccountBondDto accountBondDto); |
| | | } |
| New file |
| | |
| | | package com.java110.intf.acct; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.accountBondObjDetail.AccountBondObjDetailDto; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | 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 IAccountBondObjDetailInnerServiceSMO |
| | | * @Description 保证金明细接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "acct-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/accountBondObjDetailApi") |
| | | public interface IAccountBondObjDetailInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveAccountBondObjDetail", method = RequestMethod.POST) |
| | | public int saveAccountBondObjDetail(@RequestBody AccountBondObjDetailPo accountBondObjDetailPo); |
| | | |
| | | @RequestMapping(value = "/updateAccountBondObjDetail", method = RequestMethod.POST) |
| | | public int updateAccountBondObjDetail(@RequestBody AccountBondObjDetailPo accountBondObjDetailPo); |
| | | |
| | | @RequestMapping(value = "/deleteAccountBondObjDetail", method = RequestMethod.POST) |
| | | public int deleteAccountBondObjDetail(@RequestBody AccountBondObjDetailPo accountBondObjDetailPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param accountBondObjDetailDto 数据对象分享 |
| | | * @return AccountBondObjDetailDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondObjDetails", method = RequestMethod.POST) |
| | | List<AccountBondObjDetailDto> queryAccountBondObjDetails(@RequestBody AccountBondObjDetailDto accountBondObjDetailDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param accountBondObjDetailDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondObjDetailsCount", method = RequestMethod.POST) |
| | | int queryAccountBondObjDetailsCount(@RequestBody AccountBondObjDetailDto accountBondObjDetailDto); |
| | | } |
| New file |
| | |
| | | package com.java110.intf.acct; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.accountBondObj.AccountBondObjDto; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | 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 IAccountBondObjInnerServiceSMO |
| | | * @Description 保证金对象接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "acct-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/accountBondObjApi") |
| | | public interface IAccountBondObjInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveAccountBondObj", method = RequestMethod.POST) |
| | | public int saveAccountBondObj(@RequestBody AccountBondObjPo accountBondObjPo); |
| | | |
| | | @RequestMapping(value = "/updateAccountBondObj", method = RequestMethod.POST) |
| | | public int updateAccountBondObj(@RequestBody AccountBondObjPo accountBondObjPo); |
| | | |
| | | @RequestMapping(value = "/deleteAccountBondObj", method = RequestMethod.POST) |
| | | public int deleteAccountBondObj(@RequestBody AccountBondObjPo accountBondObjPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param accountBondObjDto 数据对象分享 |
| | | * @return AccountBondObjDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondObjs", method = RequestMethod.POST) |
| | | List<AccountBondObjDto> queryAccountBondObjs(@RequestBody AccountBondObjDto accountBondObjDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param accountBondObjDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondObjsCount", method = RequestMethod.POST) |
| | | int queryAccountBondObjsCount(@RequestBody AccountBondObjDto accountBondObjDto); |
| | | } |
| New file |
| | |
| | | package com.java110.acct.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.acct.bmo.accountBond.IDeleteAccountBondBMO; |
| | | import com.java110.acct.bmo.accountBond.IGetAccountBondBMO; |
| | | import com.java110.acct.bmo.accountBond.ISaveAccountBondBMO; |
| | | import com.java110.acct.bmo.accountBond.IUpdateAccountBondBMO; |
| | | import com.java110.dto.accountBond.AccountBondDto; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | 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 = "/accountBond") |
| | | public class AccountBondApi { |
| | | |
| | | @Autowired |
| | | private ISaveAccountBondBMO saveAccountBondBMOImpl; |
| | | @Autowired |
| | | private IUpdateAccountBondBMO updateAccountBondBMOImpl; |
| | | @Autowired |
| | | private IDeleteAccountBondBMO deleteAccountBondBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetAccountBondBMO getAccountBondBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * @serviceCode /accountBond/saveAccountBond |
| | | * @path /app/accountBond/saveAccountBond |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/saveAccountBond", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveAccountBond(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bondName", "请求报文中未包含bondName"); |
| | | Assert.hasKeyAndValue(reqJson, "bondType", "请求报文中未包含bondType"); |
| | | Assert.hasKeyAndValue(reqJson, "amount", "请求报文中未包含amount"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId"); |
| | | Assert.hasKeyAndValue(reqJson, "bondMonth", "请求报文中未包含bondMonth"); |
| | | |
| | | |
| | | AccountBondPo accountBondPo = BeanConvertUtil.covertBean(reqJson, AccountBondPo.class); |
| | | //保证金类型默认未店铺类型,为6006,暂时写死方便后期扩展其他类型。 |
| | | accountBondPo.setBondType( "6006" ); |
| | | return saveAccountBondBMOImpl.save(accountBondPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * @serviceCode /accountBond/updateAccountBond |
| | | * @path /app/accountBond/updateAccountBond |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/updateAccountBond", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateAccountBond(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bondName", "请求报文中未包含bondName"); |
| | | Assert.hasKeyAndValue(reqJson, "bondType", "请求报文中未包含bondType"); |
| | | Assert.hasKeyAndValue(reqJson, "amount", "请求报文中未包含amount"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId"); |
| | | Assert.hasKeyAndValue(reqJson, "bondMonth", "请求报文中未包含bondMonth"); |
| | | Assert.hasKeyAndValue(reqJson, "bondId", "bondId不能为空"); |
| | | |
| | | |
| | | AccountBondPo accountBondPo = BeanConvertUtil.covertBean(reqJson, AccountBondPo.class); |
| | | return updateAccountBondBMOImpl.update(accountBondPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /accountBond/deleteAccountBond |
| | | * @path /app/accountBond/deleteAccountBond |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/deleteAccountBond", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteAccountBond(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bondId", "bondId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空"); |
| | | |
| | | |
| | | AccountBondPo accountBondPo = BeanConvertUtil.covertBean(reqJson, AccountBondPo.class); |
| | | return deleteAccountBondBMOImpl.delete(accountBondPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /accountBond/queryAccountBond |
| | | * @path /app/accountBond/queryAccountBond |
| | | * @param |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBond", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryAccountBond(@RequestParam(value = "bondName",required = false) String bondName, |
| | | @RequestParam(value = "objId",required = false) String objId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | AccountBondDto accountBondDto = new AccountBondDto(); |
| | | accountBondDto.setPage(page); |
| | | accountBondDto.setRow(row); |
| | | accountBondDto.setBondName(bondName); |
| | | accountBondDto.setObjId(objId); |
| | | return getAccountBondBMOImpl.get(accountBondDto); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.acct.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.acct.bmo.accountBondObj.IDeleteAccountBondObjBMO; |
| | | import com.java110.acct.bmo.accountBondObj.IGetAccountBondObjBMO; |
| | | import com.java110.acct.bmo.accountBondObj.ISaveAccountBondObjBMO; |
| | | import com.java110.acct.bmo.accountBondObj.IUpdateAccountBondObjBMO; |
| | | import com.java110.dto.accountBondObj.AccountBondObjDto; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | 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 = "/accountBondObj") |
| | | public class AccountBondObjApi { |
| | | |
| | | @Autowired |
| | | private ISaveAccountBondObjBMO saveAccountBondObjBMOImpl; |
| | | @Autowired |
| | | private IUpdateAccountBondObjBMO updateAccountBondObjBMOImpl; |
| | | @Autowired |
| | | private IDeleteAccountBondObjBMO deleteAccountBondObjBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetAccountBondObjBMO getAccountBondObjBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * @serviceCode /accountBondObj/saveAccountBondObj |
| | | * @path /app/accountBondObj/saveAccountBondObj |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/saveAccountBondObj", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveAccountBondObj(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bondId", "请求报文中未包含bondId"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId"); |
| | | Assert.hasKeyAndValue(reqJson, "bondType", "请求报文中未包含bondType"); |
| | | Assert.hasKeyAndValue(reqJson, "receivableAmount", "请求报文中未包含receivableAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "receivedAmount", "请求报文中未包含receivedAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | |
| | | |
| | | AccountBondObjPo accountBondObjPo = BeanConvertUtil.covertBean(reqJson, AccountBondObjPo.class); |
| | | return saveAccountBondObjBMOImpl.save(accountBondObjPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * @serviceCode /accountBondObj/updateAccountBondObj |
| | | * @path /app/accountBondObj/updateAccountBondObj |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/updateAccountBondObj", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateAccountBondObj(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bondId", "请求报文中未包含bondId"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId"); |
| | | Assert.hasKeyAndValue(reqJson, "bondType", "请求报文中未包含bondType"); |
| | | Assert.hasKeyAndValue(reqJson, "receivableAmount", "请求报文中未包含receivableAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "receivedAmount", "请求报文中未包含receivedAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | Assert.hasKeyAndValue(reqJson, "bobjId", "bobjId不能为空"); |
| | | |
| | | |
| | | AccountBondObjPo accountBondObjPo = BeanConvertUtil.covertBean(reqJson, AccountBondObjPo.class); |
| | | return updateAccountBondObjBMOImpl.update(accountBondObjPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /accountBondObj/deleteAccountBondObj |
| | | * @path /app/accountBondObj/deleteAccountBondObj |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/deleteAccountBondObj", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteAccountBondObj(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "bobjId", "bobjId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空"); |
| | | |
| | | |
| | | AccountBondObjPo accountBondObjPo = BeanConvertUtil.covertBean(reqJson, AccountBondObjPo.class); |
| | | return deleteAccountBondObjBMOImpl.delete(accountBondObjPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /accountBondObj/queryAccountBondObj |
| | | * @path /app/accountBondObj/queryAccountBondObj |
| | | * @param |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondObj", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryAccountBondObj(@RequestParam(value = "bobjId",required = false) String bobjId, |
| | | @RequestParam(value = "state",required = false) String state, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | AccountBondObjDto accountBondObjDto = new AccountBondObjDto(); |
| | | accountBondObjDto.setPage(page); |
| | | accountBondObjDto.setRow(row); |
| | | accountBondObjDto.setBobjId(bobjId); |
| | | accountBondObjDto.setState(state); |
| | | return getAccountBondObjBMOImpl.get(accountBondObjDto); |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.acct.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.acct.bmo.accountBondObjDetail.IDeleteAccountBondObjDetailBMO; |
| | | import com.java110.acct.bmo.accountBondObjDetail.IGetAccountBondObjDetailBMO; |
| | | import com.java110.acct.bmo.accountBondObjDetail.ISaveAccountBondObjDetailBMO; |
| | | import com.java110.acct.bmo.accountBondObjDetail.IUpdateAccountBondObjDetailBMO; |
| | | import com.java110.dto.accountBondObjDetail.AccountBondObjDetailDto; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | 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 = "/accountBondObjDetail") |
| | | public class AccountBondObjDetailApi { |
| | | |
| | | @Autowired |
| | | private ISaveAccountBondObjDetailBMO saveAccountBondObjDetailBMOImpl; |
| | | @Autowired |
| | | private IUpdateAccountBondObjDetailBMO updateAccountBondObjDetailBMOImpl; |
| | | @Autowired |
| | | private IDeleteAccountBondObjDetailBMO deleteAccountBondObjDetailBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetAccountBondObjDetailBMO getAccountBondObjDetailBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * @serviceCode /accountBondObjDetail/saveAccountBondObjDetail |
| | | * @path /app/accountBondObjDetail/saveAccountBondObjDetail |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/saveAccountBondObjDetail", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveAccountBondObjDetail(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bobjId", "请求报文中未包含bobjId"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId"); |
| | | Assert.hasKeyAndValue(reqJson, "bondType", "请求报文中未包含bondType"); |
| | | Assert.hasKeyAndValue(reqJson, "receivableAmount", "请求报文中未包含receivableAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "receivedAmount", "请求报文中未包含receivedAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | |
| | | |
| | | AccountBondObjDetailPo accountBondObjDetailPo = BeanConvertUtil.covertBean(reqJson, AccountBondObjDetailPo.class); |
| | | return saveAccountBondObjDetailBMOImpl.save(accountBondObjDetailPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * @serviceCode /accountBondObjDetail/updateAccountBondObjDetail |
| | | * @path /app/accountBondObjDetail/updateAccountBondObjDetail |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/updateAccountBondObjDetail", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateAccountBondObjDetail(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "bobjId", "请求报文中未包含bobjId"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "请求报文中未包含objId"); |
| | | Assert.hasKeyAndValue(reqJson, "bondType", "请求报文中未包含bondType"); |
| | | Assert.hasKeyAndValue(reqJson, "receivableAmount", "请求报文中未包含receivableAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "receivedAmount", "请求报文中未包含receivedAmount"); |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空"); |
| | | |
| | | |
| | | AccountBondObjDetailPo accountBondObjDetailPo = BeanConvertUtil.covertBean(reqJson, AccountBondObjDetailPo.class); |
| | | return updateAccountBondObjDetailBMOImpl.update(accountBondObjDetailPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /accountBondObjDetail/deleteAccountBondObjDetail |
| | | * @path /app/accountBondObjDetail/deleteAccountBondObjDetail |
| | | * @param reqJson |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/deleteAccountBondObjDetail", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteAccountBondObjDetail(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "objId", "objId不能为空"); |
| | | |
| | | |
| | | AccountBondObjDetailPo accountBondObjDetailPo = BeanConvertUtil.covertBean(reqJson, AccountBondObjDetailPo.class); |
| | | return deleteAccountBondObjDetailBMOImpl.delete(accountBondObjDetailPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * @serviceCode /accountBondObjDetail/queryAccountBondObjDetail |
| | | * @path /app/accountBondObjDetail/queryAccountBondObjDetail |
| | | * @param |
| | | * @return |
| | | */ |
| | | @RequestMapping(value = "/queryAccountBondObjDetail", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryAccountBondObjDetail(@RequestParam(value = "detailId") String detailId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | AccountBondObjDetailDto accountBondObjDetailDto = new AccountBondObjDetailDto(); |
| | | accountBondObjDetailDto.setPage(page); |
| | | accountBondObjDetailDto.setRow(row); |
| | | accountBondObjDetailDto.setDetailId( detailId ); |
| | | return getAccountBondObjDetailBMOImpl.get(accountBondObjDetailDto); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.java110.acct.bmo.accountBank.IDeleteAccountBankBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.IAccountBankInnerServiceSMO; |
| | | import com.java110.intf.acct.IAccountBankInnerServiceSMO; |
| | | import com.java110.po.accountBank.AccountBankPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | package com.java110.acct.bmo.accountBank.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBank.IGetAccountBankBMO; |
| | | import com.java110.intf.IAccountBankInnerServiceSMO; |
| | | import com.java110.intf.acct.IAccountBankInnerServiceSMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | |
| | | import com.java110.intf.IAccountBankInnerServiceSMO; |
| | | import com.java110.intf.acct.IAccountBankInnerServiceSMO; |
| | | import com.java110.po.accountBank.AccountBankPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | import com.java110.acct.bmo.accountBank.IUpdateAccountBankBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | |
| | | import com.java110.intf.IAccountBankInnerServiceSMO; |
| | | import com.java110.intf.acct.IAccountBankInnerServiceSMO; |
| | | import com.java110.po.accountBank.AccountBankPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteAccountBondBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改保证金 |
| | | * add by wuxw |
| | | * @param accountBondPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(AccountBondPo accountBondPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond; |
| | | import com.java110.dto.accountBond.AccountBondDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetAccountBondBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询保证金 |
| | | * add by wuxw |
| | | * @param accountBondDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(AccountBondDto accountBondDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond; |
| | | |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveAccountBondBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加保证金 |
| | | * add by wuxw |
| | | * @param accountBondPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(AccountBondPo accountBondPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateAccountBondBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改保证金 |
| | | * add by wuxw |
| | | * @param accountBondPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(AccountBondPo accountBondPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBond.IDeleteAccountBondBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.acct.IAccountBondInnerServiceSMO; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("deleteAccountBondBMOImpl") |
| | | public class DeleteAccountBondBMOImpl implements IDeleteAccountBondBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondInnerServiceSMO accountBondInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param accountBondPo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(AccountBondPo accountBondPo) { |
| | | |
| | | int flag = accountBondInnerServiceSMOImpl.deleteAccountBond(accountBondPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBond.IGetAccountBondBMO; |
| | | import com.java110.intf.acct.IAccountBondInnerServiceSMO; |
| | | 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.accountBond.AccountBondDto; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getAccountBondBMOImpl") |
| | | public class GetAccountBondBMOImpl implements IGetAccountBondBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondInnerServiceSMO accountBondInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param accountBondDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(AccountBondDto accountBondDto) { |
| | | |
| | | |
| | | int count = accountBondInnerServiceSMOImpl.queryAccountBondsCount(accountBondDto); |
| | | |
| | | List<AccountBondDto> accountBondDtos = null; |
| | | if (count > 0) { |
| | | accountBondDtos = accountBondInnerServiceSMOImpl.queryAccountBonds(accountBondDto); |
| | | } else { |
| | | accountBondDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) accountBondDto.getRow()), count, accountBondDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBond.ISaveAccountBondBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.accountBond.AccountBondDto; |
| | | import com.java110.intf.acct.IAccountBondInnerServiceSMO; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveAccountBondBMOImpl") |
| | | public class SaveAccountBondBMOImpl implements ISaveAccountBondBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondInnerServiceSMO accountBondInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param accountBondPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(AccountBondPo accountBondPo) { |
| | | |
| | | AccountBondDto accountBondDto = new AccountBondDto(); |
| | | accountBondDto.setObjId( accountBondPo.getObjId() ); |
| | | int listFag= accountBondInnerServiceSMOImpl.queryAccountBondsCount( accountBondDto ); |
| | | if (listFag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "一种商铺类型只能设置一种保证金"); |
| | | } |
| | | accountBondPo.setBondId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_bondId)); |
| | | int flag = accountBondInnerServiceSMOImpl.saveAccountBond(accountBondPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBond.impl; |
| | | |
| | | |
| | | import com.java110.acct.bmo.accountBond.IUpdateAccountBondBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.acct.IAccountBondInnerServiceSMO; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("updateAccountBondBMOImpl") |
| | | public class UpdateAccountBondBMOImpl implements IUpdateAccountBondBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondInnerServiceSMO accountBondInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param accountBondPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(AccountBondPo accountBondPo) { |
| | | |
| | | int flag = accountBondInnerServiceSMOImpl.updateAccountBond(accountBondPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteAccountBondObjBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改保证金对象 |
| | | * add by wuxw |
| | | * @param accountBondObjPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(AccountBondObjPo accountBondObjPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj; |
| | | import com.java110.dto.accountBondObj.AccountBondObjDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetAccountBondObjBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询保证金对象 |
| | | * add by wuxw |
| | | * @param accountBondObjDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(AccountBondObjDto accountBondObjDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj; |
| | | |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveAccountBondObjBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加保证金对象 |
| | | * add by wuxw |
| | | * @param accountBondObjPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(AccountBondObjPo accountBondObjPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateAccountBondObjBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改保证金对象 |
| | | * add by wuxw |
| | | * @param accountBondObjPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(AccountBondObjPo accountBondObjPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObj.IDeleteAccountBondObjBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.acct.IAccountBondObjInnerServiceSMO; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("deleteAccountBondObjBMOImpl") |
| | | public class DeleteAccountBondObjBMOImpl implements IDeleteAccountBondObjBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjInnerServiceSMO accountBondObjInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param accountBondObjPo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(AccountBondObjPo accountBondObjPo) { |
| | | |
| | | int flag = accountBondObjInnerServiceSMOImpl.deleteAccountBondObj(accountBondObjPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObj.IGetAccountBondObjBMO; |
| | | import com.java110.intf.acct.IAccountBondObjInnerServiceSMO; |
| | | 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.accountBondObj.AccountBondObjDto; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getAccountBondObjBMOImpl") |
| | | public class GetAccountBondObjBMOImpl implements IGetAccountBondObjBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjInnerServiceSMO accountBondObjInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param accountBondObjDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(AccountBondObjDto accountBondObjDto) { |
| | | |
| | | |
| | | int count = accountBondObjInnerServiceSMOImpl.queryAccountBondObjsCount(accountBondObjDto); |
| | | |
| | | List<AccountBondObjDto> accountBondObjDtos = null; |
| | | if (count > 0) { |
| | | accountBondObjDtos = accountBondObjInnerServiceSMOImpl.queryAccountBondObjs(accountBondObjDto); |
| | | } else { |
| | | accountBondObjDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) accountBondObjDto.getRow()), count, accountBondObjDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObj.ISaveAccountBondObjBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.acct.IAccountBondObjInnerServiceSMO; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveAccountBondObjBMOImpl") |
| | | public class SaveAccountBondObjBMOImpl implements ISaveAccountBondObjBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjInnerServiceSMO accountBondObjInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param accountBondObjPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(AccountBondObjPo accountBondObjPo) { |
| | | |
| | | accountBondObjPo.setBobjId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_bobjId)); |
| | | int flag = accountBondObjInnerServiceSMOImpl.saveAccountBondObj(accountBondObjPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObj.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObj.IUpdateAccountBondObjBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.acct.IAccountBondObjInnerServiceSMO; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | |
| | | @Service("updateAccountBondObjBMOImpl") |
| | | public class UpdateAccountBondObjBMOImpl implements IUpdateAccountBondObjBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjInnerServiceSMO accountBondObjInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param accountBondObjPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(AccountBondObjPo accountBondObjPo) { |
| | | |
| | | int flag = accountBondObjInnerServiceSMOImpl.updateAccountBondObj(accountBondObjPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteAccountBondObjDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改保证金明细 |
| | | * add by wuxw |
| | | * @param accountBondObjDetailPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(AccountBondObjDetailPo accountBondObjDetailPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail; |
| | | import com.java110.dto.accountBondObjDetail.AccountBondObjDetailDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetAccountBondObjDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询保证金明细 |
| | | * add by wuxw |
| | | * @param accountBondObjDetailDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(AccountBondObjDetailDto accountBondObjDetailDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail; |
| | | |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveAccountBondObjDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加保证金明细 |
| | | * add by wuxw |
| | | * @param accountBondObjDetailPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(AccountBondObjDetailPo accountBondObjDetailPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateAccountBondObjDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改保证金明细 |
| | | * add by wuxw |
| | | * @param accountBondObjDetailPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(AccountBondObjDetailPo accountBondObjDetailPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObjDetail.IDeleteAccountBondObjDetailBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | |
| | | import com.java110.intf.acct.IAccountBondObjDetailInnerServiceSMO; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("deleteAccountBondObjDetailBMOImpl") |
| | | public class DeleteAccountBondObjDetailBMOImpl implements IDeleteAccountBondObjDetailBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjDetailInnerServiceSMO accountBondObjDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param accountBondObjDetailPo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(AccountBondObjDetailPo accountBondObjDetailPo) { |
| | | |
| | | int flag = accountBondObjDetailInnerServiceSMOImpl.deleteAccountBondObjDetail(accountBondObjDetailPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObjDetail.IGetAccountBondObjDetailBMO; |
| | | import com.java110.intf.acct.IAccountBondObjDetailInnerServiceSMO; |
| | | 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.accountBondObjDetail.AccountBondObjDetailDto; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getAccountBondObjDetailBMOImpl") |
| | | public class GetAccountBondObjDetailBMOImpl implements IGetAccountBondObjDetailBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjDetailInnerServiceSMO accountBondObjDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param accountBondObjDetailDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(AccountBondObjDetailDto accountBondObjDetailDto) { |
| | | |
| | | |
| | | int count = accountBondObjDetailInnerServiceSMOImpl.queryAccountBondObjDetailsCount(accountBondObjDetailDto); |
| | | |
| | | List<AccountBondObjDetailDto> accountBondObjDetailDtos = null; |
| | | if (count > 0) { |
| | | accountBondObjDetailDtos = accountBondObjDetailInnerServiceSMOImpl.queryAccountBondObjDetails(accountBondObjDetailDto); |
| | | } else { |
| | | accountBondObjDetailDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) accountBondObjDetailDto.getRow()), count, accountBondObjDetailDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObjDetail.ISaveAccountBondObjDetailBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | |
| | | import com.java110.intf.acct.IAccountBondObjDetailInnerServiceSMO; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveAccountBondObjDetailBMOImpl") |
| | | public class SaveAccountBondObjDetailBMOImpl implements ISaveAccountBondObjDetailBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjDetailInnerServiceSMO accountBondObjDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param accountBondObjDetailPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(AccountBondObjDetailPo accountBondObjDetailPo) { |
| | | |
| | | accountBondObjDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_detailId)); |
| | | int flag = accountBondObjDetailInnerServiceSMOImpl.saveAccountBondObjDetail(accountBondObjDetailPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.acct.bmo.accountBondObjDetail.impl; |
| | | |
| | | import com.java110.acct.bmo.accountBondObjDetail.IUpdateAccountBondObjDetailBMO; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.acct.IAccountBondObjDetailInnerServiceSMO; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("updateAccountBondObjDetailBMOImpl") |
| | | public class UpdateAccountBondObjDetailBMOImpl implements IUpdateAccountBondObjDetailBMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjDetailInnerServiceSMO accountBondObjDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param accountBondObjDetailPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(AccountBondObjDetailPo accountBondObjDetailPo) { |
| | | |
| | | int flag = accountBondObjDetailInnerServiceSMOImpl.updateAccountBondObjDetail(accountBondObjDetailPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | 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 IAccountBondObjDetailServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 保证金明细信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveAccountBondObjDetailInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询保证金明细信息(instance过程) |
| | | * 根据bId 查询保证金明细信息 |
| | | * @param info bId 信息 |
| | | * @return 保证金明细信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getAccountBondObjDetailInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改保证金明细信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateAccountBondObjDetailInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询保证金明细总数 |
| | | * |
| | | * @param info 保证金明细信息 |
| | | * @return 保证金明细数量 |
| | | */ |
| | | int queryAccountBondObjDetailsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | 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 IAccountBondObjServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 保证金对象信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveAccountBondObjInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询保证金对象信息(instance过程) |
| | | * 根据bId 查询保证金对象信息 |
| | | * @param info bId 信息 |
| | | * @return 保证金对象信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getAccountBondObjInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改保证金对象信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateAccountBondObjInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询保证金对象总数 |
| | | * |
| | | * @param info 保证金对象信息 |
| | | * @return 保证金对象数量 |
| | | */ |
| | | int queryAccountBondObjsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | 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 IAccountBondServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 保证金信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveAccountBondInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询保证金信息(instance过程) |
| | | * 根据bId 查询保证金信息 |
| | | * @param info bId 信息 |
| | | * @return 保证金信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getAccountBondInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改保证金信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateAccountBondInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询保证金总数 |
| | | * |
| | | * @param info 保证金信息 |
| | | * @return 保证金数量 |
| | | */ |
| | | int queryAccountBondsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | 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.IAccountBondObjDetailServiceDao; |
| | | 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("accountBondObjDetailServiceDaoImpl") |
| | | //@Transactional |
| | | public class AccountBondObjDetailServiceDaoImpl extends BaseServiceDao implements IAccountBondObjDetailServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(AccountBondObjDetailServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存保证金明细信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveAccountBondObjDetailInfo(Map info) throws DAOException { |
| | | logger.debug("保存保证金明细信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("accountBondObjDetailServiceDaoImpl.saveAccountBondObjDetailInfo",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> getAccountBondObjDetailInfo(Map info) throws DAOException { |
| | | logger.debug("查询保证金明细信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessAccountBondObjDetailInfos = sqlSessionTemplate.selectList("accountBondObjDetailServiceDaoImpl.getAccountBondObjDetailInfo",info); |
| | | |
| | | return businessAccountBondObjDetailInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改保证金明细信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateAccountBondObjDetailInfo(Map info) throws DAOException { |
| | | logger.debug("修改保证金明细信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("accountBondObjDetailServiceDaoImpl.updateAccountBondObjDetailInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改保证金明细信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询保证金明细数量 |
| | | * @param info 保证金明细信息 |
| | | * @return 保证金明细数量 |
| | | */ |
| | | @Override |
| | | public int queryAccountBondObjDetailsCount(Map info) { |
| | | logger.debug("查询保证金明细数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessAccountBondObjDetailInfos = sqlSessionTemplate.selectList("accountBondObjDetailServiceDaoImpl.queryAccountBondObjDetailsCount", info); |
| | | if (businessAccountBondObjDetailInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessAccountBondObjDetailInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | 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.IAccountBondObjServiceDao; |
| | | 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("accountBondObjServiceDaoImpl") |
| | | //@Transactional |
| | | public class AccountBondObjServiceDaoImpl extends BaseServiceDao implements IAccountBondObjServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(AccountBondObjServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存保证金对象信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveAccountBondObjInfo(Map info) throws DAOException { |
| | | logger.debug("保存保证金对象信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("accountBondObjServiceDaoImpl.saveAccountBondObjInfo",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> getAccountBondObjInfo(Map info) throws DAOException { |
| | | logger.debug("查询保证金对象信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessAccountBondObjInfos = sqlSessionTemplate.selectList("accountBondObjServiceDaoImpl.getAccountBondObjInfo",info); |
| | | |
| | | return businessAccountBondObjInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改保证金对象信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateAccountBondObjInfo(Map info) throws DAOException { |
| | | logger.debug("修改保证金对象信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("accountBondObjServiceDaoImpl.updateAccountBondObjInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改保证金对象信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询保证金对象数量 |
| | | * @param info 保证金对象信息 |
| | | * @return 保证金对象数量 |
| | | */ |
| | | @Override |
| | | public int queryAccountBondObjsCount(Map info) { |
| | | logger.debug("查询保证金对象数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessAccountBondObjInfos = sqlSessionTemplate.selectList("accountBondObjServiceDaoImpl.queryAccountBondObjsCount", info); |
| | | if (businessAccountBondObjInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessAccountBondObjInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | 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.IAccountBondServiceDao; |
| | | 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("accountBondServiceDaoImpl") |
| | | //@Transactional |
| | | public class AccountBondServiceDaoImpl extends BaseServiceDao implements IAccountBondServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(AccountBondServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存保证金信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveAccountBondInfo(Map info) throws DAOException { |
| | | logger.debug("保存保证金信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("accountBondServiceDaoImpl.saveAccountBondInfo",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> getAccountBondInfo(Map info) throws DAOException { |
| | | logger.debug("查询保证金信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessAccountBondInfos = sqlSessionTemplate.selectList("accountBondServiceDaoImpl.getAccountBondInfo",info); |
| | | |
| | | return businessAccountBondInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改保证金信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateAccountBondInfo(Map info) throws DAOException { |
| | | logger.debug("修改保证金信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("accountBondServiceDaoImpl.updateAccountBondInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改保证金信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询保证金数量 |
| | | * @param info 保证金信息 |
| | | * @return 保证金数量 |
| | | */ |
| | | @Override |
| | | public int queryAccountBondsCount(Map info) { |
| | | logger.debug("查询保证金数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessAccountBondInfos = sqlSessionTemplate.selectList("accountBondServiceDaoImpl.queryAccountBondsCount", info); |
| | | if (businessAccountBondInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessAccountBondInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | import com.java110.acct.dao.IAccountBankServiceDao; |
| | | import com.java110.dto.accountBank.AccountBankDto; |
| | | import com.java110.intf.IAccountBankInnerServiceSMO; |
| | | import com.java110.intf.acct.IAccountBankInnerServiceSMO; |
| | | import com.java110.po.accountBank.AccountBankPo; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| New file |
| | |
| | | package com.java110.acct.smo.impl; |
| | | |
| | | |
| | | import com.java110.acct.dao.IAccountBondServiceDao; |
| | | import com.java110.dto.accountBond.AccountBondDto; |
| | | import com.java110.intf.acct.IAccountBondInnerServiceSMO; |
| | | import com.java110.po.accountBond.AccountBondPo; |
| | | 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.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 保证金内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class AccountBondInnerServiceSMOImpl extends BaseServiceSMO implements IAccountBondInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondServiceDao accountBondServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveAccountBond(@RequestBody AccountBondPo accountBondPo) { |
| | | int saveFlag = 1; |
| | | accountBondServiceDaoImpl.saveAccountBondInfo(BeanConvertUtil.beanCovertMap(accountBondPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateAccountBond(@RequestBody AccountBondPo accountBondPo) { |
| | | int saveFlag = 1; |
| | | accountBondServiceDaoImpl.updateAccountBondInfo(BeanConvertUtil.beanCovertMap(accountBondPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteAccountBond(@RequestBody AccountBondPo accountBondPo) { |
| | | int saveFlag = 1; |
| | | accountBondPo.setStatusCd("1"); |
| | | accountBondServiceDaoImpl.updateAccountBondInfo(BeanConvertUtil.beanCovertMap(accountBondPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<AccountBondDto> queryAccountBonds(@RequestBody AccountBondDto accountBondDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = accountBondDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | accountBondDto.setPage((page - 1) * accountBondDto.getRow()); |
| | | } |
| | | |
| | | List<AccountBondDto> accountBonds = BeanConvertUtil.covertBeanList(accountBondServiceDaoImpl.getAccountBondInfo(BeanConvertUtil.beanCovertMap(accountBondDto)), AccountBondDto.class); |
| | | |
| | | return accountBonds; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryAccountBondsCount(@RequestBody AccountBondDto accountBondDto) { |
| | | return accountBondServiceDaoImpl.queryAccountBondsCount(BeanConvertUtil.beanCovertMap(accountBondDto)); } |
| | | |
| | | public IAccountBondServiceDao getAccountBondServiceDaoImpl() { |
| | | return accountBondServiceDaoImpl; |
| | | } |
| | | |
| | | public void setAccountBondServiceDaoImpl(IAccountBondServiceDao accountBondServiceDaoImpl) { |
| | | this.accountBondServiceDaoImpl = accountBondServiceDaoImpl; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.acct.smo.impl; |
| | | |
| | | |
| | | import com.java110.acct.dao.IAccountBondObjDetailServiceDao; |
| | | import com.java110.dto.accountBondObjDetail.AccountBondObjDetailDto; |
| | | import com.java110.intf.acct.IAccountBondObjDetailInnerServiceSMO; |
| | | import com.java110.po.accountBondObjDetail.AccountBondObjDetailPo; |
| | | 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.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 保证金明细内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class AccountBondObjDetailInnerServiceSMOImpl extends BaseServiceSMO implements IAccountBondObjDetailInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjDetailServiceDao accountBondObjDetailServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveAccountBondObjDetail(@RequestBody AccountBondObjDetailPo accountBondObjDetailPo) { |
| | | int saveFlag = 1; |
| | | accountBondObjDetailServiceDaoImpl.saveAccountBondObjDetailInfo(BeanConvertUtil.beanCovertMap(accountBondObjDetailPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateAccountBondObjDetail(@RequestBody AccountBondObjDetailPo accountBondObjDetailPo) { |
| | | int saveFlag = 1; |
| | | accountBondObjDetailServiceDaoImpl.updateAccountBondObjDetailInfo(BeanConvertUtil.beanCovertMap(accountBondObjDetailPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteAccountBondObjDetail(@RequestBody AccountBondObjDetailPo accountBondObjDetailPo) { |
| | | int saveFlag = 1; |
| | | accountBondObjDetailPo.setStatusCd("1"); |
| | | accountBondObjDetailServiceDaoImpl.updateAccountBondObjDetailInfo(BeanConvertUtil.beanCovertMap(accountBondObjDetailPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<AccountBondObjDetailDto> queryAccountBondObjDetails(@RequestBody AccountBondObjDetailDto accountBondObjDetailDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = accountBondObjDetailDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | accountBondObjDetailDto.setPage((page - 1) * accountBondObjDetailDto.getRow()); |
| | | } |
| | | |
| | | List<AccountBondObjDetailDto> accountBondObjDetails = BeanConvertUtil.covertBeanList(accountBondObjDetailServiceDaoImpl.getAccountBondObjDetailInfo(BeanConvertUtil.beanCovertMap(accountBondObjDetailDto)), AccountBondObjDetailDto.class); |
| | | |
| | | return accountBondObjDetails; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryAccountBondObjDetailsCount(@RequestBody AccountBondObjDetailDto accountBondObjDetailDto) { |
| | | return accountBondObjDetailServiceDaoImpl.queryAccountBondObjDetailsCount(BeanConvertUtil.beanCovertMap(accountBondObjDetailDto)); } |
| | | |
| | | public IAccountBondObjDetailServiceDao getAccountBondObjDetailServiceDaoImpl() { |
| | | return accountBondObjDetailServiceDaoImpl; |
| | | } |
| | | |
| | | public void setAccountBondObjDetailServiceDaoImpl(IAccountBondObjDetailServiceDao accountBondObjDetailServiceDaoImpl) { |
| | | this.accountBondObjDetailServiceDaoImpl = accountBondObjDetailServiceDaoImpl; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.acct.smo.impl; |
| | | |
| | | |
| | | import com.java110.acct.dao.IAccountBondObjServiceDao; |
| | | import com.java110.dto.accountBondObj.AccountBondObjDto; |
| | | import com.java110.intf.acct.IAccountBondObjInnerServiceSMO; |
| | | import com.java110.po.accountBondObj.AccountBondObjPo; |
| | | 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.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 保证金对象内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class AccountBondObjInnerServiceSMOImpl extends BaseServiceSMO implements IAccountBondObjInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IAccountBondObjServiceDao accountBondObjServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveAccountBondObj(@RequestBody AccountBondObjPo accountBondObjPo) { |
| | | int saveFlag = 1; |
| | | accountBondObjServiceDaoImpl.saveAccountBondObjInfo(BeanConvertUtil.beanCovertMap(accountBondObjPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateAccountBondObj(@RequestBody AccountBondObjPo accountBondObjPo) { |
| | | int saveFlag = 1; |
| | | accountBondObjServiceDaoImpl.updateAccountBondObjInfo(BeanConvertUtil.beanCovertMap(accountBondObjPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteAccountBondObj(@RequestBody AccountBondObjPo accountBondObjPo) { |
| | | int saveFlag = 1; |
| | | accountBondObjPo.setStatusCd("1"); |
| | | accountBondObjServiceDaoImpl.updateAccountBondObjInfo(BeanConvertUtil.beanCovertMap(accountBondObjPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<AccountBondObjDto> queryAccountBondObjs(@RequestBody AccountBondObjDto accountBondObjDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = accountBondObjDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | accountBondObjDto.setPage((page - 1) * accountBondObjDto.getRow()); |
| | | } |
| | | |
| | | List<AccountBondObjDto> accountBondObjs = BeanConvertUtil.covertBeanList(accountBondObjServiceDaoImpl.getAccountBondObjInfo(BeanConvertUtil.beanCovertMap(accountBondObjDto)), AccountBondObjDto.class); |
| | | |
| | | return accountBondObjs; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryAccountBondObjsCount(@RequestBody AccountBondObjDto accountBondObjDto) { |
| | | return accountBondObjServiceDaoImpl.queryAccountBondObjsCount(BeanConvertUtil.beanCovertMap(accountBondObjDto)); } |
| | | |
| | | public IAccountBondObjServiceDao getAccountBondObjServiceDaoImpl() { |
| | | return accountBondObjServiceDaoImpl; |
| | | } |
| | | |
| | | public void setAccountBondObjServiceDaoImpl(IAccountBondObjServiceDao accountBondObjServiceDaoImpl) { |
| | | this.accountBondObjServiceDaoImpl = accountBondObjServiceDaoImpl; |
| | | } |
| | | } |