|
@@ -396,35 +396,4 @@
|
|
|
AND createtime BETWEEN #{params.startDateStr} and #{params.endDateStr}
|
|
AND createtime BETWEEN #{params.startDateStr} and #{params.endDateStr}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <select id="selectEntityByinsOrderNo" resultType="com.ydtech.modules.order.entity.InsAreaCompany">
|
|
|
|
|
- SELECT
|
|
|
|
|
- sum(a.first_detail_premiums) as "willFirstPremiums"
|
|
|
|
|
- FROM
|
|
|
|
|
- ins_fee_order_new a
|
|
|
|
|
- LEFT JOIN ins_area_company iac on iac.id=a.ins_order_no
|
|
|
|
|
- WHERE
|
|
|
|
|
- a.id NOT IN (
|
|
|
|
|
- SELECT
|
|
|
|
|
- ins_order_no
|
|
|
|
|
- FROM
|
|
|
|
|
- ins_fee_audit
|
|
|
|
|
- )
|
|
|
|
|
- AND iac.orderstatus =3
|
|
|
|
|
- <if test="firstUserId != null and firstUserId != ''">
|
|
|
|
|
- AND a.first_level_user_id = #{firstUserId}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="secondUserId != null and secondUserId != ''">
|
|
|
|
|
- AND a.two_level_user_id = #{secondUserId}
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if test="thirdUserId != null and thirdUserId != ''">
|
|
|
|
|
- AND a.three_level_user_id = #{thirdUserId}
|
|
|
|
|
- </if>
|
|
|
|
|
-
|
|
|
|
|
- <if test="id != null and id != ''">
|
|
|
|
|
- AND a.id = #{id}
|
|
|
|
|
- </if>
|
|
|
|
|
- </select>
|
|
|
|
|
</mapper>
|
|
</mapper>
|