This commit is contained in:
linfso 2024-06-17 23:32:22 +08:00
parent a266ff7c09
commit a5b2fa48ef
4 changed files with 168 additions and 75 deletions

View File

@ -41,7 +41,7 @@ public class EmisSiteSettleRecord extends BaseEntity
private String billCode; private String billCode;
/* 结算类型:1-应收 2-应付 */ /* 结算类型:1-应收 2-应付 */
private String recPayType; private String recPayType;
/* 结算类型: 充值等 */ /* 结算类型编码 */
private String settleType; private String settleType;
/* 结算类型名称 */ /* 结算类型名称 */
private String settleName; private String settleName;
@ -59,41 +59,50 @@ public class EmisSiteSettleRecord extends BaseEntity
private BigDecimal backConfirmBalance; private BigDecimal backConfirmBalance;
/* 币种 */ /* 币种 */
private String currency; private String currency;
/* 改变类型 加,减 */ /* 操作类型 加,减 */
private String changeType; private String changeType;
/* 改变时间 */ /* 操作时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date changeDate; private Date changeDate;
/* 财务中心代码 */ /* 财务中心代码 */
private String centerCode; private String centerCode;
/* 站点名称 */ /* 财务中心名称 */
private String centerName;
/* 财务中心人员编码 */
private String centerManCode;
/* 财务中心人员名称 */
private String centerManName;
/* 网点代码 */
private String siteCode; private String siteCode;
/* 来源 */ /* 网点名称 */
private String sourceType; private String siteName;
/* 站点人代码 */
private String siteManCode;
/* 站点人名称 */
private String siteManName;
/* 财务操作时间 */ /* 财务操作时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date financeDate; private Date financeDate;
/* 网点操作时间 */ /* 网点操作时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date operataDate; private Date operataDate;
/* 中心日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date centerDate;
/* 是否确认 */ /* 是否确认 */
private String blConfirm; private String blConfirm;
/* 确认人代码 */
private String confirmManCode;
/* 确认站点代码 */ /* 确认站点代码 */
private String confirmSiteCode; private String confirmSiteCode;
/* 结算人代码 */ /* 确认人代码 */
private String settleManCode; private String confirmManCode;
/* 结算站点代码 */ /* 结算站点代码 */
private String settleSiteCode; private String settleSiteCode;
/* 结算人代码 */
private String settleManCode;
/* 是否中心审核 */ /* 是否中心审核 */
private String blCenter; private String blCenter;
/* 中心人代码 */
private String centerManCode;
/* 是否站点审核 */ /* 是否站点审核 */
private String blSite; private String blSite;
/* 站点人代码 */
private String siteManCode;
/* 站点日期 */ /* 站点日期 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date siteDate; private Date siteDate;
@ -108,8 +117,10 @@ public class EmisSiteSettleRecord extends BaseEntity
private Date settleEbrDate; private Date settleEbrDate;
/* 客户代码 */ /* 客户代码 */
private String customerCode; private String customerCode;
/* 中心日期 */ /* 客户名称 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private String customerName;
private Date centerDate; /* 来源 */
private String dataFrom;
} }

View File

@ -816,15 +816,18 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisSiteSettleRecord.setBillCode(emisWaybillSave.getBillCode()); emisSiteSettleRecord.setBillCode(emisWaybillSave.getBillCode());
emisSiteSettleRecord.setRecPayType("2"); // 应付 emisSiteSettleRecord.setRecPayType("2"); // 应付
emisSiteSettleRecord.setSettleType("003");// 运输费用 emisSiteSettleRecord.setSettleType("003");// 运输费用
emisSiteSettleRecord.setSettleName("预付款-充值"); emisSiteSettleRecord.setSettleName("运输费");
emisSiteSettleRecord.setCurMoney(emisWaybillSave.getFreight()); emisSiteSettleRecord.setCurMoney(emisWaybillSave.getFreight());
emisSiteSettleRecord.setCurConfirmMoney(emisWaybillSave.getFreight()); emisSiteSettleRecord.setCurConfirmMoney(emisWaybillSave.getFreight());
emisSiteSettleRecord.setChangeType("2"); // 减少 emisSiteSettleRecord.setChangeType("2"); // 减少
emisSiteSettleRecord.setCurrency("CNY"); emisSiteSettleRecord.setCurrency("CNY");
// 计算日期
emisSiteSettleRecord.setChangeDate(new Date()); emisSiteSettleRecord.setChangeDate(new Date());
emisSiteSettleRecord.setSiteCode(emisWaybillSave.getSendSiteCode()); emisSiteSettleRecord.setSiteCode(emisWaybillSave.getSendSiteCode());
emisSiteSettleRecord.setSourceType("pc"); emisSiteSettleRecord.setSiteName(emisWaybillSave.getSendSiteName());
emisSiteSettleRecord.setDataFrom("开单");
emisSiteSettleRecord.setOperataDate(new Date()); emisSiteSettleRecord.setOperataDate(new Date());
emisSiteSettleRecord.setFinanceDate(new Date()); emisSiteSettleRecord.setFinanceDate(new Date());
emisSiteSettleRecord.setBlCenter("1"); emisSiteSettleRecord.setBlCenter("1");

