parent
9378b8d369
commit
5266d6d54a
@ -1,7 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="jnpf.mapper.ContractLMapper">
|
||||
|
||||
|
||||
|
||||
<resultMap id="contractL" type="jnpf.entity.ContractLEntity">
|
||||
<id column="id" property="id"></id>
|
||||
<result column="contract_type" property="contractType"></result>
|
||||
<result column="contract_template_id" property="contractTemplateId"></result>
|
||||
<result column="contract_number" property="contractNumber"></result>
|
||||
<result column="contract_name" property="contractName"></result>
|
||||
<result column="contract_no" property="contractNo"></result>
|
||||
<result column="contract_signed_time" property="contractSignedTime"></result>
|
||||
<result column="business_id" property="businessId"></result>
|
||||
<result column="contract_period_time" property="contractPeriodTime"></result>
|
||||
<result column="contract_period_time_end" property="contractPeriodTimeEnd"></result>
|
||||
<result column="delivery_time" property="deliveryTime"></result>
|
||||
<result column="delivery_time_end" property="deliveryTimeEnd"></result>
|
||||
<result column="dept_id" property="deptId"></result>
|
||||
<result column="subject" property="subject"></result>
|
||||
<result column="procurement_model" property="procurementModel"></result>
|
||||
<result column="related_contract_id" property="relatedContractId"></result>
|
||||
<result column="related_contract_name" property="relatedContractName"></result>
|
||||
<result column="subject2" property="subject2"></result>
|
||||
<result column="subject3" property="subject3"></result>
|
||||
<result column="delivery_model" property="deliveryModel"></result>
|
||||
<result column="delivery_location" property="deliveryLocation"></result>
|
||||
<result column="mode_transport" property="modeTransport"></result>
|
||||
<result column="cost_bearing_mian" property="costBearingMian"></result>
|
||||
<result column="pricing_model" property="pricingModel"></result>
|
||||
<result column="contract_requirement" property="contractRequirement"></result>
|
||||
<result column="remark" property="remark"></result>
|
||||
<result column="contract_label" property="contractLabel"></result>
|
||||
<result column="flow_id" property="flowId"></result>
|
||||
</resultMap>
|
||||
<select id="getContractLList" resultMap="contractL">
|
||||
SELECT
|
||||
a.id AS id,
|
||||
b.f_full_name AS contract_type,
|
||||
c.NAME AS contract_template_id,
|
||||
a.contract_number AS contract_number,
|
||||
a.contract_name AS contract_name,
|
||||
a.contract_no AS contract_no,
|
||||
a.contract_signed_time AS contract_signed_time,
|
||||
d.NAME AS business_id,
|
||||
a.contract_period_time AS contract_period_time,
|
||||
a.contract_period_time_end AS contract_period_time_end,
|
||||
a.delivery_time AS delivery_time,
|
||||
a.delivery_time_end AS delivery_time_end,
|
||||
e.f_full_name AS dept_id,
|
||||
f.NAME AS SUBJECT,
|
||||
CASE
|
||||
f.settlement_method
|
||||
WHEN '1' THEN
|
||||
'先货后款'
|
||||
WHEN '2' THEN
|
||||
'先款后货'
|
||||
END settlement_method,
|
||||
m.f_full_name as procurement_model,
|
||||
a.related_contract_id as related_contract_id,
|
||||
g.contract_name AS related_contract_name,
|
||||
f2.NAME AS subject2,
|
||||
f3.NAME AS subject3,
|
||||
h.f_full_name AS delivery_model,
|
||||
a.delivery_location AS delivery_location,
|
||||
i.f_full_name as mode_transport,
|
||||
l.f_full_name as cost_bearing_mian,
|
||||
n.f_full_name as pricing_model,
|
||||
a.contract_requirement as contract_requirement,
|
||||
a.remark as remark,
|
||||
a.contract_label as contract_label
|
||||
FROM
|
||||
jg_contract a
|
||||
LEFT JOIN ( SELECT f_full_name, f_en_code FROM base_dictionary_data WHERE f_dictionary_type_id = "519483543638772229" ) b ON a.contract_type = b.f_en_code
|
||||
LEFT JOIN ( SELECT id, NAME FROM jg_contract_template ) c ON a.contract_template_id = c.id
|
||||
LEFT JOIN ( SELECT id, NAME FROM jg_business_line ) d ON a.business_id = d.id
|
||||
LEFT JOIN ( SELECT f_id, f_full_name FROM base_organize ) e ON a.dept_id = e.f_id
|
||||
LEFT JOIN ( SELECT id, NAME, settlement_method FROM jg_subject_basic ) f ON a.SUBJECT = f.id
|
||||
LEFT JOIN ( SELECT id, NAME, settlement_method FROM jg_subject_basic ) f2 ON a.subject2 = f2.id
|
||||
LEFT JOIN ( SELECT id, NAME, settlement_method FROM jg_subject_basic ) f3 ON a.subject3 = f3.id
|
||||
LEFT JOIN ( SELECT id, contract_name FROM jg_contract ) g ON a.related_contract_id = g.id
|
||||
LEFT JOIN ( SELECT f_full_name, f_en_code FROM base_dictionary_data WHERE f_dictionary_type_id = "528909902031093765" ) h ON a.delivery_model = h.f_en_code
|
||||
LEFT JOIN ( SELECT f_full_name, f_en_code FROM base_dictionary_data WHERE f_dictionary_type_id = "528911662179155973" ) i ON a.mode_transport = i.f_en_code
|
||||
LEFT JOIN ( SELECT f_full_name, f_en_code FROM base_dictionary_data WHERE f_dictionary_type_id = "528912119651893253" ) l ON a.cost_bearing_mian = l.f_en_code
|
||||
LEFT JOIN ( SELECT f_full_name, f_en_code FROM base_dictionary_data WHERE f_dictionary_type_id = "528918479743483909" ) n ON a.pricing_model = n.f_en_code
|
||||
LEFT JOIN ( SELECT f_full_name, f_en_code FROM base_dictionary_data WHERE f_dictionary_type_id = "528908998779338757" ) m ON a.procurement_model = m.f_en_code
|
||||
${ew.customSqlSegment}
|
||||
<if test="contractLPagination.sidx != null and contractLPagination.sidx != ''">
|
||||
ORDER BY ${contractLPagination.sidx} ${contractLPagination.sort}
|
||||
</if>
|
||||
</select>
|
||||
<!-- <select id="getContractLList" resultMap="contractL">-->
|
||||
<!-- SELECT-->
|
||||
<!-- *-->
|
||||
<!-- FROM-->
|
||||
<!-- jg_contract-->
|
||||
<!-- ${ew.customSqlSegment}-->
|
||||
<!-- <if test="contractLPagination.sidx != null and contractLPagination.sidx != ''">-->
|
||||
<!-- ORDER BY ${contractLPagination.sidx} ${contractLPagination.sort}-->
|
||||
<!-- </if>-->
|
||||
<!-- </select>-->
|
||||
</mapper>
|
||||
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@
|
||||
<template>
|
||||
<div class="print-box">
|
||||
采购合同
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
Loading…
Reference in new issue