|
|
|
@ -68,10 +68,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
<select id="selectChildMap" resultMap="childMap"> |
|
|
|
<select id="selectChildMap" resultMap="childMap"> |
|
|
|
select <include refid="baseChildFields"/> from bidding_project_subscribe_child child where child.main_id = #{id} |
|
|
|
select |
|
|
|
|
|
|
|
<include refid="baseChildFields"/> |
|
|
|
|
|
|
|
from bidding_project_subscribe_child child where child.main_id = #{id} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
<select id="selectStepMap" resultMap="stepMap"> |
|
|
|
<select id="selectStepMap" resultMap="stepMap"> |
|
|
|
select <include refid="baseStepFields"/> from bidding_project_subscribe_step step where step.relation_main_id = #{id} |
|
|
|
select |
|
|
|
|
|
|
|
<include refid="baseStepFields"/> |
|
|
|
|
|
|
|
from bidding_project_subscribe_step step where step.relation_main_id = #{id} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<resultMap id="stepMap" type="jnpf.entity.BiddingProjectSubscribeStep"> |
|
|
|
<resultMap id="stepMap" type="jnpf.entity.BiddingProjectSubscribeStep"> |
|
|
|
@ -111,22 +115,30 @@ |
|
|
|
</resultMap> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="baseFields"> |
|
|
|
<sql id="baseFields"> |
|
|
|
main.id ,main.management_style ,main.project_number ,main.plan_submission_time ,main.reporting_corp ,main.tendering_entity ,main.project_name ,main.Item_classification ,main.organizational_form ,main.bidding_method ,main.reported_file_name ,main.bidding_document_id ,main.decision_procedure ,main.approval_documents_id ,main.final_approval_time ,main.setting_of_winning_bidder_one ,main.setting_of_winning_bidder_two ,main.scoring_indicator_settings_one ,main.scoring_indicator_settings_two ,main.scoring_indicator_settings_three ,main.scoring_indicator_settings_four ,main.agency_one ,main.agency_two ,main.scoring_method_one ,main.scoring_method_two ,main.approval_documents_id_two ,main.result_reporting_time ,main.result_reported_file_name ,main.bid_opening_time ,main.explanation_of_bid ,main.winning_bidder_and_winning_amount ,main.bid_evaluation_committee ,main.tender_agency_fee ,main.attachment_of_bidding_results_one_id ,main.attachment_of_bidding_results_two_id ,main.winning_bidder ,main.winning_bidder_candidate ,main.filing_decision_procedure ,main.filing_results_one_id ,main.filing_results_two_id ,main.approval_time_for_results ,main.f_flowid ,main.f_flowtaskid ,main.annex_programme_document ,main.main_status ,main.main_status_name,bid_winning_amount,is_approval,query_type,approval_documents_id_jt,archive_number,main.create_time,main.update_time,main.winning_bidder_type,main.winning_bidder_info,main.control_price,main.filing_results_three_id,main.project_amount |
|
|
|
main |
|
|
|
|
|
|
|
. |
|
|
|
|
|
|
|
id |
|
|
|
|
|
|
|
,main.management_style ,main.project_number ,main.plan_submission_time ,main.reporting_corp ,main.tendering_entity ,main.project_name ,main.Item_classification ,main.organizational_form ,main.bidding_method ,main.reported_file_name ,main.bidding_document_id ,main.decision_procedure ,main.approval_documents_id ,main.final_approval_time ,main.setting_of_winning_bidder_one ,main.setting_of_winning_bidder_two ,main.scoring_indicator_settings_one ,main.scoring_indicator_settings_two ,main.scoring_indicator_settings_three ,main.scoring_indicator_settings_four ,main.agency_one ,main.agency_two ,main.scoring_method_one ,main.scoring_method_two ,main.approval_documents_id_two ,main.result_reporting_time ,main.result_reported_file_name ,main.bid_opening_time ,main.explanation_of_bid ,main.winning_bidder_and_winning_amount ,main.bid_evaluation_committee ,main.tender_agency_fee ,main.attachment_of_bidding_results_one_id ,main.attachment_of_bidding_results_two_id ,main.winning_bidder ,main.winning_bidder_candidate ,main.filing_decision_procedure ,main.filing_results_one_id ,main.filing_results_two_id ,main.approval_time_for_results ,main.f_flowid ,main.f_flowtaskid ,main.annex_programme_document ,main.main_status ,main.main_status_name,bid_winning_amount,is_approval,query_type,approval_documents_id_jt,archive_number,main.create_time,main.update_time,main.winning_bidder_type,main.winning_bidder_info,main.control_price,main.filing_results_three_id,main.project_amount |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
<sql id="baseStepFields"> |
|
|
|
<sql id="baseStepFields"> |
|
|
|
id,relation_main_id ,relation_type ,relation_child_id ,deal_type ,deal_type_name ,other_relation_id ,remake ,create_time ,create_user_id ,create_user_name ,create_organization_id ,create_organization_name |
|
|
|
id |
|
|
|
|
|
|
|
,relation_main_id ,relation_type ,relation_child_id ,deal_type ,deal_type_name ,other_relation_id ,remake ,create_time ,create_user_id ,create_user_name ,create_organization_id ,create_organization_name |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
|
|
<sql id="baseChildFields"> |
|
|
|
<sql id="baseChildFields"> |
|
|
|
child_id ,main_id ,child_status ,child_status_name ,user_dept_id ,user_dept_name ,user_id ,user_name ,remake ,create_time ,update_time ,root_child_flag ,root_child_id ,create_user_id ,create_user_name |
|
|
|
child_id |
|
|
|
|
|
|
|
,main_id ,child_status ,child_status_name ,user_dept_id ,user_dept_name ,user_id ,user_name ,remake ,create_time ,update_time ,root_child_flag ,root_child_id ,create_user_id ,create_user_name |
|
|
|
</sql> |
|
|
|
</sql> |
|
|
|
<select id="queryList" resultMap="BiddingProjectSubscribe" parameterType="jnpf.model.bidding_project_subscribe.BiddingProjectSubscribePagination"> |
|
|
|
<select id="queryList" resultMap="BiddingProjectSubscribe" |
|
|
|
select distinct <include refid="baseFields"/> |
|
|
|
parameterType="jnpf.model.bidding_project_subscribe.BiddingProjectSubscribePagination"> |
|
|
|
|
|
|
|
select distinct |
|
|
|
|
|
|
|
<include refid="baseFields"/> |
|
|
|
from bidding_project_subscribe main |
|
|
|
from bidding_project_subscribe main |
|
|
|
left join bidding_project_subscribe_child child on child.main_id=main.id |
|
|
|
left join bidding_project_subscribe_child child on child.main_id=main.id |
|
|
|
where 1=1 |
|
|
|
where 1=1 |
|
|
|
<if test="sql != null and sql !=''"> |
|
|
|
<if test="sql != null and sql !=''"> |
|
|
|
and main.id in (select child.main_id from bidding_project_subscribe_child child where root_child_flag='0' and ${sql}) |
|
|
|
and main.id in (select child.main_id from bidding_project_subscribe_child child where root_child_flag='0' |
|
|
|
|
|
|
|
and ${sql}) |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="param.childIdList != null and param.childIdList.size()>0"> |
|
|
|
<if test="param.childIdList != null and param.childIdList.size()>0"> |
|
|
|
@ -138,9 +150,90 @@ |
|
|
|
order by main.create_time desc |
|
|
|
order by main.create_time desc |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
|
|
<select id="getInfoById" resultMap="BiddingProjectSubscribe" parameterType="jnpf.model.bidding_project_subscribe.BiddingProjectSubscribePagination"> |
|
|
|
<select id="getInfoById" resultMap="BiddingProjectSubscribe" |
|
|
|
select <include refid="baseFields"/> |
|
|
|
parameterType="jnpf.model.bidding_project_subscribe.BiddingProjectSubscribePagination"> |
|
|
|
|
|
|
|
select |
|
|
|
|
|
|
|
<include refid="baseFields"/> |
|
|
|
from bidding_project_subscribe main |
|
|
|
from bidding_project_subscribe main |
|
|
|
where main.id=#{id} |
|
|
|
where main.id=#{id} |
|
|
|
</select> |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getProjectsNumberByType" resultType="jnpf.model.dto.IndicatorStatisticsDto$Indicator"> |
|
|
|
|
|
|
|
select |
|
|
|
|
|
|
|
<if test="param.type=='1'.toString()"> |
|
|
|
|
|
|
|
count(1) yData, |
|
|
|
|
|
|
|
concat(date_format(create_time,'%d'),'日') xData |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.type=='2'.toString()"> |
|
|
|
|
|
|
|
count(1) yData, |
|
|
|
|
|
|
|
concat(date_format(create_time,'%m'),'月') xData |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.type=='3'.toString()"> |
|
|
|
|
|
|
|
count(1) yData, |
|
|
|
|
|
|
|
concat(date_format(create_time,'%Y'),'年') xData |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
from bidding_project_subscribe main |
|
|
|
|
|
|
|
where 1=1 |
|
|
|
|
|
|
|
<if test="param.type=='1'.toString()"> |
|
|
|
|
|
|
|
and date_format(create_time,'%Y-%m')=#{param.corresponding} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.type=='2'.toString()"> |
|
|
|
|
|
|
|
and date_format(create_time,'%Y')=#{param.corresponding} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="sql != null and sql !=''"> |
|
|
|
|
|
|
|
and main.id in (select child.main_id from bidding_project_subscribe_child child where root_child_flag='0' |
|
|
|
|
|
|
|
and ${sql}) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.type=='1'.toString()"> |
|
|
|
|
|
|
|
group by date_format(create_time,'%d') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.type=='2'.toString()"> |
|
|
|
|
|
|
|
group by date_format(create_time,'%m') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.type=='3'.toString()"> |
|
|
|
|
|
|
|
group by date_format(create_time,'%Y') |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="moneyAndProjectsNumber" |
|
|
|
|
|
|
|
resultType="jnpf.model.dto.IndicatorStatisticsDto$MoneyAndProjectsNumberChild"> |
|
|
|
|
|
|
|
select |
|
|
|
|
|
|
|
sum(project_amount) money, |
|
|
|
|
|
|
|
<if test="param.classificationType=='1'.toString()"> |
|
|
|
|
|
|
|
count(1) projectsNumber, |
|
|
|
|
|
|
|
'' yName |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.classificationType=='2'.toString()"> |
|
|
|
|
|
|
|
count(organizational_form) projectsNumber, |
|
|
|
|
|
|
|
(select f_full_name from base_dictionary_data where f_dictionary_type_id='539393647729185989' and f_en_code=main.organizational_form limit 1) yName |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.classificationType=='3'.toString()"> |
|
|
|
|
|
|
|
count(Item_classification) projectsNumber, |
|
|
|
|
|
|
|
(select f_full_name from base_dictionary_data where f_dictionary_type_id='539390743437907141' and f_en_code=main.item_classification limit 1) yName |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.classificationType=='4'.toString()"> |
|
|
|
|
|
|
|
count(bidding_method) projectsNumber, |
|
|
|
|
|
|
|
(select f_full_name from base_dictionary_data where f_dictionary_type_id='539394095383057605' and f_en_code=main.bidding_method limit 1) yName |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
from bidding_project_subscribe main |
|
|
|
|
|
|
|
where 1=1 |
|
|
|
|
|
|
|
<if test="param.queryDateType=='1'.toString()"> |
|
|
|
|
|
|
|
and date_format(create_time,'%Y-%m')=#{param.corresponding} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.queryDateType=='2'.toString()"> |
|
|
|
|
|
|
|
and date_format(create_time,'%Y')=#{param.corresponding} |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="sql != null and sql !=''"> |
|
|
|
|
|
|
|
and main.id in (select child.main_id from bidding_project_subscribe_child child where root_child_flag='0' |
|
|
|
|
|
|
|
and ${sql}) |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.classificationType=='2'.toString()"> |
|
|
|
|
|
|
|
group by organizational_form order by count(organizational_form) desc |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.classificationType=='3'.toString()"> |
|
|
|
|
|
|
|
group by Item_classification order by count(Item_classification) desc |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
<if test="param.classificationType=='4'.toString()"> |
|
|
|
|
|
|
|
group by bidding_method order by count(bidding_method) desc |
|
|
|
|
|
|
|
</if> |
|
|
|
|
|
|
|
</select> |
|
|
|
</mapper> |
|
|
|
</mapper> |
|
|
|
|