| | |
| | | package com.java110.dto.contractChangePlan; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.contract.ContractDto; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | public class ContractChangePlanDto extends PageDto implements Serializable { |
| | | public class ContractChangePlanDto extends ContractDto implements Serializable { |
| | | |
| | | private String planType; |
| | | private String contractId; |
| | | private String planId; |
| | | private String remark; |
| | | private String changePerson; |
| | | private String state; |
| | | private String storeId; |
| | | private String contractId; |
| | | private String planId; |
| | | private String remark; |
| | | private String changePerson; |
| | | private String state; |
| | | private String storeId; |
| | | |
| | | |
| | | private Date createTime; |
| | |
| | | public String getPlanType() { |
| | | return planType; |
| | | } |
| | | public void setPlanType(String planType) { |
| | | |
| | | public void setPlanType(String planType) { |
| | | this.planType = planType; |
| | | } |
| | | public String getContractId() { |
| | | |
| | | public String getContractId() { |
| | | return contractId; |
| | | } |
| | | public void setContractId(String contractId) { |
| | | |
| | | public void setContractId(String contractId) { |
| | | this.contractId = contractId; |
| | | } |
| | | public String getPlanId() { |
| | | |
| | | public String getPlanId() { |
| | | return planId; |
| | | } |
| | | public void setPlanId(String planId) { |
| | | |
| | | public void setPlanId(String planId) { |
| | | this.planId = planId; |
| | | } |
| | | public String getRemark() { |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | public void setRemark(String remark) { |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | public String getChangePerson() { |
| | | |
| | | public String getChangePerson() { |
| | | return changePerson; |
| | | } |
| | | public void setChangePerson(String changePerson) { |
| | | |
| | | public void setChangePerson(String changePerson) { |
| | | this.changePerson = changePerson; |
| | | } |
| | | public String getState() { |
| | | |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getStoreId() { |
| | | |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | |
| New file |
| | |
| | | package com.java110.dto.contractChangePlanDetail; |
| | | |
| | | 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 ContractChangePlanDetailDto extends PageDto implements Serializable { |
| | | |
| | | private String aLink; |
| | | private String aContacts; |
| | | private String amount; |
| | | private String contractType; |
| | | private String detailId; |
| | | private String storeId; |
| | | private String operator; |
| | | private String signingTime; |
| | | private String bContacts; |
| | | private String partyA; |
| | | private String bLink; |
| | | private String partyB; |
| | | private String contractId; |
| | | private String objId; |
| | | private String planId; |
| | | private String contractName; |
| | | private String startTime; |
| | | private String endTime; |
| | | private String state; |
| | | private String contractCode; |
| | | private String objType; |
| | | private String operatorLink; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getALink() { |
| | | return aLink; |
| | | } |
| | | public void setALink(String aLink) { |
| | | this.aLink = aLink; |
| | | } |
| | | public String getAContacts() { |
| | | return aContacts; |
| | | } |
| | | public void setAContacts(String aContacts) { |
| | | this.aContacts = aContacts; |
| | | } |
| | | public String getAmount() { |
| | | return amount; |
| | | } |
| | | public void setAmount(String amount) { |
| | | this.amount = amount; |
| | | } |
| | | public String getContractType() { |
| | | return contractType; |
| | | } |
| | | public void setContractType(String contractType) { |
| | | this.contractType = contractType; |
| | | } |
| | | public String getDetailId() { |
| | | return detailId; |
| | | } |
| | | public void setDetailId(String detailId) { |
| | | this.detailId = detailId; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getOperator() { |
| | | return operator; |
| | | } |
| | | public void setOperator(String operator) { |
| | | this.operator = operator; |
| | | } |
| | | public String getSigningTime() { |
| | | return signingTime; |
| | | } |
| | | public void setSigningTime(String signingTime) { |
| | | this.signingTime = signingTime; |
| | | } |
| | | public String getBContacts() { |
| | | return bContacts; |
| | | } |
| | | public void setBContacts(String bContacts) { |
| | | this.bContacts = bContacts; |
| | | } |
| | | public String getPartyA() { |
| | | return partyA; |
| | | } |
| | | public void setPartyA(String partyA) { |
| | | this.partyA = partyA; |
| | | } |
| | | public String getBLink() { |
| | | return bLink; |
| | | } |
| | | public void setBLink(String bLink) { |
| | | this.bLink = bLink; |
| | | } |
| | | public String getPartyB() { |
| | | return partyB; |
| | | } |
| | | public void setPartyB(String partyB) { |
| | | this.partyB = partyB; |
| | | } |
| | | public String getContractId() { |
| | | return contractId; |
| | | } |
| | | public void setContractId(String contractId) { |
| | | this.contractId = contractId; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getPlanId() { |
| | | return planId; |
| | | } |
| | | public void setPlanId(String planId) { |
| | | this.planId = planId; |
| | | } |
| | | public String getContractName() { |
| | | return contractName; |
| | | } |
| | | public void setContractName(String contractName) { |
| | | this.contractName = contractName; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getContractCode() { |
| | | return contractCode; |
| | | } |
| | | public void setContractCode(String contractCode) { |
| | | this.contractCode = contractCode; |
| | | } |
| | | public String getObjType() { |
| | | return objType; |
| | | } |
| | | public void setObjType(String objType) { |
| | | this.objType = objType; |
| | | } |
| | | public String getOperatorLink() { |
| | | return operatorLink; |
| | | } |
| | | public void setOperatorLink(String operatorLink) { |
| | | this.operatorLink = operatorLink; |
| | | } |
| | | |
| | | |
| | | 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.contractChangePlanDetailAttr; |
| | | |
| | | 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 ContractChangePlanDetailAttrDto extends PageDto implements Serializable { |
| | | |
| | | private String attrId; |
| | | private String contractId; |
| | | private String detailId; |
| | | private String specCd; |
| | | private String storeId; |
| | | private String value; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | | private String statusCd = "0"; |
| | | |
| | | |
| | | public String getAttrId() { |
| | | return attrId; |
| | | } |
| | | public void setAttrId(String attrId) { |
| | | this.attrId = attrId; |
| | | } |
| | | public String getContractId() { |
| | | return contractId; |
| | | } |
| | | public void setContractId(String contractId) { |
| | | this.contractId = contractId; |
| | | } |
| | | public String getDetailId() { |
| | | return detailId; |
| | | } |
| | | public void setDetailId(String detailId) { |
| | | this.detailId = detailId; |
| | | } |
| | | public String getSpecCd() { |
| | | return specCd; |
| | | } |
| | | public void setSpecCd(String specCd) { |
| | | this.specCd = specCd; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | |
| | | 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.contractChangePlanDetail; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class ContractChangePlanDetailPo implements Serializable { |
| | | |
| | | private String aLink; |
| | | private String aContacts; |
| | | private String amount; |
| | | private String contractType; |
| | | private String detailId; |
| | | private String storeId; |
| | | private String operator; |
| | | private String signingTime; |
| | | private String bContacts; |
| | | private String partyA; |
| | | private String bLink; |
| | | private String partyB; |
| | | private String contractId; |
| | | private String objId; |
| | | private String planId; |
| | | private String contractName; |
| | | private String startTime; |
| | | private String endTime; |
| | | private String state; |
| | | private String contractCode; |
| | | private String objType; |
| | | private String operatorLink; |
| | | public String getALink() { |
| | | return aLink; |
| | | } |
| | | public void setALink(String aLink) { |
| | | this.aLink = aLink; |
| | | } |
| | | public String getAContacts() { |
| | | return aContacts; |
| | | } |
| | | public void setAContacts(String aContacts) { |
| | | this.aContacts = aContacts; |
| | | } |
| | | public String getAmount() { |
| | | return amount; |
| | | } |
| | | public void setAmount(String amount) { |
| | | this.amount = amount; |
| | | } |
| | | public String getContractType() { |
| | | return contractType; |
| | | } |
| | | public void setContractType(String contractType) { |
| | | this.contractType = contractType; |
| | | } |
| | | public String getDetailId() { |
| | | return detailId; |
| | | } |
| | | public void setDetailId(String detailId) { |
| | | this.detailId = detailId; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getOperator() { |
| | | return operator; |
| | | } |
| | | public void setOperator(String operator) { |
| | | this.operator = operator; |
| | | } |
| | | public String getSigningTime() { |
| | | return signingTime; |
| | | } |
| | | public void setSigningTime(String signingTime) { |
| | | this.signingTime = signingTime; |
| | | } |
| | | public String getBContacts() { |
| | | return bContacts; |
| | | } |
| | | public void setBContacts(String bContacts) { |
| | | this.bContacts = bContacts; |
| | | } |
| | | public String getPartyA() { |
| | | return partyA; |
| | | } |
| | | public void setPartyA(String partyA) { |
| | | this.partyA = partyA; |
| | | } |
| | | public String getBLink() { |
| | | return bLink; |
| | | } |
| | | public void setBLink(String bLink) { |
| | | this.bLink = bLink; |
| | | } |
| | | public String getPartyB() { |
| | | return partyB; |
| | | } |
| | | public void setPartyB(String partyB) { |
| | | this.partyB = partyB; |
| | | } |
| | | public String getContractId() { |
| | | return contractId; |
| | | } |
| | | public void setContractId(String contractId) { |
| | | this.contractId = contractId; |
| | | } |
| | | public String getObjId() { |
| | | return objId; |
| | | } |
| | | public void setObjId(String objId) { |
| | | this.objId = objId; |
| | | } |
| | | public String getPlanId() { |
| | | return planId; |
| | | } |
| | | public void setPlanId(String planId) { |
| | | this.planId = planId; |
| | | } |
| | | public String getContractName() { |
| | | return contractName; |
| | | } |
| | | public void setContractName(String contractName) { |
| | | this.contractName = contractName; |
| | | } |
| | | public String getStartTime() { |
| | | return startTime; |
| | | } |
| | | public void setStartTime(String startTime) { |
| | | this.startTime = startTime; |
| | | } |
| | | public String getEndTime() { |
| | | return endTime; |
| | | } |
| | | public void setEndTime(String endTime) { |
| | | this.endTime = endTime; |
| | | } |
| | | public String getState() { |
| | | return state; |
| | | } |
| | | public void setState(String state) { |
| | | this.state = state; |
| | | } |
| | | public String getContractCode() { |
| | | return contractCode; |
| | | } |
| | | public void setContractCode(String contractCode) { |
| | | this.contractCode = contractCode; |
| | | } |
| | | public String getObjType() { |
| | | return objType; |
| | | } |
| | | public void setObjType(String objType) { |
| | | this.objType = objType; |
| | | } |
| | | public String getOperatorLink() { |
| | | return operatorLink; |
| | | } |
| | | public void setOperatorLink(String operatorLink) { |
| | | this.operatorLink = operatorLink; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.po.contractChangePlanDetailAttr; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | public class ContractChangePlanDetailAttrPo implements Serializable { |
| | | |
| | | private String attrId; |
| | | private String contractId; |
| | | private String detailId; |
| | | private String specCd; |
| | | private String statusCd = "0"; |
| | | private String storeId; |
| | | private String value; |
| | | public String getAttrId() { |
| | | return attrId; |
| | | } |
| | | public void setAttrId(String attrId) { |
| | | this.attrId = attrId; |
| | | } |
| | | public String getContractId() { |
| | | return contractId; |
| | | } |
| | | public void setContractId(String contractId) { |
| | | this.contractId = contractId; |
| | | } |
| | | public String getDetailId() { |
| | | return detailId; |
| | | } |
| | | public void setDetailId(String detailId) { |
| | | this.detailId = detailId; |
| | | } |
| | | public String getSpecCd() { |
| | | return specCd; |
| | | } |
| | | public void setSpecCd(String specCd) { |
| | | this.specCd = specCd; |
| | | } |
| | | public String getStatusCd() { |
| | | return statusCd; |
| | | } |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | public String getStoreId() { |
| | | return storeId; |
| | | } |
| | | public void setStoreId(String storeId) { |
| | | this.storeId = storeId; |
| | | } |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| 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="contractChangePlanDetailAttrServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存合同变更属性信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveContractChangePlanDetailAttrInfo" parameterType="Map"> |
| | | insert into contract_change_plan_detail_attr( |
| | | attr_id,contract_id,detail_id,spec_cd,store_id,value |
| | | ) values ( |
| | | #{attrId},#{contractId},#{detailId},#{specCd},#{storeId},#{value} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询合同变更属性信息 add by wuxw 2018-07-03 --> |
| | | <select id="getContractChangePlanDetailAttrInfo" parameterType="Map" resultType="Map"> |
| | | select t.attr_id,t.attr_id attrId,t.contract_id,t.contract_id contractId,t.detail_id,t.detail_id detailId,t.spec_cd,t.spec_cd specCd,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.value |
| | | from contract_change_plan_detail_attr t |
| | | where 1 =1 |
| | | <if test="attrId !=null and attrId != ''"> |
| | | and t.attr_id= #{attrId} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="specCd !=null and specCd != ''"> |
| | | and t.spec_cd= #{specCd} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="value !=null and value != ''"> |
| | | and t.value= #{value} |
| | | </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="updateContractChangePlanDetailAttrInfo" parameterType="Map"> |
| | | update contract_change_plan_detail_attr t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | , t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | , t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="specCd !=null and specCd != ''"> |
| | | , t.spec_cd= #{specCd} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | , t.store_id= #{storeId} |
| | | </if> |
| | | <if test="value !=null and value != ''"> |
| | | , t.value= #{value} |
| | | </if> |
| | | where 1=1 <if test="attrId !=null and attrId != ''"> |
| | | and t.attr_id= #{attrId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询合同变更属性数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryContractChangePlanDetailAttrsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from contract_change_plan_detail_attr t |
| | | where 1 =1 |
| | | <if test="attrId !=null and attrId != ''"> |
| | | and t.attr_id= #{attrId} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="specCd !=null and specCd != ''"> |
| | | and t.spec_cd= #{specCd} |
| | | </if> |
| | | <if test="statusCd !=null and statusCd != ''"> |
| | | and t.status_cd= #{statusCd} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="value !=null and value != ''"> |
| | | and t.value= #{value} |
| | | </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="contractChangePlanDetailServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存合同变更明细信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveContractChangePlanDetailInfo" parameterType="Map"> |
| | | insert into contract_change_plan_detail( |
| | | a_link,a_contacts,amount,contract_type,detail_id,store_id,operator,signing_time,b_contacts,party_a,operate,b_link,party_b,contract_id,obj_id,plan_id,contract_name,start_time,end_time,state,contract_code,obj_type,operator_link |
| | | ) values ( |
| | | #{aLink},#{aContacts},#{amount},#{contractType},#{detailId},#{storeId},#{operator},#{signingTime},#{bContacts},#{partyA},#{operate},#{bLink},#{partyB},#{contractId},#{objId},#{planId},#{contractName},#{startTime},#{endTime},#{state},#{contractCode},#{objType},#{operatorLink} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询合同变更明细信息 add by wuxw 2018-07-03 --> |
| | | <select id="getContractChangePlanDetailInfo" parameterType="Map" resultType="Map"> |
| | | select t.a_link,t.a_link aLink,t.a_contacts,t.a_contacts aContacts,t.amount,t.contract_type,t.contract_type contractType,t.detail_id,t.detail_id detailId,t.store_id,t.store_id storeId,t.operator,t.signing_time,t.signing_time signingTime,t.b_contacts,t.b_contacts bContacts,t.party_a,t.party_a partyA,t.b_link,t.b_link bLink,t.party_b,t.party_b partyB,t.contract_id,t.contract_id contractId,t.obj_id,t.obj_id objId,t.plan_id,t.plan_id planId,t.contract_name,t.contract_name contractName,t.start_time,t.start_time startTime,t.end_time,t.end_time endTime,t.state,t.contract_code,t.contract_code contractCode,t.obj_type,t.obj_type objType,t.operator_link,t.operator_link operatorLink |
| | | from contract_change_plan_detail t |
| | | where 1 =1 |
| | | <if test="aLink !=null and aLink != ''"> |
| | | and t.a_link= #{aLink} |
| | | </if> |
| | | <if test="aContacts !=null and aContacts != ''"> |
| | | and t.a_contacts= #{aContacts} |
| | | </if> |
| | | <if test="amount !=null and amount != ''"> |
| | | and t.amount= #{amount} |
| | | </if> |
| | | <if test="contractType !=null and contractType != ''"> |
| | | and t.contract_type= #{contractType} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="operator !=null and operator != ''"> |
| | | and t.operator= #{operator} |
| | | </if> |
| | | <if test="signingTime !=null and signingTime != ''"> |
| | | and t.signing_time= #{signingTime} |
| | | </if> |
| | | <if test="bContacts !=null and bContacts != ''"> |
| | | and t.b_contacts= #{bContacts} |
| | | </if> |
| | | <if test="partyA !=null and partyA != ''"> |
| | | and t.party_a= #{partyA} |
| | | </if> |
| | | <if test="bLink !=null and bLink != ''"> |
| | | and t.b_link= #{bLink} |
| | | </if> |
| | | <if test="partyB !=null and partyB != ''"> |
| | | and t.party_b= #{partyB} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </if> |
| | | <if test="contractName !=null and contractName != ''"> |
| | | and t.contract_name= #{contractName} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="contractCode !=null and contractCode != ''"> |
| | | and t.contract_code= #{contractCode} |
| | | </if> |
| | | <if test="objType !=null and objType != ''"> |
| | | and t.obj_type= #{objType} |
| | | </if> |
| | | <if test="operatorLink !=null and operatorLink != ''"> |
| | | and t.operator_link= #{operatorLink} |
| | | </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="updateContractChangePlanDetailInfo" parameterType="Map"> |
| | | update contract_change_plan_detail t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="aLink !=null and aLink != ''"> |
| | | , t.a_link= #{aLink} |
| | | </if> |
| | | <if test="aContacts !=null and aContacts != ''"> |
| | | , t.a_contacts= #{aContacts} |
| | | </if> |
| | | <if test="amount !=null and amount != ''"> |
| | | , t.amount= #{amount} |
| | | </if> |
| | | <if test="contractType !=null and contractType != ''"> |
| | | , t.contract_type= #{contractType} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | , t.store_id= #{storeId} |
| | | </if> |
| | | <if test="operator !=null and operator != ''"> |
| | | , t.operator= #{operator} |
| | | </if> |
| | | <if test="signingTime !=null and signingTime != ''"> |
| | | , t.signing_time= #{signingTime} |
| | | </if> |
| | | <if test="bContacts !=null and bContacts != ''"> |
| | | , t.b_contacts= #{bContacts} |
| | | </if> |
| | | <if test="partyA !=null and partyA != ''"> |
| | | , t.party_a= #{partyA} |
| | | </if> |
| | | <if test="bLink !=null and bLink != ''"> |
| | | , t.b_link= #{bLink} |
| | | </if> |
| | | <if test="partyB !=null and partyB != ''"> |
| | | , t.party_b= #{partyB} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | , t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | , t.obj_id= #{objId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | , t.plan_id= #{planId} |
| | | </if> |
| | | <if test="contractName !=null and contractName != ''"> |
| | | , t.contract_name= #{contractName} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | , t.start_time= #{startTime} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | , t.end_time= #{endTime} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="contractCode !=null and contractCode != ''"> |
| | | , t.contract_code= #{contractCode} |
| | | </if> |
| | | <if test="objType !=null and objType != ''"> |
| | | , t.obj_type= #{objType} |
| | | </if> |
| | | <if test="operatorLink !=null and operatorLink != ''"> |
| | | , t.operator_link= #{operatorLink} |
| | | </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="queryContractChangePlanDetailsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from contract_change_plan_detail t |
| | | where 1 =1 |
| | | <if test="aLink !=null and aLink != ''"> |
| | | and t.a_link= #{aLink} |
| | | </if> |
| | | <if test="aContacts !=null and aContacts != ''"> |
| | | and t.a_contacts= #{aContacts} |
| | | </if> |
| | | <if test="amount !=null and amount != ''"> |
| | | and t.amount= #{amount} |
| | | </if> |
| | | <if test="contractType !=null and contractType != ''"> |
| | | and t.contract_type= #{contractType} |
| | | </if> |
| | | <if test="detailId !=null and detailId != ''"> |
| | | and t.detail_id= #{detailId} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <if test="operator !=null and operator != ''"> |
| | | and t.operator= #{operator} |
| | | </if> |
| | | <if test="signingTime !=null and signingTime != ''"> |
| | | and t.signing_time= #{signingTime} |
| | | </if> |
| | | <if test="bContacts !=null and bContacts != ''"> |
| | | and t.b_contacts= #{bContacts} |
| | | </if> |
| | | <if test="partyA !=null and partyA != ''"> |
| | | and t.party_a= #{partyA} |
| | | </if> |
| | | <if test="bLink !=null and bLink != ''"> |
| | | and t.b_link= #{bLink} |
| | | </if> |
| | | <if test="partyB !=null and partyB != ''"> |
| | | and t.party_b= #{partyB} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="objId !=null and objId != ''"> |
| | | and t.obj_id= #{objId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </if> |
| | | <if test="contractName !=null and contractName != ''"> |
| | | and t.contract_name= #{contractName} |
| | | </if> |
| | | <if test="startTime !=null and startTime != ''"> |
| | | and t.start_time= #{startTime} |
| | | </if> |
| | | <if test="endTime !=null and endTime != ''"> |
| | | and t.end_time= #{endTime} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="contractCode !=null and contractCode != ''"> |
| | | and t.contract_code= #{contractCode} |
| | | </if> |
| | | <if test="objType !=null and objType != ''"> |
| | | and t.obj_type= #{objType} |
| | | </if> |
| | | <if test="operatorLink !=null and operatorLink != ''"> |
| | | and t.operator_link= #{operatorLink} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <mapper namespace="contractChangePlanServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存合同变更计划信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveContractChangePlanInfo" parameterType="Map"> |
| | | insert into contract_change_plan( |
| | | plan_type,contract_id,plan_id,remark,change_person,state,store_id |
| | | ) values ( |
| | | #{planType},#{contractId},#{planId},#{remark},#{changePerson},#{state},#{storeId} |
| | | ) |
| | | plan_type,contract_id,plan_id,remark,change_person,state,store_id |
| | | ) values ( |
| | | #{planType},#{contractId},#{planId},#{remark},#{changePerson},#{state},#{storeId} |
| | | ) |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询合同变更计划信息 add by wuxw 2018-07-03 --> |
| | | <select id="getContractChangePlanInfo" parameterType="Map" resultType="Map"> |
| | | select t.plan_type,t.plan_type planType,t.contract_id,t.contract_id contractId,t.plan_id,t.plan_id planId,t.remark,t.status_cd,t.status_cd statusCd,t.change_person,t.change_person changePerson,t.state,t.store_id,t.store_id storeId |
| | | from contract_change_plan t |
| | | where 1 =1 |
| | | <if test="planType !=null and planType != ''"> |
| | | and t.plan_type= #{planType} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </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="changePerson !=null and changePerson != ''"> |
| | | and t.change_person= #{changePerson} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | order by t.create_time desc |
| | | <if test="page != -1 and page != null "> |
| | | limit #{page}, #{row} |
| | | </if> |
| | | select t.plan_type,t.plan_type planType,t.contract_id,t.contract_id contractId,t.plan_id,t.plan_id |
| | | planId,t.remark,t.status_cd,t.status_cd statusCd,t.change_person,t.change_person |
| | | changePerson,t.state,t.store_id,t.store_id storeId, |
| | | c.a_link,c.a_link aLink,c.a_contacts,c.a_contacts aContacts,c.amount,c.contract_type,c.contract_type |
| | | contractType,c.operator,c.signing_time,c.signing_time signingTime,c.b_contacts,c.b_contacts |
| | | bContacts,c.party_a,c.party_a partyA,c.b_link,c.b_link bLink,c.party_b,c.party_b |
| | | partyB,c.contract_id,c.contract_id contractId,c.obj_id,c.obj_id objId,c.contract_name,c.contract_name |
| | | contractName,c.start_time,c.start_time startTime,c.end_time,c.end_time |
| | | endTime,c.contract_code,c.contract_code contractCode,c.obj_type,c.obj_type |
| | | objType,c.operator_link,c.operator_link operatorLink,ct.type_name contractTypeName,td.`name` stateName |
| | | from contract_change_plan t |
| | | inner join contract c on t.contract_id = c.contract_id and c.status_cd = '0' and c.store_id = t.store_id |
| | | inner JOIN contract_type ct on c.contract_type = ct.contract_type_id and ct.status_cd = '0' and ct.store_id = c.store_id |
| | | left JOIN t_dict td on td.status_cd = t.state and td.table_name = 'contract_change_plan' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="planType !=null and planType != ''"> |
| | | and t.plan_type= #{planType} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </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="changePerson !=null and changePerson != ''"> |
| | | and t.change_person= #{changePerson} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </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="updateContractChangePlanInfo" parameterType="Map"> |
| | | update contract_change_plan t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="planType !=null and planType != ''"> |
| | | , t.plan_type= #{planType} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | , t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="changePerson !=null and changePerson != ''"> |
| | | , t.change_person= #{changePerson} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | , t.store_id= #{storeId} |
| | | </if> |
| | | where 1=1 <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </if> |
| | | update contract_change_plan t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="planType !=null and planType != ''"> |
| | | , t.plan_type= #{planType} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | , t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="changePerson !=null and changePerson != ''"> |
| | | , t.change_person= #{changePerson} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | , t.state= #{state} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | , t.store_id= #{storeId} |
| | | </if> |
| | | where 1=1 |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | | <!-- 查询合同变更计划数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryContractChangePlansCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from contract_change_plan t |
| | | where 1 =1 |
| | | <if test="planType !=null and planType != ''"> |
| | | and t.plan_type= #{planType} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </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="changePerson !=null and changePerson != ''"> |
| | | and t.change_person= #{changePerson} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | <select id="queryContractChangePlansCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from contract_change_plan t |
| | | inner join contract c on t.contract_id = c.contract_id and c.status_cd = '0' and c.store_id = t.store_id |
| | | inner JOIN contract_type ct on c.contract_type = ct.contract_type_id and ct.status_cd = '0' and ct.store_id = c.store_id |
| | | left JOIN t_dict td on td.status_cd = t.state and td.table_name = 'contract_change_plan' and td.table_columns = 'state' |
| | | where 1 =1 |
| | | <if test="planType !=null and planType != ''"> |
| | | and t.plan_type= #{planType} |
| | | </if> |
| | | <if test="contractId !=null and contractId != ''"> |
| | | and t.contract_id= #{contractId} |
| | | </if> |
| | | <if test="planId !=null and planId != ''"> |
| | | and t.plan_id= #{planId} |
| | | </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="changePerson !=null and changePerson != ''"> |
| | | and t.change_person= #{changePerson} |
| | | </if> |
| | | <if test="state !=null and state != ''"> |
| | | and t.state= #{state} |
| | | </if> |
| | | <if test="storeId !=null and storeId != ''"> |
| | | and t.store_id= #{storeId} |
| | | </if> |
| | | |
| | | |
| | | </select> |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | { |
| | | "autoMove": true, |
| | | "id": "planId", |
| | | "name": "contractChangePlan", |
| | | "desc": "合同变更计划", |
| | | "id": "attrId", |
| | | "name": "contractChangePlanDetailAttr", |
| | | "desc": "合同变更属性", |
| | | "shareParam": "storeId", |
| | | "shareColumn": "store_id", |
| | | "shareName": "store", |
| | | "tableName": "contract_change_plan", |
| | | "tableName": "contract_change_plan_detail_attr", |
| | | "param": { |
| | | "planId": "plan_id", |
| | | "contractId": "contract_id", |
| | | "planType": "plan_type", |
| | | "changePerson": "change_person", |
| | | "remark": "remark", |
| | | "state": "state", |
| | | "storeId": "store_id", |
| | | "detailId": "detail_id", |
| | | "contractId": "contract_id", |
| | | "attrId": "attr_id", |
| | | "specCd": "spec_cd", |
| | | "value": "value", |
| | | "statusCd": "status_cd" |
| | | }, |
| | | "required": [ |
| | | { |
| | | "code": "planType", |
| | | "msg": "变更类型不能为空" |
| | | "code": "contractId", |
| | | "msg": "合同ID不能为空" |
| | | }, |
| | | { |
| | | "code": "changePerson", |
| | | "msg": "变更人不能为空" |
| | | }, |
| | | { |
| | | "code": "state", |
| | | "msg": "审核状态不能为空" |
| | | "code": "detailId", |
| | | "msg": "变更明细不能为空" |
| | | }, |
| | | { |
| | | "code": "storeId", |
| | | "msg": "商户不能为空" |
| | | "msg": "商户ID不能为空" |
| | | }, |
| | | { |
| | | "code": "specCd", |
| | | "msg": "用户规格不能为空" |
| | | } |
| | | ] |
| | | } |
| New file |
| | |
| | | package com.java110.intf.store; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.contractChangePlanDetailAttr.ContractChangePlanDetailAttrDto; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | 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 IContractChangePlanDetailAttrInnerServiceSMO |
| | | * @Description 合同变更属性接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "store-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/contractChangePlanDetailAttrApi") |
| | | public interface IContractChangePlanDetailAttrInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveContractChangePlanDetailAttr", method = RequestMethod.POST) |
| | | public int saveContractChangePlanDetailAttr(@RequestBody ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo); |
| | | |
| | | @RequestMapping(value = "/updateContractChangePlanDetailAttr", method = RequestMethod.POST) |
| | | public int updateContractChangePlanDetailAttr(@RequestBody ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo); |
| | | |
| | | @RequestMapping(value = "/deleteContractChangePlanDetailAttr", method = RequestMethod.POST) |
| | | public int deleteContractChangePlanDetailAttr(@RequestBody ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param contractChangePlanDetailAttrDto 数据对象分享 |
| | | * @return ContractChangePlanDetailAttrDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryContractChangePlanDetailAttrs", method = RequestMethod.POST) |
| | | List<ContractChangePlanDetailAttrDto> queryContractChangePlanDetailAttrs(@RequestBody ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param contractChangePlanDetailAttrDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryContractChangePlanDetailAttrsCount", method = RequestMethod.POST) |
| | | int queryContractChangePlanDetailAttrsCount(@RequestBody ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto); |
| | | } |
| New file |
| | |
| | | package com.java110.intf.store; |
| | | |
| | | import com.java110.config.feign.FeignConfiguration; |
| | | import com.java110.dto.contractChangePlanDetail.ContractChangePlanDetailDto; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | 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 IContractChangePlanDetailInnerServiceSMO |
| | | * @Description 合同变更明细接口类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:04 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @FeignClient(name = "store-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/contractChangePlanDetailApi") |
| | | public interface IContractChangePlanDetailInnerServiceSMO { |
| | | |
| | | |
| | | @RequestMapping(value = "/saveContractChangePlanDetail", method = RequestMethod.POST) |
| | | public int saveContractChangePlanDetail(@RequestBody ContractChangePlanDetailPo contractChangePlanDetailPo); |
| | | |
| | | @RequestMapping(value = "/updateContractChangePlanDetail", method = RequestMethod.POST) |
| | | public int updateContractChangePlanDetail(@RequestBody ContractChangePlanDetailPo contractChangePlanDetailPo); |
| | | |
| | | @RequestMapping(value = "/deleteContractChangePlanDetail", method = RequestMethod.POST) |
| | | public int deleteContractChangePlanDetail(@RequestBody ContractChangePlanDetailPo contractChangePlanDetailPo); |
| | | |
| | | /** |
| | | * <p>查询小区楼信息</p> |
| | | * |
| | | * |
| | | * @param contractChangePlanDetailDto 数据对象分享 |
| | | * @return ContractChangePlanDetailDto 对象数据 |
| | | */ |
| | | @RequestMapping(value = "/queryContractChangePlanDetails", method = RequestMethod.POST) |
| | | List<ContractChangePlanDetailDto> queryContractChangePlanDetails(@RequestBody ContractChangePlanDetailDto contractChangePlanDetailDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param contractChangePlanDetailDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/queryContractChangePlanDetailsCount", method = RequestMethod.POST) |
| | | int queryContractChangePlanDetailsCount(@RequestBody ContractChangePlanDetailDto contractChangePlanDetailDto); |
| | | } |
| | |
| | | import com.java110.dto.contract.ContractDto; |
| | | import com.java110.dto.contractAttr.ContractAttrDto; |
| | | import com.java110.dto.contractChangePlan.ContractChangePlanDto; |
| | | import com.java110.dto.contractChangePlanDetail.ContractChangePlanDetailDto; |
| | | import com.java110.dto.contractChangePlanDetailAttr.ContractChangePlanDetailAttrDto; |
| | | import com.java110.dto.contractType.ContractTypeDto; |
| | | import com.java110.dto.contractTypeSpec.ContractTypeSpecDto; |
| | | import com.java110.dto.contractTypeTemplate.ContractTypeTemplateDto; |
| | | import com.java110.po.contract.ContractPo; |
| | | import com.java110.po.contractAttr.ContractAttrPo; |
| | | import com.java110.po.contractChangePlan.ContractChangePlanPo; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import com.java110.po.contractType.ContractTypePo; |
| | | import com.java110.po.contractTypeSpec.ContractTypeSpecPo; |
| | | import com.java110.po.contractTypeTemplate.ContractTypeTemplatePo; |
| | |
| | | import com.java110.store.bmo.contractChangePlan.IGetContractChangePlanBMO; |
| | | import com.java110.store.bmo.contractChangePlan.ISaveContractChangePlanBMO; |
| | | import com.java110.store.bmo.contractChangePlan.IUpdateContractChangePlanBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetail.IDeleteContractChangePlanDetailBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetail.IGetContractChangePlanDetailBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetail.ISaveContractChangePlanDetailBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetail.IUpdateContractChangePlanDetailBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.IDeleteContractChangePlanDetailAttrBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.IGetContractChangePlanDetailAttrBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.ISaveContractChangePlanDetailAttrBMO; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.IUpdateContractChangePlanDetailAttrBMO; |
| | | import com.java110.store.bmo.contractType.IDeleteContractTypeBMO; |
| | | import com.java110.store.bmo.contractType.IGetContractTypeBMO; |
| | | import com.java110.store.bmo.contractType.ISaveContractTypeBMO; |
| | |
| | | |
| | | @Autowired |
| | | private IGetContractChangePlanBMO getContractChangePlanBMOImpl; |
| | | |
| | | |
| | | @Autowired |
| | | private ISaveContractChangePlanDetailBMO saveContractChangePlanDetailBMOImpl; |
| | | @Autowired |
| | | private IUpdateContractChangePlanDetailBMO updateContractChangePlanDetailBMOImpl; |
| | | @Autowired |
| | | private IDeleteContractChangePlanDetailBMO deleteContractChangePlanDetailBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetContractChangePlanDetailBMO getContractChangePlanDetailBMOImpl; |
| | | |
| | | @Autowired |
| | | private ISaveContractChangePlanDetailAttrBMO saveContractChangePlanDetailAttrBMOImpl; |
| | | @Autowired |
| | | private IUpdateContractChangePlanDetailAttrBMO updateContractChangePlanDetailAttrBMOImpl; |
| | | @Autowired |
| | | private IDeleteContractChangePlanDetailAttrBMO deleteContractChangePlanDetailAttrBMOImpl; |
| | | |
| | | @Autowired |
| | | private IGetContractChangePlanDetailAttrBMO getContractChangePlanDetailAttrBMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | |
| | | @RequestMapping(value = "/queryContractChangePlan", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryContractChangePlan(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | @RequestParam(value = "row") int row, |
| | | @RequestParam(value = "contractId") String contractId, |
| | | @RequestParam(value = "contractName") String contractName, |
| | | @RequestParam(value = "planId") String planId |
| | | ) { |
| | | ContractChangePlanDto contractChangePlanDto = new ContractChangePlanDto(); |
| | | contractChangePlanDto.setPage(page); |
| | | contractChangePlanDto.setRow(row); |
| | | contractChangePlanDto.setStoreId(storeId); |
| | | contractChangePlanDto.setContractId(contractId); |
| | | contractChangePlanDto.setContractName(contractName); |
| | | contractChangePlanDto.setPlanId(planId); |
| | | return getContractChangePlanBMOImpl.get(contractChangePlanDto); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/saveContractChangePlanDetail |
| | | * @path /app/contract/saveContractChangePlanDetail |
| | | */ |
| | | @RequestMapping(value = "/saveContractChangePlanDetail", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveContractChangePlanDetail(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "contractCode", "请求报文中未包含contractCode"); |
| | | Assert.hasKeyAndValue(reqJson, "contractName", "请求报文中未包含contractName"); |
| | | Assert.hasKeyAndValue(reqJson, "contractType", "请求报文中未包含contractType"); |
| | | Assert.hasKeyAndValue(reqJson, "partyA", "请求报文中未包含partyA"); |
| | | Assert.hasKeyAndValue(reqJson, "partyB", "请求报文中未包含partyB"); |
| | | Assert.hasKeyAndValue(reqJson, "aContacts", "请求报文中未包含aContacts"); |
| | | Assert.hasKeyAndValue(reqJson, "aLink", "请求报文中未包含aLink"); |
| | | Assert.hasKeyAndValue(reqJson, "bContacts", "请求报文中未包含bContacts"); |
| | | Assert.hasKeyAndValue(reqJson, "bLink", "请求报文中未包含bLink"); |
| | | Assert.hasKeyAndValue(reqJson, "operator", "请求报文中未包含operator"); |
| | | Assert.hasKeyAndValue(reqJson, "operatorLink", "请求报文中未包含operatorLink"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | Assert.hasKeyAndValue(reqJson, "signingTime", "请求报文中未包含signingTime"); |
| | | |
| | | |
| | | ContractChangePlanDetailPo contractChangePlanDetailPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailPo.class); |
| | | contractChangePlanDetailPo.setStoreId(storeId); |
| | | return saveContractChangePlanDetailBMOImpl.save(contractChangePlanDetailPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/updateContractChangePlanDetail |
| | | * @path /app/contract/updateContractChangePlanDetail |
| | | */ |
| | | @RequestMapping(value = "/updateContractChangePlanDetail", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateContractChangePlanDetail(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "contractCode", "请求报文中未包含contractCode"); |
| | | Assert.hasKeyAndValue(reqJson, "contractName", "请求报文中未包含contractName"); |
| | | Assert.hasKeyAndValue(reqJson, "contractType", "请求报文中未包含contractType"); |
| | | Assert.hasKeyAndValue(reqJson, "partyA", "请求报文中未包含partyA"); |
| | | Assert.hasKeyAndValue(reqJson, "partyB", "请求报文中未包含partyB"); |
| | | Assert.hasKeyAndValue(reqJson, "aContacts", "请求报文中未包含aContacts"); |
| | | Assert.hasKeyAndValue(reqJson, "aLink", "请求报文中未包含aLink"); |
| | | Assert.hasKeyAndValue(reqJson, "bContacts", "请求报文中未包含bContacts"); |
| | | Assert.hasKeyAndValue(reqJson, "bLink", "请求报文中未包含bLink"); |
| | | Assert.hasKeyAndValue(reqJson, "operator", "请求报文中未包含operator"); |
| | | Assert.hasKeyAndValue(reqJson, "operatorLink", "请求报文中未包含operatorLink"); |
| | | Assert.hasKeyAndValue(reqJson, "startTime", "请求报文中未包含startTime"); |
| | | Assert.hasKeyAndValue(reqJson, "endTime", "请求报文中未包含endTime"); |
| | | Assert.hasKeyAndValue(reqJson, "signingTime", "请求报文中未包含signingTime"); |
| | | Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空"); |
| | | |
| | | |
| | | ContractChangePlanDetailPo contractChangePlanDetailPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailPo.class); |
| | | return updateContractChangePlanDetailBMOImpl.update(contractChangePlanDetailPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/deleteContractChangePlanDetail |
| | | * @path /app/contract/deleteContractChangePlanDetail |
| | | */ |
| | | @RequestMapping(value = "/deleteContractChangePlanDetail", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteContractChangePlanDetail(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "detailId", "detailId不能为空"); |
| | | |
| | | |
| | | ContractChangePlanDetailPo contractChangePlanDetailPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailPo.class); |
| | | return deleteContractChangePlanDetailBMOImpl.delete(contractChangePlanDetailPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | | * @param storeId 小区ID |
| | | * @return |
| | | * @serviceCode /contract/queryContractChangePlanDetail |
| | | * @path /app/contract/queryContractChangePlanDetail |
| | | */ |
| | | @RequestMapping(value = "/queryContractChangePlanDetail", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryContractChangePlanDetail(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | ContractChangePlanDetailDto contractChangePlanDetailDto = new ContractChangePlanDetailDto(); |
| | | contractChangePlanDetailDto.setPage(page); |
| | | contractChangePlanDetailDto.setRow(row); |
| | | contractChangePlanDetailDto.setStoreId(storeId); |
| | | return getContractChangePlanDetailBMOImpl.get(contractChangePlanDetailDto); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/saveContractChangePlanDetailAttr |
| | | * @path /app/contract/saveContractChangePlanDetailAttr |
| | | */ |
| | | @RequestMapping(value = "/saveContractChangePlanDetailAttr", method = RequestMethod.POST) |
| | | public ResponseEntity<String> saveContractChangePlanDetailAttr(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "contractId", "请求报文中未包含contractId"); |
| | | Assert.hasKeyAndValue(reqJson, "detailId", "请求报文中未包含detailId"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "请求报文中未包含storeId"); |
| | | Assert.hasKeyAndValue(reqJson, "specCd", "请求报文中未包含specCd"); |
| | | |
| | | |
| | | ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailAttrPo.class); |
| | | return saveContractChangePlanDetailAttrBMOImpl.save(contractChangePlanDetailAttrPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信修改消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/updateContractChangePlanDetailAttr |
| | | * @path /app/contract/updateContractChangePlanDetailAttr |
| | | */ |
| | | @RequestMapping(value = "/updateContractChangePlanDetailAttr", method = RequestMethod.POST) |
| | | public ResponseEntity<String> updateContractChangePlanDetailAttr(@RequestBody JSONObject reqJson) { |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "contractId", "请求报文中未包含contractId"); |
| | | Assert.hasKeyAndValue(reqJson, "detailId", "请求报文中未包含detailId"); |
| | | Assert.hasKeyAndValue(reqJson, "storeId", "请求报文中未包含storeId"); |
| | | Assert.hasKeyAndValue(reqJson, "specCd", "请求报文中未包含specCd"); |
| | | Assert.hasKeyAndValue(reqJson, "attrId", "attrId不能为空"); |
| | | |
| | | ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailAttrPo.class); |
| | | return updateContractChangePlanDetailAttrBMOImpl.update(contractChangePlanDetailAttrPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | | * @param reqJson |
| | | * @return |
| | | * @serviceCode /contract/deleteContractChangePlanDetailAttr |
| | | * @path /app/contract/deleteContractChangePlanDetailAttr |
| | | */ |
| | | @RequestMapping(value = "/deleteContractChangePlanDetailAttr", method = RequestMethod.POST) |
| | | public ResponseEntity<String> deleteContractChangePlanDetailAttr(@RequestBody JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "小区ID不能为空"); |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "attrId", "attrId不能为空"); |
| | | |
| | | |
| | | ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo = BeanConvertUtil.covertBean(reqJson, ContractChangePlanDetailAttrPo.class); |
| | | return deleteContractChangePlanDetailAttrBMOImpl.delete(contractChangePlanDetailAttrPo); |
| | | } |
| | | |
| | | /** |
| | | * 微信删除消息模板 |
| | | * |
| | | * @param storeId 商户ID |
| | | * @return |
| | | * @serviceCode /contract/queryContractChangePlanDetailAttr |
| | | * @path /app/contract/queryContractChangePlanDetailAttr |
| | | */ |
| | | @RequestMapping(value = "/queryContractChangePlanDetailAttr", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryContractChangePlanDetailAttr(@RequestHeader(value = "store-id") String storeId, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto = new ContractChangePlanDetailAttrDto(); |
| | | contractChangePlanDetailAttrDto.setPage(page); |
| | | contractChangePlanDetailAttrDto.setRow(row); |
| | | contractChangePlanDetailAttrDto.setStoreId(storeId); |
| | | return getContractChangePlanDetailAttrBMOImpl.get(contractChangePlanDetailAttrDto); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteContractChangePlanDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更明细 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(ContractChangePlanDetailPo contractChangePlanDetailPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail; |
| | | import com.java110.dto.contractChangePlanDetail.ContractChangePlanDetailDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetContractChangePlanDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询合同变更明细 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(ContractChangePlanDetailDto contractChangePlanDetailDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail; |
| | | |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveContractChangePlanDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加合同变更明细 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(ContractChangePlanDetailPo contractChangePlanDetailPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateContractChangePlanDetailBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更明细 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(ContractChangePlanDetailPo contractChangePlanDetailPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.store.IContractChangePlanDetailInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import com.java110.store.bmo.contractChangePlanDetail.IDeleteContractChangePlanDetailBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("deleteContractChangePlanDetailBMOImpl") |
| | | public class DeleteContractChangePlanDetailBMOImpl implements IDeleteContractChangePlanDetailBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailInnerServiceSMO contractChangePlanDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param contractChangePlanDetailPo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(ContractChangePlanDetailPo contractChangePlanDetailPo) { |
| | | |
| | | int flag = contractChangePlanDetailInnerServiceSMOImpl.deleteContractChangePlanDetail(contractChangePlanDetailPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail.impl; |
| | | |
| | | import com.java110.dto.contractChangePlanDetail.ContractChangePlanDetailDto; |
| | | import com.java110.intf.store.IContractChangePlanDetailInnerServiceSMO; |
| | | import com.java110.store.bmo.contractChangePlanDetail.IGetContractChangePlanDetailBMO; |
| | | 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 java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getContractChangePlanDetailBMOImpl") |
| | | public class GetContractChangePlanDetailBMOImpl implements IGetContractChangePlanDetailBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailInnerServiceSMO contractChangePlanDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param contractChangePlanDetailDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(ContractChangePlanDetailDto contractChangePlanDetailDto) { |
| | | |
| | | |
| | | int count = contractChangePlanDetailInnerServiceSMOImpl.queryContractChangePlanDetailsCount(contractChangePlanDetailDto); |
| | | |
| | | List<ContractChangePlanDetailDto> contractChangePlanDetailDtos = null; |
| | | if (count > 0) { |
| | | contractChangePlanDetailDtos = contractChangePlanDetailInnerServiceSMOImpl.queryContractChangePlanDetails(contractChangePlanDetailDto); |
| | | } else { |
| | | contractChangePlanDetailDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) contractChangePlanDetailDto.getRow()), count, contractChangePlanDetailDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.store.IContractChangePlanDetailInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import com.java110.store.bmo.contractChangePlanDetail.ISaveContractChangePlanDetailBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveContractChangePlanDetailBMOImpl") |
| | | public class SaveContractChangePlanDetailBMOImpl implements ISaveContractChangePlanDetailBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailInnerServiceSMO contractChangePlanDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param contractChangePlanDetailPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(ContractChangePlanDetailPo contractChangePlanDetailPo) { |
| | | |
| | | contractChangePlanDetailPo.setDetailId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_detailId)); |
| | | int flag = contractChangePlanDetailInnerServiceSMOImpl.saveContractChangePlanDetail(contractChangePlanDetailPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetail.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.store.IContractChangePlanDetailInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import com.java110.store.bmo.contractChangePlanDetail.IUpdateContractChangePlanDetailBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("updateContractChangePlanDetailBMOImpl") |
| | | public class UpdateContractChangePlanDetailBMOImpl implements IUpdateContractChangePlanDetailBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailInnerServiceSMO contractChangePlanDetailInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param contractChangePlanDetailPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(ContractChangePlanDetailPo contractChangePlanDetailPo) { |
| | | |
| | | int flag = contractChangePlanDetailInnerServiceSMOImpl.updateContractChangePlanDetail(contractChangePlanDetailPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr; |
| | | |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IDeleteContractChangePlanDetailAttrBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更属性 |
| | | * add by wuxw |
| | | * |
| | | * @param contractChangePlanDetailAttrPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> delete(ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr; |
| | | import com.java110.dto.contractChangePlanDetailAttr.ContractChangePlanDetailAttrDto; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface IGetContractChangePlanDetailAttrBMO { |
| | | |
| | | |
| | | /** |
| | | * 查询合同变更属性 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailAttrDto |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> get(ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr; |
| | | |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | public interface ISaveContractChangePlanDetailAttrBMO { |
| | | |
| | | |
| | | /** |
| | | * 添加合同变更属性 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailAttrPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> save(ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import org.springframework.http.ResponseEntity; |
| | | |
| | | public interface IUpdateContractChangePlanDetailAttrBMO { |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更属性 |
| | | * add by wuxw |
| | | * @param contractChangePlanDetailAttrPo |
| | | * @return |
| | | */ |
| | | ResponseEntity<String> update(ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.store.IContractChangePlanDetailAttrInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.IDeleteContractChangePlanDetailAttrBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("deleteContractChangePlanDetailAttrBMOImpl") |
| | | public class DeleteContractChangePlanDetailAttrBMOImpl implements IDeleteContractChangePlanDetailAttrBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailAttrInnerServiceSMO contractChangePlanDetailAttrInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param contractChangePlanDetailAttrPo 数据 |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> delete(ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo) { |
| | | |
| | | int flag = contractChangePlanDetailAttrInnerServiceSMOImpl.deleteContractChangePlanDetailAttr(contractChangePlanDetailAttrPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr.impl; |
| | | |
| | | import com.java110.dto.contractChangePlanDetailAttr.ContractChangePlanDetailAttrDto; |
| | | import com.java110.intf.store.IContractChangePlanDetailAttrInnerServiceSMO; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.IGetContractChangePlanDetailAttrBMO; |
| | | 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 java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service("getContractChangePlanDetailAttrBMOImpl") |
| | | public class GetContractChangePlanDetailAttrBMOImpl implements IGetContractChangePlanDetailAttrBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailAttrInnerServiceSMO contractChangePlanDetailAttrInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * @param contractChangePlanDetailAttrDto |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | public ResponseEntity<String> get(ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto) { |
| | | |
| | | |
| | | int count = contractChangePlanDetailAttrInnerServiceSMOImpl.queryContractChangePlanDetailAttrsCount(contractChangePlanDetailAttrDto); |
| | | |
| | | List<ContractChangePlanDetailAttrDto> contractChangePlanDetailAttrDtos = null; |
| | | if (count > 0) { |
| | | contractChangePlanDetailAttrDtos = contractChangePlanDetailAttrInnerServiceSMOImpl.queryContractChangePlanDetailAttrs(contractChangePlanDetailAttrDto); |
| | | } else { |
| | | contractChangePlanDetailAttrDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) contractChangePlanDetailAttrDto.getRow()), count, contractChangePlanDetailAttrDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.store.IContractChangePlanDetailAttrInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.ISaveContractChangePlanDetailAttrBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("saveContractChangePlanDetailAttrBMOImpl") |
| | | public class SaveContractChangePlanDetailAttrBMOImpl implements ISaveContractChangePlanDetailAttrBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailAttrInnerServiceSMO contractChangePlanDetailAttrInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 添加小区信息 |
| | | * |
| | | * @param contractChangePlanDetailAttrPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> save(ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo) { |
| | | |
| | | contractChangePlanDetailAttrPo.setAttrId(GenerateCodeFactory.getGeneratorId(GenerateCodeFactory.CODE_PREFIX_attrId)); |
| | | int flag = contractChangePlanDetailAttrInnerServiceSMOImpl.saveContractChangePlanDetailAttr(contractChangePlanDetailAttrPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.bmo.contractChangePlanDetailAttr.impl; |
| | | |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.intf.store.IContractChangePlanDetailAttrInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import com.java110.store.bmo.contractChangePlanDetailAttr.IUpdateContractChangePlanDetailAttrBMO; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("updateContractChangePlanDetailAttrBMOImpl") |
| | | public class UpdateContractChangePlanDetailAttrBMOImpl implements IUpdateContractChangePlanDetailAttrBMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailAttrInnerServiceSMO contractChangePlanDetailAttrInnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * |
| | | * |
| | | * @param contractChangePlanDetailAttrPo |
| | | * @return 订单服务能够接受的报文 |
| | | */ |
| | | @Java110Transactional |
| | | public ResponseEntity<String> update(ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo) { |
| | | |
| | | int flag = contractChangePlanDetailAttrInnerServiceSMOImpl.updateContractChangePlanDetailAttr(contractChangePlanDetailAttrPo); |
| | | |
| | | if (flag > 0) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, "保存成功"); |
| | | } |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_ERROR, "保存失败"); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.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 IContractChangePlanDetailAttrServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 合同变更属性信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveContractChangePlanDetailAttrInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询合同变更属性信息(instance过程) |
| | | * 根据bId 查询合同变更属性信息 |
| | | * @param info bId 信息 |
| | | * @return 合同变更属性信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getContractChangePlanDetailAttrInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更属性信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateContractChangePlanDetailAttrInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询合同变更属性总数 |
| | | * |
| | | * @param info 合同变更属性信息 |
| | | * @return 合同变更属性数量 |
| | | */ |
| | | int queryContractChangePlanDetailAttrsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.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 IContractChangePlanDetailServiceDao { |
| | | |
| | | |
| | | /** |
| | | * 保存 合同变更明细信息 |
| | | * @param info |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void saveContractChangePlanDetailInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询合同变更明细信息(instance过程) |
| | | * 根据bId 查询合同变更明细信息 |
| | | * @param info bId 信息 |
| | | * @return 合同变更明细信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | List<Map> getContractChangePlanDetailInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更明细信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | void updateContractChangePlanDetailInfo(Map info) throws DAOException; |
| | | |
| | | |
| | | /** |
| | | * 查询合同变更明细总数 |
| | | * |
| | | * @param info 合同变更明细信息 |
| | | * @return 合同变更明细数量 |
| | | */ |
| | | int queryContractChangePlanDetailsCount(Map info); |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.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.store.dao.IContractChangePlanDetailAttrServiceDao; |
| | | 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("contractChangePlanDetailAttrServiceDaoImpl") |
| | | //@Transactional |
| | | public class ContractChangePlanDetailAttrServiceDaoImpl extends BaseServiceDao implements IContractChangePlanDetailAttrServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ContractChangePlanDetailAttrServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存合同变更属性信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveContractChangePlanDetailAttrInfo(Map info) throws DAOException { |
| | | logger.debug("保存合同变更属性信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("contractChangePlanDetailAttrServiceDaoImpl.saveContractChangePlanDetailAttrInfo",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> getContractChangePlanDetailAttrInfo(Map info) throws DAOException { |
| | | logger.debug("查询合同变更属性信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessContractChangePlanDetailAttrInfos = sqlSessionTemplate.selectList("contractChangePlanDetailAttrServiceDaoImpl.getContractChangePlanDetailAttrInfo",info); |
| | | |
| | | return businessContractChangePlanDetailAttrInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更属性信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateContractChangePlanDetailAttrInfo(Map info) throws DAOException { |
| | | logger.debug("修改合同变更属性信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("contractChangePlanDetailAttrServiceDaoImpl.updateContractChangePlanDetailAttrInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改合同变更属性信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询合同变更属性数量 |
| | | * @param info 合同变更属性信息 |
| | | * @return 合同变更属性数量 |
| | | */ |
| | | @Override |
| | | public int queryContractChangePlanDetailAttrsCount(Map info) { |
| | | logger.debug("查询合同变更属性数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessContractChangePlanDetailAttrInfos = sqlSessionTemplate.selectList("contractChangePlanDetailAttrServiceDaoImpl.queryContractChangePlanDetailAttrsCount", info); |
| | | if (businessContractChangePlanDetailAttrInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessContractChangePlanDetailAttrInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.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.store.dao.IContractChangePlanDetailServiceDao; |
| | | 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("contractChangePlanDetailServiceDaoImpl") |
| | | //@Transactional |
| | | public class ContractChangePlanDetailServiceDaoImpl extends BaseServiceDao implements IContractChangePlanDetailServiceDao { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ContractChangePlanDetailServiceDaoImpl.class); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 保存合同变更明细信息 到 instance |
| | | * @param info bId 信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void saveContractChangePlanDetailInfo(Map info) throws DAOException { |
| | | logger.debug("保存合同变更明细信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("contractChangePlanDetailServiceDaoImpl.saveContractChangePlanDetailInfo",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> getContractChangePlanDetailInfo(Map info) throws DAOException { |
| | | logger.debug("查询合同变更明细信息 入参 info : {}",info); |
| | | |
| | | List<Map> businessContractChangePlanDetailInfos = sqlSessionTemplate.selectList("contractChangePlanDetailServiceDaoImpl.getContractChangePlanDetailInfo",info); |
| | | |
| | | return businessContractChangePlanDetailInfos; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 修改合同变更明细信息 |
| | | * @param info 修改信息 |
| | | * @throws DAOException DAO异常 |
| | | */ |
| | | @Override |
| | | public void updateContractChangePlanDetailInfo(Map info) throws DAOException { |
| | | logger.debug("修改合同变更明细信息Instance 入参 info : {}",info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("contractChangePlanDetailServiceDaoImpl.updateContractChangePlanDetailInfo",info); |
| | | |
| | | if(saveFlag < 1){ |
| | | throw new DAOException(ResponseConstant.RESULT_PARAM_ERROR,"修改合同变更明细信息Instance数据失败:"+ JSONObject.toJSONString(info)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询合同变更明细数量 |
| | | * @param info 合同变更明细信息 |
| | | * @return 合同变更明细数量 |
| | | */ |
| | | @Override |
| | | public int queryContractChangePlanDetailsCount(Map info) { |
| | | logger.debug("查询合同变更明细数据 入参 info : {}",info); |
| | | |
| | | List<Map> businessContractChangePlanDetailInfos = sqlSessionTemplate.selectList("contractChangePlanDetailServiceDaoImpl.queryContractChangePlanDetailsCount", info); |
| | | if (businessContractChangePlanDetailInfos.size() < 1) { |
| | | return 0; |
| | | } |
| | | |
| | | return Integer.parseInt(businessContractChangePlanDetailInfos.get(0).get("count").toString()); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.java110.store.smo.impl; |
| | | |
| | | |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.contractChangePlanDetailAttr.ContractChangePlanDetailAttrDto; |
| | | import com.java110.intf.store.IContractChangePlanDetailAttrInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetailAttr.ContractChangePlanDetailAttrPo; |
| | | import com.java110.store.dao.IContractChangePlanDetailAttrServiceDao; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 合同变更属性内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class ContractChangePlanDetailAttrInnerServiceSMOImpl extends BaseServiceSMO implements IContractChangePlanDetailAttrInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailAttrServiceDao contractChangePlanDetailAttrServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveContractChangePlanDetailAttr(@RequestBody ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo) { |
| | | int saveFlag = 1; |
| | | contractChangePlanDetailAttrServiceDaoImpl.saveContractChangePlanDetailAttrInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailAttrPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateContractChangePlanDetailAttr(@RequestBody ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo) { |
| | | int saveFlag = 1; |
| | | contractChangePlanDetailAttrServiceDaoImpl.updateContractChangePlanDetailAttrInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailAttrPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteContractChangePlanDetailAttr(@RequestBody ContractChangePlanDetailAttrPo contractChangePlanDetailAttrPo) { |
| | | int saveFlag = 1; |
| | | contractChangePlanDetailAttrPo.setStatusCd("1"); |
| | | contractChangePlanDetailAttrServiceDaoImpl.updateContractChangePlanDetailAttrInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailAttrPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ContractChangePlanDetailAttrDto> queryContractChangePlanDetailAttrs(@RequestBody ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = contractChangePlanDetailAttrDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | contractChangePlanDetailAttrDto.setPage((page - 1) * contractChangePlanDetailAttrDto.getRow()); |
| | | } |
| | | |
| | | List<ContractChangePlanDetailAttrDto> contractChangePlanDetailAttrs = BeanConvertUtil.covertBeanList(contractChangePlanDetailAttrServiceDaoImpl.getContractChangePlanDetailAttrInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailAttrDto)), ContractChangePlanDetailAttrDto.class); |
| | | |
| | | return contractChangePlanDetailAttrs; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryContractChangePlanDetailAttrsCount(@RequestBody ContractChangePlanDetailAttrDto contractChangePlanDetailAttrDto) { |
| | | return contractChangePlanDetailAttrServiceDaoImpl.queryContractChangePlanDetailAttrsCount(BeanConvertUtil.beanCovertMap(contractChangePlanDetailAttrDto)); |
| | | } |
| | | |
| | | public IContractChangePlanDetailAttrServiceDao getContractChangePlanDetailAttrServiceDaoImpl() { |
| | | return contractChangePlanDetailAttrServiceDaoImpl; |
| | | } |
| | | |
| | | public void setContractChangePlanDetailAttrServiceDaoImpl(IContractChangePlanDetailAttrServiceDao contractChangePlanDetailAttrServiceDaoImpl) { |
| | | this.contractChangePlanDetailAttrServiceDaoImpl = contractChangePlanDetailAttrServiceDaoImpl; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.java110.store.smo.impl; |
| | | |
| | | |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.contractChangePlanDetail.ContractChangePlanDetailDto; |
| | | import com.java110.intf.store.IContractChangePlanDetailInnerServiceSMO; |
| | | import com.java110.po.contractChangePlanDetail.ContractChangePlanDetailPo; |
| | | import com.java110.store.dao.IContractChangePlanDetailServiceDao; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | | * @Description 合同变更明细内部服务实现类 |
| | | * @Author wuxw |
| | | * @Date 2019/4/24 9:20 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/4/24 |
| | | **/ |
| | | @RestController |
| | | public class ContractChangePlanDetailInnerServiceSMOImpl extends BaseServiceSMO implements IContractChangePlanDetailInnerServiceSMO { |
| | | |
| | | @Autowired |
| | | private IContractChangePlanDetailServiceDao contractChangePlanDetailServiceDaoImpl; |
| | | |
| | | |
| | | @Override |
| | | public int saveContractChangePlanDetail(@RequestBody ContractChangePlanDetailPo contractChangePlanDetailPo) { |
| | | int saveFlag = 1; |
| | | contractChangePlanDetailServiceDaoImpl.saveContractChangePlanDetailInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int updateContractChangePlanDetail(@RequestBody ContractChangePlanDetailPo contractChangePlanDetailPo) { |
| | | int saveFlag = 1; |
| | | contractChangePlanDetailServiceDaoImpl.updateContractChangePlanDetailInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteContractChangePlanDetail(@RequestBody ContractChangePlanDetailPo contractChangePlanDetailPo) { |
| | | int saveFlag = 1; |
| | | contractChangePlanDetailPo.setState("DEL"); |
| | | contractChangePlanDetailServiceDaoImpl.updateContractChangePlanDetailInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailPo)); |
| | | return saveFlag; |
| | | } |
| | | |
| | | @Override |
| | | public List<ContractChangePlanDetailDto> queryContractChangePlanDetails(@RequestBody ContractChangePlanDetailDto contractChangePlanDetailDto) { |
| | | |
| | | //校验是否传了 分页信息 |
| | | |
| | | int page = contractChangePlanDetailDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | contractChangePlanDetailDto.setPage((page - 1) * contractChangePlanDetailDto.getRow()); |
| | | } |
| | | |
| | | List<ContractChangePlanDetailDto> contractChangePlanDetails = BeanConvertUtil.covertBeanList(contractChangePlanDetailServiceDaoImpl.getContractChangePlanDetailInfo(BeanConvertUtil.beanCovertMap(contractChangePlanDetailDto)), ContractChangePlanDetailDto.class); |
| | | |
| | | return contractChangePlanDetails; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryContractChangePlanDetailsCount(@RequestBody ContractChangePlanDetailDto contractChangePlanDetailDto) { |
| | | return contractChangePlanDetailServiceDaoImpl.queryContractChangePlanDetailsCount(BeanConvertUtil.beanCovertMap(contractChangePlanDetailDto)); |
| | | } |
| | | |
| | | public IContractChangePlanDetailServiceDao getContractChangePlanDetailServiceDaoImpl() { |
| | | return contractChangePlanDetailServiceDaoImpl; |
| | | } |
| | | |
| | | public void setContractChangePlanDetailServiceDaoImpl(IContractChangePlanDetailServiceDao contractChangePlanDetailServiceDaoImpl) { |
| | | this.contractChangePlanDetailServiceDaoImpl = contractChangePlanDetailServiceDaoImpl; |
| | | } |
| | | } |