add 到账开票导出增加企业联系人
This commit is contained in:
+8
-7
@@ -283,11 +283,11 @@
|
||||
<!-- 到账开票导出-->
|
||||
<select id="mainListExportXls" resultType="com.jero.project.vo.PayCommonProjectOutput">
|
||||
select p.id,p.charge_project, p.charge_use, p.principal_id,p.principal_name,p.charge_company_temporary_name,p.receivable_amount,p.paid_amount,p.need_invoice,p.pack,p.in_account,p.make_invoice,p.mail,p.create_time,p.projectType,p.charge_company_temporary_id,
|
||||
p.confirm_amount
|
||||
p.confirm_amount,p.contacts_temporary_name
|
||||
from
|
||||
(<!-- 普通项目-->
|
||||
select c.id,c.charge_project, c.charge_use, c.principal_id,su.realname as principal_name,c.charge_company_temporary_name,c.receivable_amount,c.paid_amount,c.need_invoice,c.pack,c.in_account,c.make_invoice,c.mail,c.create_time,1 as projectType,c.charge_company_temporary_id
|
||||
,c.confirm_amount
|
||||
,c.confirm_amount,c.contacts_temporary_name
|
||||
from pay_common_project c
|
||||
left join sys_user su on c.principal_id = su.id
|
||||
where
|
||||
@@ -318,10 +318,11 @@
|
||||
<!--工作组项目-->
|
||||
UNION ALL
|
||||
select gsub.id,g.working_group_project, gsub.charge_use, g.principal_id_a,su.realname,gsub.charge_company_temporary_name,gsub.receivable_amount,gsub.paid_amount,gsub.need_invoice,gsub.pack,gsub.in_account,gsub.make_invoice,gsub.mail,gsub.create_time,2,gsub.charge_company_temporary_id,
|
||||
gsub.confirm_amount
|
||||
gsub.confirm_amount,gsubc.contacts_temporary_name
|
||||
from pay_working_group g
|
||||
left join sys_user su on g.principal_id_a = su.id
|
||||
inner join pay_working_group_subitem gsub on g.id = gsub.working_group_id
|
||||
inner join pay_working_group_subitem_contacts gsubc on gsubc.working_group_sub_id = gsub.id and order_num=1
|
||||
where
|
||||
gsub.receivable_amount <![CDATA[<>]]> 0
|
||||
and gsub.receivable_amount is not null
|
||||
@@ -350,7 +351,7 @@
|
||||
<!-- 会议项目-->
|
||||
UNION ALL
|
||||
select sit.id,meeting.meeting_name,sit.charge_use, meeting.director_id, su.realname,sit.company_name,sit.amount_receivable,sit.paid_amount,sit.need_invoice,sit.pack,sit.in_account,sit.make_invoice,sit.mail,sit.create_time,3,sit.company_id,
|
||||
sit.confirm_amount
|
||||
sit.confirm_amount,sit.company_contact_name
|
||||
from pay_meeting meeting
|
||||
left join sys_user su on meeting.director_id = su.id
|
||||
inner join pay_meeting_situation sit on meeting.id = sit.meeting_id
|
||||
@@ -382,7 +383,7 @@
|
||||
<!-- 会员项目-->
|
||||
UNION ALL
|
||||
select msub.id,member.project_name,msub.charge_use,member.director_id,su.realname,msub.company_name,msub.amount_receivable,msub.paid_amount,msub.need_invoice,msub.pack,msub.in_account,msub.make_invoice,msub.mail,msub.create_time,4,msub.company_temporary_id,
|
||||
msub.confirm_amount
|
||||
msub.confirm_amount,msub.company_contact_name
|
||||
from pay_member_project member
|
||||
left join sys_user su on member.director_id = su.id
|
||||
inner join pay_member_project_subitem msub on member.id=msub.project_id
|
||||
@@ -414,7 +415,7 @@
|
||||
<!-- 标协会员项目-->
|
||||
UNION ALL
|
||||
select tmsub.id,tmember.project_name,tmsub.charge_use,tmember.director_id,su.realname,tmsub.company_name,tmsub.amount_receivable,tmsub.paid_amount,tmsub.invoice_requirements,tmsub.pack,tmsub.in_account,tmsub.make_invoice,tmsub.mail,tmsub.create_time,5,tmsub.company_id,
|
||||
tmsub.confirm_amount
|
||||
tmsub.confirm_amount,tmsub.liaison_man
|
||||
from tb_member_project tmember
|
||||
left join sys_user su on tmember.director_id = su.id
|
||||
inner join tb_member_project_subitem tmsub on tmember.id=tmsub.project_id
|
||||
@@ -446,7 +447,7 @@
|
||||
<!-- 标协证书项目-->
|
||||
UNION ALL
|
||||
select tcp.id,tmember.project_name,tcp.charge_use,tmember.director_id,su.realname,tcp.company_name,tcp.amount_receivable,tcp.paid_amount,tcp.invoice_requirements,tcp.pack,tcp.in_account,tcp.make_invoice,tcp.mail,tcp.create_time,6,tcp.company_id,
|
||||
tcp.confirm_amount
|
||||
tcp.confirm_amount,tcp.liaison_man
|
||||
from tb_member_project tmember
|
||||
inner join tb_certificate_payment tcp on tmember.id=tcp.project_id
|
||||
left join sys_user su on su.id = tmember.director_id
|
||||
|
||||
@@ -88,6 +88,7 @@ public class PayCommonProject implements Serializable {
|
||||
private String contactsTemporaryId;
|
||||
/**临时联系人名称*/
|
||||
@ApiModelProperty(value = "临时联系人名称")
|
||||
@Excel(name = "企业联系人", width = 15,orderNum = "3")
|
||||
private String contactsTemporaryName;
|
||||
/**应收金额(元)*/
|
||||
@Excel(name = "应收金额(元)", width = 15,orderNum = "4")
|
||||
|
||||
Reference in New Issue
Block a user