View File

@ -124,5 +124,10 @@
select a.type_name from emis_problem_type a where a.id = #{id} limit 1 select a.type_name from emis_problem_type a where a.id = #{id} limit 1
</select> </select>
<!-- 查询费用结算类型 -->
<select id="selectSettleTypeNameByCode" parameterType="string" resultType="string">
select a.settle_name from emis_settle_type a where a.settle_type = #{settleType} limit 1
</select>
</mapper> </mapper>

View File

@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.xdadan.erp.emis.mapper.EmisSiteSettleRecordMapper"> <mapper namespace="com.xdadan.erp.emis.mapper.EmisSiteSettleRecordMapper">
<resultMap type="EmisSiteSettleRecord" id="EmisSiteSettleRecordResult"> <resultMap type="EmisSiteSettleRecord" id="EmisSiteSettleRecordResult" extends="com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult">
<result property="id" column="id" /> <result property="id" column="id" />
<result property="accCode" column="acc_code" /> <result property="accCode" column="acc_code" />
<result property="billCode" column="bill_code" /> <result property="billCode" column="bill_code" />
@ -21,30 +21,45 @@
<result property="changeType" column="change_type" /> <result property="changeType" column="change_type" />
<result property="changeDate" column="change_date" /> <result property="changeDate" column="change_date" />
<result property="centerCode" column="center_code" /> <result property="centerCode" column="center_code" />
<result property="centerManCode" column="center_man_code" />
<result property="centerManName" column="center_man_name" />
<result property="siteCode" column="site_code" /> <result property="siteCode" column="site_code" />
<result property="sourceType" column="source_type" />
<result property="siteManCode" column="site_man_code" />
<result property="siteManName" column="site_man_name" />
<result property="financeDate" column="finance_date" /> <result property="financeDate" column="finance_date" />
<result property="operataDate" column="operata_date" /> <result property="operataDate" column="operata_date" />
<result property="centerDate" column="center_date" />
<result property="blConfirm" column="bl_confirm" /> <result property="blConfirm" column="bl_confirm" />
<result property="confirmManCode" column="confirm_man_code" />
<result property="confirmSiteCode" column="confirm_site_code" /> <result property="confirmSiteCode" column="confirm_site_code" />
<result property="settleManCode" column="settle_man_code" /> <result property="confirmManCode" column="confirm_man_code" />
<result property="settleSiteCode" column="settle_site_code" /> <result property="settleSiteCode" column="settle_site_code" />
<result property="settleManCode" column="settle_man_code" />
<result property="blCenter" column="bl_center" /> <result property="blCenter" column="bl_center" />
<result property="centerManCode" column="center_man_code" />
<result property="blSite" column="bl_site" /> <result property="blSite" column="bl_site" />
<result property="siteManCode" column="site_man_code" />
<result property="siteDate" column="site_date" /> <result property="siteDate" column="site_date" />
<result property="blChargeFee" column="bl_charge_fee" /> <result property="blChargeFee" column="bl_charge_fee" />
<result property="transferCode" column="transfer_code" /> <result property="transferCode" column="transfer_code" />
<result property="settleEbrCode" column="settle_ebr_code" /> <result property="settleEbrCode" column="settle_ebr_code" />
<result property="settleEbrDate" column="settle_ebr_date" /> <result property="settleEbrDate" column="settle_ebr_date" />
<result property="customerCode" column="customer_code" /> <result property="customerCode" column="customer_code" />
<result property="centerDate" column="center_date" /> <result property="customerName" column="customer_name" />
<result property="dataFrom" column="data_from" />
<association property="siteName" column="site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
<association property="centerName" column="center_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
</resultMap> </resultMap>
<!-- <result property="centerName" column="center_name" />-->
<!-- <result property="siteName" column="site_name" />-->
<sql id="selectEmisSiteSettleRecordVo"> <sql id="selectEmisSiteSettleRecordVo">
select id, acc_code, bill_code, rec_pay_type, settle_type, settle_name, pre_balance, pre_confirm_balance, cur_money, cur_confirm_money, back_balance, back_confirm_balance, currency, change_type, change_date, center_code, site_code, source_type, finance_date, operata_date, bl_confirm, confirm_man_code, confirm_site_code, settle_man_code, settle_site_code, bl_center, center_man_code, bl_site, site_man_code, site_date, bl_charge_fee, transfer_code, settle_ebr_code, settle_ebr_date, customer_code, center_date, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_site_settle_record select id, acc_code, bill_code, rec_pay_type, settle_type, settle_name, pre_balance, pre_confirm_balance, cur_money, cur_confirm_money, back_balance, back_confirm_balance, currency, change_type, change_date, center_code, center_name, center_man_code, center_man_name, site_code, site_name, site_man_code, site_man_name, finance_date, operata_date, center_date, bl_confirm, confirm_site_code, confirm_man_code, settle_site_code, settle_man_code, bl_center, bl_site, site_date, bl_charge_fee, transfer_code, settle_ebr_code, settle_ebr_date, customer_code, customer_name, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_site_settle_record
</sql> </sql>
<select id="selectEmisSiteSettleRecordList" parameterType="EmisSiteSettleRecord" resultMap="EmisSiteSettleRecordResult"> <select id="selectEmisSiteSettleRecordList" parameterType="EmisSiteSettleRecord" resultMap="EmisSiteSettleRecordResult">
@ -52,10 +67,10 @@
<where> <where>
del_flag='0' del_flag='0'
<if test="id != null "> and id = #{id}</if> <if test="id != null "> and id = #{id}</if>
<if test="accCode != null and accCode != ''"> and acc_code like concat('%', #{accCode}, '%')</if> <if test="accCode != null and accCode != ''"> and acc_code = #{accCode}</if>
<if test="billCode != null and billCode != ''"> and bill_code like concat('%', #{billCode}, '%')</if> <if test="billCode != null and billCode != ''"> and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) </if>
<if test="recPayType != null and recPayType != ''"> and rec_pay_type=#{recPayType}</if> <if test="recPayType != null and recPayType != ''"> and rec_pay_type = #{recPayType}</if>
<if test="settleType != null and settleType != ''"> and settle_type=#{settleType}</if> <if test="settleType != null and settleType != ''"> and settle_type = #{settleType}</if>
<if test="settleName != null and settleName != ''"> and settle_name like concat('%', #{settleName}, '%')</if> <if test="settleName != null and settleName != ''"> and settle_name like concat('%', #{settleName}, '%')</if>
<if test="preBalance != null "> and pre_balance = #{preBalance}</if> <if test="preBalance != null "> and pre_balance = #{preBalance}</if>
<if test="preConfirmBalance != null "> and pre_confirm_balance = #{preConfirmBalance}</if> <if test="preConfirmBalance != null "> and pre_confirm_balance = #{preConfirmBalance}</if>
@ -67,34 +82,73 @@
<if test="changeType != null and changeType != ''"> and change_type = #{changeType}</if> <if test="changeType != null and changeType != ''"> and change_type = #{changeType}</if>
<if test="changeDate != null "> and change_date = #{changeDate}</if> <if test="changeDate != null "> and change_date = #{changeDate}</if>
<if test="centerCode != null and centerCode != ''"> and center_code = #{centerCode}</if> <if test="centerCode != null and centerCode != ''"> and center_code = #{centerCode}</if>
<if test="centerName != null and centerName != ''"> and center_name like concat('%', #{centerName}, '%')</if>
<if test="centerManCode != null and centerManCode != ''"> and center_man_code = #{centerManCode}</if>
<if test="centerManName != null and centerManName != ''"> and center_man_name like concat('%', #{centerManName}, '%')</if>
<if test="siteCode != null and siteCode != ''"> and site_code = #{siteCode}</if> <if test="siteCode != null and siteCode != ''"> and site_code = #{siteCode}</if>
<if test="sourceType != null and sourceType != ''"> and source_type like concat('%', #{sourceType}, '%')</if> <if test="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
<if test="siteManCode != null and siteManCode != ''"> and site_man_code = #{siteManCode}</if>
<if test="siteManName != null and siteManName != ''"> and site_man_name like concat('%', #{siteManName}, '%')</if>
<if test="financeDate != null "> and finance_date = #{financeDate}</if> <if test="financeDate != null "> and finance_date = #{financeDate}</if>
<if test="operataDate != null "> and operata_date = #{operataDate}</if> <if test="operataDate != null "> and operata_date = #{operataDate}</if>
<if test="blConfirm != null and blConfirm != ''"> and bl_confirm like concat('%', #{blConfirm}, '%')</if> <if test="centerDate != null "> and center_date = #{centerDate}</if>
<if test="confirmManCode != null and confirmManCode != ''"> and confirm_man_code like concat('%', #{confirmManCode}, '%')</if> <if test="blConfirm != null and blConfirm != ''"> and bl_confirm = #{blConfirm}</if>
<if test="confirmSiteCode != null and confirmSiteCode != ''"> and confirm_site_code like concat('%', #{confirmSiteCode}, '%')</if> <if test="confirmSiteCode != null and confirmSiteCode != ''"> and confirm_site_code = #{confirmSiteCode}</if>
<if test="settleManCode != null and settleManCode != ''"> and settle_man_code like concat('%', #{settleManCode}, '%')</if> <if test="confirmManCode != null and confirmManCode != ''"> and confirm_man_code = #{confirmManCode}</if>
<if test="settleSiteCode != null and settleSiteCode != ''"> and settle_site_code like concat('%', #{settleSiteCode}, '%')</if> <if test="settleSiteCode != null and settleSiteCode != ''"> and settle_site_code = #{settleSiteCode}</if>
<if test="blCenter != null and blCenter != ''"> and bl_center like concat('%', #{blCenter}, '%')</if> <if test="settleManCode != null and settleManCode != ''"> and settle_man_code = #{settleManCode}</if>
<if test="centerManCode != null and centerManCode != ''"> and center_man_code like concat('%', #{centerManCode}, '%')</if> <if test="blCenter != null and blCenter != ''"> and bl_center = #{blCenter}</if>
<if test="blSite != null and blSite != ''"> and bl_site like concat('%', #{blSite}, '%')</if> <if test="blSite != null and blSite != ''"> and bl_site = #{blSite}</if>
<if test="siteManCode != null and siteManCode != ''"> and site_man_code like concat('%', #{siteManCode}, '%')</if>
<if test="siteDate != null "> and site_date = #{siteDate}</if> <if test="siteDate != null "> and site_date = #{siteDate}</if>
<if test="blChargeFee != null and blChargeFee != ''"> and bl_charge_fee like concat('%', #{blChargeFee}, '%')</if> <if test="blChargeFee != null and blChargeFee != ''"> and bl_charge_fee like concat('%', #{blChargeFee}, '%')</if>
<if test="transferCode != null and transferCode != ''"> and transfer_code like concat('%', #{transferCode}, '%')</if> <if test="transferCode != null and transferCode != ''"> and transfer_code = #{transferCode}</if>
<if test="settleEbrCode != null and settleEbrCode != ''"> and settle_ebr_code like concat('%', #{settleEbrCode}, '%')</if> <if test="settleEbrCode != null and settleEbrCode != ''"> and settle_ebr_code like concat('%', #{settleEbrCode}, '%')</if>
<if test="settleEbrDate != null "> and settle_ebr_date = #{settleEbrDate}</if> <if test="settleEbrDate != null "> and settle_ebr_date = #{settleEbrDate}</if>
<if test="customerCode != null and customerCode != ''"> and customer_code like concat('%', #{customerCode}, '%')</if> <if test="customerCode != null and customerCode != ''"> and customer_code = #{customerCode}</if>
<if test="centerDate != null "> and center_date = #{centerDate}</if> <if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="dataFrom != null and dataFrom != ''"> and data_from like concat('%', #{dataFrom}, '%')</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if> <if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if> <if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if> <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
<if test="createTime != null "> and create_time = #{createTime}</if> <if test="createTime != null "> and create_time = #{createTime}</if>
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if> <if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if>
<if test="updateTime != null "> and update_time = #{updateTime}</if> <if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if> <if test="createSite != null and createSite != ''"> and create_site = #{createSite}</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if> <if test="updateSite != null and updateSite != ''"> and update_site = #{updateSite}</if>
<if test="params.beginFinanceDate!= null and params.beginFinanceDate != ''">
and finance_date <![CDATA[ >= ]]> #{params.beginFinanceDate}
</if>
<if test="params.endFinanceDate != null and params.endFinanceDate != ''">
and finance_date <![CDATA[ <= ]]> #{params.endFinanceDate}
</if>
<if test="params.beginChangeDate!= null and params.beginChangeDate != ''">
and change_date <![CDATA[ >= ]]> #{params.beginChangeDate}
</if>
<if test="params.endChangeDate != null and params.endChangeDate != ''">
and change_date <![CDATA[ <= ]]> #{params.endChangeDate}
</if>
<if test="params.beginCreateTime != null and params.beginCreateTime != ''">
and create_time <![CDATA[ >= ]]> #{params.beginCreateTime}
</if>
<if test="params.endCreateTime != null and params.endCreateTime != ''">
and create_time <![CDATA[ <= ]]> #{params.endCreateTime}
</if>
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
and (
site_code in (
SELECT t1.site_code FROM (
SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
#{params.privSiteCode} ) pd
WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
UNION
SELECT #{params.privSiteCode} FROM dual
)
)
</if>
</where> </where>
order by create_time desc order by create_time desc
</select> </select>
@ -118,26 +172,31 @@
and change_type = #{changeType} and change_type = #{changeType}
and change_date = #{changeDate} and change_date = #{changeDate}
and center_code = #{centerCode} and center_code = #{centerCode}
and center_name = #{centerName}
and center_man_code = #{centerManCode}
and center_man_name = #{centerManName}
and site_code = #{siteCode} and site_code = #{siteCode}
and source_type = #{sourceType} and site_name = #{siteName}
and site_man_code = #{siteManCode}
and site_man_name = #{siteManName}
and finance_date = #{financeDate} and finance_date = #{financeDate}
and operata_date = #{operataDate} and operata_date = #{operataDate}
and center_date = #{centerDate}
and bl_confirm = #{blConfirm} and bl_confirm = #{blConfirm}
and confirm_man_code = #{confirmManCode}
and confirm_site_code = #{confirmSiteCode} and confirm_site_code = #{confirmSiteCode}
and settle_man_code = #{settleManCode} and confirm_man_code = #{confirmManCode}
and settle_site_code = #{settleSiteCode} and settle_site_code = #{settleSiteCode}
and settle_man_code = #{settleManCode}
and bl_center = #{blCenter} and bl_center = #{blCenter}
and center_man_code = #{centerManCode}
and bl_site = #{blSite} and bl_site = #{blSite}
and site_man_code = #{siteManCode}
and site_date = #{siteDate} and site_date = #{siteDate}
and bl_charge_fee = #{blChargeFee} and bl_charge_fee = #{blChargeFee}
and transfer_code = #{transferCode} and transfer_code = #{transferCode}
and settle_ebr_code = #{settleEbrCode} and settle_ebr_code = #{settleEbrCode}
and settle_ebr_date = #{settleEbrDate} and settle_ebr_date = #{settleEbrDate}
and customer_code = #{customerCode} and customer_code = #{customerCode}
and center_date = #{centerDate} and customer_name = #{customerName}
and data_from = #{dataFrom}
and remark = #{remark} and remark = #{remark}
and del_flag = #{delFlag} and del_flag = #{delFlag}
and create_by = #{createBy} and create_by = #{createBy}
@ -150,7 +209,7 @@
</select> </select>
<select id="selectEmisSiteSettleRecordById" parameterType="Long" resultMap="EmisSiteSettleRecordResult"> <select id="selectEmisSiteSettleRecordById" parameterType="Long" resultMap="EmisSiteSettleRecordResult">
select id, acc_code, bill_code, rec_pay_type, settle_type, settle_name, pre_balance, pre_confirm_balance, cur_money, cur_confirm_money, back_balance, back_confirm_balance, currency, change_type, change_date, center_code, site_code, source_type, finance_date, operata_date, bl_confirm, confirm_man_code, confirm_site_code, settle_man_code, settle_site_code, bl_center, center_man_code, bl_site, site_man_code, site_date, bl_charge_fee, transfer_code, settle_ebr_code, settle_ebr_date, customer_code, center_date, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site select id, acc_code, bill_code, rec_pay_type, settle_type, settle_name, pre_balance, pre_confirm_balance, cur_money, cur_confirm_money, back_balance, back_confirm_balance, currency, change_type, change_date, center_code, center_name, center_man_code, center_man_name, site_code, site_name, site_man_code, site_man_name, finance_date, operata_date, center_date, bl_confirm, confirm_site_code, confirm_man_code, settle_site_code, settle_man_code, bl_center, bl_site, site_date, bl_charge_fee, transfer_code, settle_ebr_code, settle_ebr_date, customer_code, customer_name, data_from, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_site_settle_record a from emis_site_settle_record a
where a.id = #{id} where a.id = #{id}
</select> </select>
@ -174,26 +233,31 @@
<if test="changeType != null and changeType != ''">change_type,</if> <if test="changeType != null and changeType != ''">change_type,</if>
<if test="changeDate != null">change_date,</if> <if test="changeDate != null">change_date,</if>
<if test="centerCode != null and centerCode != ''">center_code,</if> <if test="centerCode != null and centerCode != ''">center_code,</if>
<if test="centerName != null and centerName != ''">center_name,</if>
<if test="centerManCode != null and centerManCode != ''">center_man_code,</if>
<if test="centerManName != null and centerManName != ''">center_man_name,</if>
<if test="siteCode != null and siteCode != ''">site_code,</if> <if test="siteCode != null and siteCode != ''">site_code,</if>
<if test="sourceType != null and sourceType != ''">source_type,</if> <if test="siteName != null and siteName != ''">site_name,</if>
<if test="siteManCode != null and siteManCode != ''">site_man_code,</if>
<if test="siteManName != null and siteManName != ''">site_man_name,</if>
<if test="financeDate != null">finance_date,</if> <if test="financeDate != null">finance_date,</if>
<if test="operataDate != null">operata_date,</if> <if test="operataDate != null">operata_date,</if>
<if test="centerDate != null">center_date,</if>
<if test="blConfirm != null and blConfirm != ''">bl_confirm,</if> <if test="blConfirm != null and blConfirm != ''">bl_confirm,</if>
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code,</if>
<if test="confirmSiteCode != null and confirmSiteCode != ''">confirm_site_code,</if> <if test="confirmSiteCode != null and confirmSiteCode != ''">confirm_site_code,</if>
<if test="settleManCode != null and settleManCode != ''">settle_man_code,</if> <if test="confirmManCode != null and confirmManCode != ''">confirm_man_code,</if>
<if test="settleSiteCode != null and settleSiteCode != ''">settle_site_code,</if> <if test="settleSiteCode != null and settleSiteCode != ''">settle_site_code,</if>
<if test="settleManCode != null and settleManCode != ''">settle_man_code,</if>
<if test="blCenter != null and blCenter != ''">bl_center,</if> <if test="blCenter != null and blCenter != ''">bl_center,</if>
<if test="centerManCode != null and centerManCode != ''">center_man_code,</if>
<if test="blSite != null and blSite != ''">bl_site,</if> <if test="blSite != null and blSite != ''">bl_site,</if>
<if test="siteManCode != null and siteManCode != ''">site_man_code,</if>
<if test="siteDate != null">site_date,</if> <if test="siteDate != null">site_date,</if>
<if test="blChargeFee != null and blChargeFee != ''">bl_charge_fee,</if> <if test="blChargeFee != null and blChargeFee != ''">bl_charge_fee,</if>
<if test="transferCode != null and transferCode != ''">transfer_code,</if> <if test="transferCode != null and transferCode != ''">transfer_code,</if>
<if test="settleEbrCode != null and settleEbrCode != ''">settle_ebr_code,</if> <if test="settleEbrCode != null and settleEbrCode != ''">settle_ebr_code,</if>
<if test="settleEbrDate != null">settle_ebr_date,</if> <if test="settleEbrDate != null">settle_ebr_date,</if>
<if test="customerCode != null and customerCode != ''">customer_code,</if> <if test="customerCode != null and customerCode != ''">customer_code,</if>
<if test="centerDate != null">center_date,</if> <if test="customerName != null and customerName != ''">customer_name,</if>
<if test="dataFrom != null and dataFrom != ''">data_from,</if>
<if test="remark != null and remark != ''">remark,</if> <if test="remark != null and remark != ''">remark,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if> <if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if> <if test="createBy != null and createBy != ''">create_by,</if>
@ -220,26 +284,31 @@
<if test="changeType != null and changeType != ''">#{changeType},</if> <if test="changeType != null and changeType != ''">#{changeType},</if>
<if test="changeDate != null">#{changeDate},</if> <if test="changeDate != null">#{changeDate},</if>
<if test="centerCode != null and centerCode != ''">#{centerCode},</if> <if test="centerCode != null and centerCode != ''">#{centerCode},</if>
<if test="centerName != null and centerName != ''">#{centerName},</if>
<if test="centerManCode != null and centerManCode != ''">#{centerManCode},</if>
<if test="centerManName != null and centerManName != ''">#{centerManName},</if>
<if test="siteCode != null and siteCode != ''">#{siteCode},</if> <if test="siteCode != null and siteCode != ''">#{siteCode},</if>
<if test="sourceType != null and sourceType != ''">#{sourceType},</if> <if test="siteName != null and siteName != ''">#{siteName},</if>
<if test="siteManCode != null and siteManCode != ''">#{siteManCode},</if>
<if test="siteManName != null and siteManName != ''">#{siteManName},</if>
<if test="financeDate != null">#{financeDate},</if> <if test="financeDate != null">#{financeDate},</if>
<if test="operataDate != null">#{operataDate},</if> <if test="operataDate != null">#{operataDate},</if>
<if test="centerDate != null">#{centerDate},</if>
<if test="blConfirm != null and blConfirm != ''">#{blConfirm},</if> <if test="blConfirm != null and blConfirm != ''">#{blConfirm},</if>
<if test="confirmManCode != null and confirmManCode != ''">#{confirmManCode},</if>
<if test="confirmSiteCode != null and confirmSiteCode != ''">#{confirmSiteCode},</if> <if test="confirmSiteCode != null and confirmSiteCode != ''">#{confirmSiteCode},</if>
<if test="settleManCode != null and settleManCode != ''">#{settleManCode},</if> <if test="confirmManCode != null and confirmManCode != ''">#{confirmManCode},</if>
<if test="settleSiteCode != null and settleSiteCode != ''">#{settleSiteCode},</if> <if test="settleSiteCode != null and settleSiteCode != ''">#{settleSiteCode},</if>
<if test="settleManCode != null and settleManCode != ''">#{settleManCode},</if>
<if test="blCenter != null and blCenter != ''">#{blCenter},</if> <if test="blCenter != null and blCenter != ''">#{blCenter},</if>
<if test="centerManCode != null and centerManCode != ''">#{centerManCode},</if>
<if test="blSite != null and blSite != ''">#{blSite},</if> <if test="blSite != null and blSite != ''">#{blSite},</if>
<if test="siteManCode != null and siteManCode != ''">#{siteManCode},</if>
<if test="siteDate != null">#{siteDate},</if> <if test="siteDate != null">#{siteDate},</if>
<if test="blChargeFee != null and blChargeFee != ''">#{blChargeFee},</if> <if test="blChargeFee != null and blChargeFee != ''">#{blChargeFee},</if>
<if test="transferCode != null and transferCode != ''">#{transferCode},</if> <if test="transferCode != null and transferCode != ''">#{transferCode},</if>
<if test="settleEbrCode != null and settleEbrCode != ''">#{settleEbrCode},</if> <if test="settleEbrCode != null and settleEbrCode != ''">#{settleEbrCode},</if>
<if test="settleEbrDate != null">#{settleEbrDate},</if> <if test="settleEbrDate != null">#{settleEbrDate},</if>
<if test="customerCode != null and customerCode != ''">#{customerCode},</if> <if test="customerCode != null and customerCode != ''">#{customerCode},</if>
<if test="centerDate != null">#{centerDate},</if> <if test="customerName != null and customerName != ''">#{customerName},</if>
<if test="dataFrom != null and dataFrom != ''">#{dataFrom},</if>
<if test="remark != null and remark != ''">#{remark},</if> <if test="remark != null and remark != ''">#{remark},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if> <if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if> <if test="createBy != null and createBy != ''">#{createBy},</if>
@ -269,26 +338,31 @@
<if test="changeType != null and changeType != ''">change_type = #{changeType},</if> <if test="changeType != null and changeType != ''">change_type = #{changeType},</if>
<if test="changeDate != null">change_date = #{changeDate},</if> <if test="changeDate != null">change_date = #{changeDate},</if>
<if test="centerCode != null and centerCode != ''">center_code = #{centerCode},</if> <if test="centerCode != null and centerCode != ''">center_code = #{centerCode},</if>
<if test="centerName != null and centerName != ''">center_name = #{centerName},</if>
<if test="centerManCode != null and centerManCode != ''">center_man_code = #{centerManCode},</if>
<if test="centerManName != null and centerManName != ''">center_man_name = #{centerManName},</if>
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if> <if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
<if test="sourceType != null and sourceType != ''">source_type = #{sourceType},</if> <if test="siteName != null and siteName != ''">site_name = #{siteName},</if>
<if test="siteManCode != null and siteManCode != ''">site_man_code = #{siteManCode},</if>
<if test="siteManName != null and siteManName != ''">site_man_name = #{siteManName},</if>
<if test="financeDate != null">finance_date = #{financeDate},</if> <if test="financeDate != null">finance_date = #{financeDate},</if>
<if test="operataDate != null">operata_date = #{operataDate},</if> <if test="operataDate != null">operata_date = #{operataDate},</if>
<if test="centerDate != null">center_date = #{centerDate},</if>
<if test="blConfirm != null and blConfirm != ''">bl_confirm = #{blConfirm},</if> <if test="blConfirm != null and blConfirm != ''">bl_confirm = #{blConfirm},</if>
<if test="confirmManCode != null and confirmManCode != ''">confirm_man_code = #{confirmManCode},</if>
<if test="confirmSiteCode != null and confirmSiteCode != ''">confirm_site_code = #{confirmSiteCode},</if> <if test="confirmSiteCode != null and confirmSiteCode != ''">confirm_site_code = #{confirmSiteCode},</if>
<if test="settleManCode != null and settleManCode != ''">settle_man_code = #{settleManCode},</if> <if test="confirmManCode != null and confirmManCode != ''">confirm_man_code = #{confirmManCode},</if>
<if test="settleSiteCode != null and settleSiteCode != ''">settle_site_code = #{settleSiteCode},</if> <if test="settleSiteCode != null and settleSiteCode != ''">settle_site_code = #{settleSiteCode},</if>
<if test="settleManCode != null and settleManCode != ''">settle_man_code = #{settleManCode},</if>
<if test="blCenter != null and blCenter != ''">bl_center = #{blCenter},</if> <if test="blCenter != null and blCenter != ''">bl_center = #{blCenter},</if>
<if test="centerManCode != null and centerManCode != ''">center_man_code = #{centerManCode},</if>
<if test="blSite != null and blSite != ''">bl_site = #{blSite},</if> <if test="blSite != null and blSite != ''">bl_site = #{blSite},</if>
<if test="siteManCode != null and siteManCode != ''">site_man_code = #{siteManCode},</if>
<if test="siteDate != null">site_date = #{siteDate},</if> <if test="siteDate != null">site_date = #{siteDate},</if>
<if test="blChargeFee != null and blChargeFee != ''">bl_charge_fee = #{blChargeFee},</if> <if test="blChargeFee != null and blChargeFee != ''">bl_charge_fee = #{blChargeFee},</if>
<if test="transferCode != null and transferCode != ''">transfer_code = #{transferCode},</if> <if test="transferCode != null and transferCode != ''">transfer_code = #{transferCode},</if>
<if test="settleEbrCode != null and settleEbrCode != ''">settle_ebr_code = #{settleEbrCode},</if> <if test="settleEbrCode != null and settleEbrCode != ''">settle_ebr_code = #{settleEbrCode},</if>
<if test="settleEbrDate != null">settle_ebr_date = #{settleEbrDate},</if> <if test="settleEbrDate != null">settle_ebr_date = #{settleEbrDate},</if>
<if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if> <if test="customerCode != null and customerCode != ''">customer_code = #{customerCode},</if>
<if test="centerDate != null">center_date = #{centerDate},</if> <if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
<if test="dataFrom != null and dataFrom != ''">data_from = #{dataFrom},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if> <if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if> <if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
@ -302,11 +376,11 @@
</update> </update>
<delete id="deleteEmisSiteSettleRecordById" parameterType="Long"> <delete id="deleteEmisSiteSettleRecordById" parameterType="Long">
delete from emis_site_settle_record where id = #{id} update emis_site_settle_record set del_flag='1' where id = #{id}
</delete> </delete>
<delete id="deleteEmisSiteSettleRecordByIds" parameterType="String"> <delete id="deleteEmisSiteSettleRecordByIds" parameterType="String">
delete from emis_site_settle_record where id in update emis_site_settle_record set del_flag='1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")"> <foreach item="id" collection="array" open="(" separator="," close=")">
#{id} #{id}
</foreach> </foreach>