cgf
2025-08-09 569bd97e623c596ac2db49aa65c88966380b6562
java110-db/src/main/resources/mapper/store/ContractServiceDaoImplMapper.xml
@@ -9,12 +9,12 @@
                             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)
                             obj_name, obj_person_name, obj_person_id, start_user_id,party_c,c_link,c_contacts)
        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})
                #{objName}, #{objPersonName}, #{objPersonId}, #{startUserId},#{partyC},#{cLink},#{cContacts})
    </insert>
    <!-- 查询合同管理信息 add by wuxw 2018-07-03 -->
@@ -29,7 +29,7 @@
        objType,t.operator_link,t.operator_link operatorLink,ct.type_name contractTypeName,ct.audit,td.`name`
        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
        objPersonId,t.start_user_id startUserId,t.create_time createTime,t.party_c partyC,t.c_link cLink,t.c_contacts cContacts
        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
@@ -111,6 +111,15 @@
        </if>
        <if test="state !=null and state != ''">
            and t.state= #{state}
        </if>
        <if test="partyC !=null and partyC != ''">
            and t.party_c= #{partyC}
        </if>
        <if test="cLink !=null and cLink != ''">
            and t.c_link= #{cLink}
        </if>
        <if test="cContacts !=null and cContacts != ''">
            and t.c_contacts= #{cContacts}
        </if>
        <if test="noStates !=null ">
            and t.state not in
@@ -217,10 +226,21 @@
        <if test="operatorLink !=null and operatorLink != ''">
            , t.operator_link= #{operatorLink}
        </if>
        <if test="partyC !=null and partyC != ''">
            , t.party_c= #{partyC}
        </if>
        <if test="cLink !=null and cLink != ''">
            , t.c_link= #{cLink}
        </if>
        <if test="cContacts !=null and cContacts != ''">
            , t.c_contacts= #{cContacts}
        </if>
        where 1=1
        <if test="contractId !=null and contractId != ''">
            and t.contract_id= #{contractId}
        </if>
    </update>
    <!-- 查询合同管理数量 add by wuxw 2018-07-03 -->
@@ -230,6 +250,15 @@
        left join contract tt on t.contract_parent_id = tt.contract_id and tt.status_cd = '0' and tt.store_id =
        t.store_id
        where 1 =1
        <if test="partyC !=null and partyC != ''">
            and t.party_c= #{partyC}
        </if>
        <if test="cLink !=null and cLink != ''">
            and t.c_link= #{cLink}
        </if>
        <if test="cContacts !=null and cContacts != ''">
            and t.c_contacts= #{cContacts}
        </if>
        <if test="aLink !=null and aLink != ''">
            and t.a_link= #{aLink}
        </if>