add 工作组管理和全所统计增加“企业联系人”的查询条件
This commit is contained in:
@@ -149,4 +149,8 @@ public class PayWorkingGroup implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String principalB;
|
private String principalB;
|
||||||
|
|
||||||
|
@TableField(exist = false)
|
||||||
|
@ApiModelProperty(value = "企业联系人")
|
||||||
|
private String companyContactName;
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-1
@@ -19,7 +19,7 @@
|
|||||||
charge_notice_no_b AS chargeNoticeNoB,
|
charge_notice_no_b AS chargeNoticeNoB,
|
||||||
charge_notice_b_id AS chargeNoticeBId,
|
charge_notice_b_id AS chargeNoticeBId,
|
||||||
mission_and_objectives AS missionAndObjectives,
|
mission_and_objectives AS missionAndObjectives,
|
||||||
remarks,
|
pwg.remarks,
|
||||||
pwg.create_by AS createBy,
|
pwg.create_by AS createBy,
|
||||||
pwg.create_time AS createTime,
|
pwg.create_time AS createTime,
|
||||||
pwg.update_by AS updateBy,
|
pwg.update_by AS updateBy,
|
||||||
@@ -31,6 +31,10 @@
|
|||||||
left join pay_meeting pm on pwg.id = pm.working_group_id
|
left join pay_meeting pm on pwg.id = pm.working_group_id
|
||||||
left join pay_meeting_contacts pmc on pm.id = pmc.meeting_id
|
left join pay_meeting_contacts pmc on pm.id = pmc.meeting_id
|
||||||
</if>
|
</if>
|
||||||
|
<if test="payWorkingGroup.companyContactName != null and payWorkingGroup.companyContactName != ''">
|
||||||
|
left join pay_working_group_subitem pwgs on pwg.id = pwgs.working_group_id
|
||||||
|
left JOIN pay_working_group_subitem_contacts pwgsc on pwgsc.working_group_sub_id = pwgs.id
|
||||||
|
</if>
|
||||||
<where>
|
<where>
|
||||||
<if test="payWorkingGroup.workingGroupProject != null and payWorkingGroup.workingGroupProject != ''">
|
<if test="payWorkingGroup.workingGroupProject != null and payWorkingGroup.workingGroupProject != ''">
|
||||||
AND working_group_project LIKE concat('%',concat(#{payWorkingGroup.workingGroupProject},'%'))
|
AND working_group_project LIKE concat('%',concat(#{payWorkingGroup.workingGroupProject},'%'))
|
||||||
@@ -48,6 +52,9 @@
|
|||||||
OR pmc.meeting_contacts_id = #{payWorkingGroup.principalA}
|
OR pmc.meeting_contacts_id = #{payWorkingGroup.principalA}
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
|
<if test="payWorkingGroup.companyContactName != null and payWorkingGroup.companyContactName != ''">
|
||||||
|
and pwgsc.contacts_temporary_name like concat('%', #{payWorkingGroup.companyContactName}, '%')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY pwg.create_time DESC
|
ORDER BY pwg.create_time DESC
|
||||||
</select>
|
</select>
|
||||||
@@ -399,6 +406,9 @@
|
|||||||
<if test="allProjectStatisticsSearch.billYear != null and allProjectStatisticsSearch.billYear != ''">
|
<if test="allProjectStatisticsSearch.billYear != null and allProjectStatisticsSearch.billYear != ''">
|
||||||
and DATE_FORMAT (pmb.bill_date,'%Y') like concat(#{allProjectStatisticsSearch.billYear}, '%')
|
and DATE_FORMAT (pmb.bill_date,'%Y') like concat(#{allProjectStatisticsSearch.billYear}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="allProjectStatisticsSearch.companyContactName != null and allProjectStatisticsSearch.companyContactName != ''">
|
||||||
|
and contactsName like concat('%', #{allProjectStatisticsSearch.companyContactName}, '%')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
group by v.projectId) p
|
group by v.projectId) p
|
||||||
<if test="allProjectStatisticsSearch.column != null and allProjectStatisticsSearch.column != ''">
|
<if test="allProjectStatisticsSearch.column != null and allProjectStatisticsSearch.column != ''">
|
||||||
@@ -485,6 +495,9 @@
|
|||||||
<if test="allProjectStatisticsSearch.billYear != null and allProjectStatisticsSearch.billYear != ''">
|
<if test="allProjectStatisticsSearch.billYear != null and allProjectStatisticsSearch.billYear != ''">
|
||||||
and DATE_FORMAT (pmb.bill_date,'%Y') like concat(#{allProjectStatisticsSearch.billYear}, '%')
|
and DATE_FORMAT (pmb.bill_date,'%Y') like concat(#{allProjectStatisticsSearch.billYear}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="allProjectStatisticsSearch.companyContactName != null and allProjectStatisticsSearch.companyContactName != ''">
|
||||||
|
and contactsName like concat('%', #{allProjectStatisticsSearch.companyContactName}, '%')
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<!-- 全所统计导出-->
|
<!-- 全所统计导出-->
|
||||||
|
|||||||
+3
@@ -53,4 +53,7 @@ public class AllProjectStatisticsSearch {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "排序规则")
|
@ApiModelProperty(value = "排序规则")
|
||||||
private String order;
|
private String order;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "企业联系人")
|
||||||
|
private String companyContactName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user