cgf
2025-08-23 9ec0a61f90ac2464eebc643bfe2d93ac9ba6e569
java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml
@@ -9,12 +9,14 @@
                             party_a, b_link, party_b,
                             contract_id, obj_id, contract_name, start_time, end_time, state, contract_code, obj_type,
                             operator_link, contract_parent_id,
                             obj_name, obj_person_name, obj_person_id, start_user_id,party_c,c_link,c_contacts)
                             obj_name, obj_person_name, obj_person_id, start_user_id,party_c,c_link,c_contacts
                            ,a_partya_id,b_partya_id,c_partya_id)
        values (#{aLink}, #{aContacts}, #{amount}, #{contractType}, #{storeId}, #{operator}, #{signingTime},
                #{bContacts}, #{partyA}, #{bLink}, #{partyB},
                #{contractId}, #{objId}, #{contractName}, #{startTime}, #{endTime}, #{state}, #{contractCode},
                #{objType}, #{operatorLink}, #{contractParentId},
                #{objName}, #{objPersonName}, #{objPersonId}, #{startUserId},#{partyC},#{cLink},#{cContacts})
                #{objName}, #{objPersonName}, #{objPersonId}, #{startUserId},#{partyC},#{cLink},#{cContacts}
               ,#{aPartyaId},#{bPartyaId},#{cPartyaId})
    </insert>
    <!-- 查询合同管理信息 add by wuxw 2018-07-03 -->
@@ -30,6 +32,7 @@
        stateName,t.state_desc stateDesc,t.contract_parent_id contractParentId,tt.contract_code parentContractCode,
        tt.contract_name parentContractName,t.obj_name objName, t.obj_person_name objPersonName, t.obj_person_id
        objPersonId,t.start_user_id startUserId,t.create_time createTime,t.party_c partyC,t.c_link cLink,t.c_contacts cContacts
        ,t.a_partya_id aPartyaId,t.b_partya_id bPartyaId,t.c_partya_id cPartyaId
        from contract t
        LEFT JOIN contract_type ct on t.contract_type = ct.contract_type_id and ct.status_cd = '0' and ct.store_id =
        t.store_id
@@ -157,10 +160,10 @@
        <if test="newBId != null and newBId != ''">
            ,t.b_id = #{newBId}
        </if>
        <if test="aLink !=null and aLink != ''">
        <if test="aLink !=null">
            , t.a_link= #{aLink}
        </if>
        <if test="aContacts !=null and aContacts != ''">
        <if test="aContacts !=null">
            , t.a_contacts= #{aContacts}
        </if>
        <if test="amount !=null and amount != ''">
@@ -178,13 +181,13 @@
        <if test="signingTime !=null and signingTime != ''">
            , t.signing_time= #{signingTime}
        </if>
        <if test="bContacts !=null and bContacts != ''">
        <if test="bContacts !=null">
            , t.b_contacts= #{bContacts}
        </if>
        <if test="partyA !=null and partyA != ''">
            , t.party_a= #{partyA}
        </if>
        <if test="bLink !=null and bLink != ''">
        <if test="bLink !=null">
            , t.b_link= #{bLink}
        </if>
        <if test="partyB !=null and partyB != ''">
@@ -229,12 +232,21 @@
        <if test="partyC !=null and partyC != ''">
            , t.party_c= #{partyC}
        </if>
        <if test="cLink !=null and cLink != ''">
        <if test="cLink !=null">
            , t.c_link= #{cLink}
        </if>
        <if test="cContacts !=null and cContacts != ''">
        <if test="cContacts !=null">
            , t.c_contacts= #{cContacts}
        </if>
        <if test="aPartyaId !=null">
            , t.a_partya_id= #{aPartyaId}
        </if>
        <if test="bPartyaId !=null">
            , t.b_partya_id= #{bPartyaId}
        </if>
        <if test="cPartyaId !=null">
            , t.c_partya_id= #{cPartyaId}
        </if>
        where 1=1
        <if test="contractId !=null and contractId != ''">
            and t.contract_id= #{contractId}