java110
2021-06-16 755262ba9a1a3c0573a0e910bbd0a353e9e2a2c5
java110-db/src/main/resources/mapper/store/ContractChangePlanDetailServiceDaoImplMapper.xml
@@ -8,12 +8,12 @@
    <!-- 保存合同变更明细信息 add by wuxw 2018-07-03 -->
    <insert id="saveContractChangePlanDetailInfo" parameterType="Map">
        insert into contract_change_plan_detail(
        a_link,a_contacts,amount,contract_type,detail_id,store_id,operator,signing_time,b_contacts,party_a,operate,b_link,
        party_b,contract_id,obj_id,plan_id,contract_name,start_time,end_time,state,contract_code,obj_type,operator_link,operate
        a_link,a_contacts,amount,contract_type,detail_id,store_id,operator,signing_time,b_contacts,party_a,b_link,
        party_b,contract_id,obj_id,plan_id,contract_name,start_time,end_time,contract_code,obj_type,operator_link,operate
        ) values (
        #{aLink},#{aContacts},#{amount},#{contractType},#{detailId},#{storeId},#{operator},#{signingTime},#{bContacts},
        #{partyA},#{operate},#{bLink},#{partyB},#{contractId},#{objId},#{planId},#{contractName},#{startTime},#{endTime},
        #{state},#{contractCode},#{objType},#{operatorLink},#{operate}
        #{partyA},#{bLink},#{partyB},#{contractId},#{objId},#{planId},#{contractName},#{startTime},#{endTime},
        #{contractCode},#{objType},#{operatorLink},#{operate}
        )
    </insert>
@@ -26,9 +26,11 @@
        bContacts,t.party_a,t.party_a partyA,t.b_link,t.b_link bLink,t.party_b,t.party_b
        partyB,t.contract_id,t.contract_id contractId,t.obj_id,t.obj_id objId,t.plan_id,t.plan_id
        planId,t.contract_name,t.contract_name contractName,t.start_time,t.start_time startTime,t.end_time,t.end_time
        endTime,t.state,t.contract_code,t.contract_code contractCode,t.obj_type,t.obj_type
        objType,t.operator_link,t.operator_link operatorLink,t.operate
        endTime,t.contract_code,t.contract_code contractCode,t.obj_type,t.obj_type
        objType,t.operator_link,t.operator_link operatorLink,t.operate,td.`name` planTypeName,ccp.plan_type planType
        from contract_change_plan_detail t
        inner join contract_change_plan ccp on t.plan_id = ccp.plan_id and ccp.status_cd = '0' and ccp.store_id = t.store_id
        left join t_dict td on ccp.plan_type = td.status_cd and td.table_name = 'contract_change_plan' and td.table_columns = 'plan_type'
        where 1 =1
        <if test="aLink !=null and aLink != ''">
            and t.a_link= #{aLink}
@@ -84,9 +86,7 @@
        <if test="endTime !=null and endTime != ''">
            and t.end_time= #{endTime}
        </if>
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="contractCode !=null and contractCode != ''">
            and t.contract_code= #{contractCode}
        </if>
@@ -164,9 +164,7 @@
        <if test="endTime !=null and endTime != ''">
            , t.end_time= #{endTime}
        </if>
        <if test="state !=null and state != ''">
            , t.state= #{state}
        </if>
        <if test="contractCode !=null and contractCode != ''">
            , t.contract_code= #{contractCode}
        </if>
@@ -242,9 +240,8 @@
        <if test="endTime !=null and endTime != ''">
            and t.end_time= #{endTime}
        </if>
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="contractCode !=null and contractCode != ''">
            and t.contract_code= #{contractCode}
        </if>