md
This commit is contained in:
parent
f4b9e3a7f8
commit
a3e1a05689
@ -252,6 +252,7 @@ public class EmisSettleBillController extends BaseController
|
||||
emisSettleBill.setConfirmSiteManCode(getLoginUser().getUser().getEmpCode());
|
||||
emisSettleBill.setConfirmSiteCode(getLoginUser().getUser().getOwnerSiteCode());
|
||||
emisSettleBill.setBlConfirmSite("1");
|
||||
emisSettleBill.setConfirmSiteDate(new Date());
|
||||
emisSettleBill.setId(id);
|
||||
emisSettleBillService.updateEmisSettleBill(emisSettleBill);
|
||||
|
||||
|
||||
@ -133,6 +133,16 @@ public class EmisSettleBill extends BaseEntity
|
||||
/* 确认网点代码 */
|
||||
private String confirmSiteCode;
|
||||
|
||||
|
||||
// 扩展信息
|
||||
|
||||
private String confirmCenterManName;
|
||||
private String confirmCenterName;
|
||||
|
||||
private String confirmSiteManName;
|
||||
private String confirmSiteName;
|
||||
|
||||
|
||||
List<EmisSettleSubBill> subBillList;
|
||||
|
||||
|
||||
|
||||
@ -51,8 +51,17 @@
|
||||
<result property="confirmSiteManCode" column="confirm_site_man_code" />
|
||||
<result property="confirmSiteNote" column="confirm_site_note" />
|
||||
<result property="confirmSiteCode" column="confirm_site_code" />
|
||||
|
||||
|
||||
<association property="confirmCenterManName" column="confirm_center_man_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByCode"/>
|
||||
<association property="confirmCenterName" column="confirm_center_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
|
||||
|
||||
<association property="confirmSiteManName" column="confirm_site_man_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectEmpNameByCode"/>
|
||||
<association property="confirmSiteName" column="confirm_site_code" select="com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode"/>
|
||||
|
||||
</resultMap>
|
||||
|
||||
|
||||
<sql id="selectEmisSettleBillVo">
|
||||
select id, settle_bill_no, settle_bill_name, settle_type, settle_start_date, settle_end_date, bill_month, rec_money, reced_money, cust_no, cust_name, customer_code, customer_name, site_code, site_name, satisfy_money, allowance_money, deduction_money, other_money, satisfy_reason, allowance_reason, deduction_reason, other_reason, open_bill_status, payment_status, charge_status, send_piece_sum, piece_number, fee_weight, uncollected_amount, send_money_sum, refund_amount, refund_money, payee, salesmen, bl_send_oms, bl_confirm_center, confirm_center_date, confirm_center_note, confirm_center_man_code, confirm_center_code, bl_confirm_site, confirm_site_date, confirm_site_man_code, confirm_site_note, confirm_site_code, remark, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_settle_bill a
|
||||
</sql>
|
||||
|
||||
@ -96,6 +96,58 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
|
||||
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
|
||||
|
||||
<if test="params.billCode != null and params.billCode != ''">
|
||||
AND apply_seq_no IN (
|
||||
SELECT x1.apply_seq_no FROM
|
||||
emis_settle_invoice_record x1,
|
||||
emis_settle_bill x2
|
||||
WHERE
|
||||
x1.del_flag = '0'
|
||||
AND x2.del_flag = '0'
|
||||
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
||||
AND exists (
|
||||
select 1 from emis_settle_sub_bill b
|
||||
where x2.settle_bill_no=b.settle_bill_no
|
||||
and ( FIND_IN_SET(b.`bill_code`,#{params.billCode}) or b.bill_code like concat('%', #{params.billCode}, '%') )
|
||||
)
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.settleBillNo != null and params.settleBillNo != ''">
|
||||
AND apply_seq_no IN (
|
||||
SELECT x1.apply_seq_no FROM emis_settle_invoice_record x1,emis_settle_bill x2
|
||||
WHERE x1.del_flag = '0' AND x2.del_flag = '0'
|
||||
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
||||
AND x2.settle_bill_no=#{params.settleBillNo}
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="params.billCode != null and params.billCode != ''">
|
||||
AND apply_seq_no IN (
|
||||
SELECT x1.apply_seq_no FROM
|
||||
emis_settle_invoice_record x1,
|
||||
emis_settle_bill x2
|
||||
WHERE
|
||||
x1.del_flag = '0'
|
||||
AND x2.del_flag = '0'
|
||||
AND FIND_IN_SET( x2.settle_bill_no, x1.settle_bill_no )
|
||||
AND exists (
|
||||
select 1 from emis_settle_sub_bill b
|
||||
where x2.settle_bill_no=b.settle_bill_no
|
||||
and ( FIND_IN_SET(b.`bill_code`,#{params.billCode}) or b.bill_code like concat('%', #{params.billCode}, '%') )
|
||||
)
|
||||
)
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != ''">
|
||||
and a.create_time <![CDATA[ >= ]]> #{params.beginCreateTime}
|
||||
</if>
|
||||
<if test="params.endCreateTime != null and params.endCreateTime != ''">
|
||||
and a.create_time <![CDATA[ <= ]]> #{params.endCreateTime}
|
||||
</if>
|
||||
|
||||
<if test="params.privSiteCode != null and params.privSiteCode != '88888'">
|
||||
and apply_seq_no in(
|
||||
select apply_seq_no from emis_settle_invoice_record
|
||||
@ -323,6 +375,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
||||
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</if>
|
||||
|
||||
|
||||
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user