|
@@ -45,6 +45,9 @@
|
|
|
<if test="reportReqVo.status != null and reportReqVo.status != ''">
|
|
<if test="reportReqVo.status != null and reportReqVo.status != ''">
|
|
|
and p.status = #{reportReqVo.status}
|
|
and p.status = #{reportReqVo.status}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="reportReqVo.settleMonth != null and reportReqVo.settleMonth != ''">
|
|
|
|
|
+ and p.settle_month = #{reportReqVo.settleMonth}
|
|
|
|
|
+ </if>
|
|
|
<if test="reportReqVo.quoteStartDate != null and reportReqVo.quoteEndDate != null">
|
|
<if test="reportReqVo.quoteStartDate != null and reportReqVo.quoteEndDate != null">
|
|
|
and p.create_time between #{reportReqVo.quoteStartDate} AND #{reportReqVo.quoteEndDate}
|
|
and p.create_time between #{reportReqVo.quoteStartDate} AND #{reportReqVo.quoteEndDate}
|
|
|
</if>
|
|
</if>
|
|
@@ -74,6 +77,9 @@
|
|
|
<if test="reportReqVo.status != null and reportReqVo.status != ''">
|
|
<if test="reportReqVo.status != null and reportReqVo.status != ''">
|
|
|
and p.status = #{reportReqVo.status}
|
|
and p.status = #{reportReqVo.status}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="reportReqVo.settleMonth != null and reportReqVo.settleMonth != ''">
|
|
|
|
|
+ and p.settle_month = #{reportReqVo.settleMonth}
|
|
|
|
|
+ </if>
|
|
|
<if test="reportReqVo.quoteStartDate != null and reportReqVo.quoteEndDate != null">
|
|
<if test="reportReqVo.quoteStartDate != null and reportReqVo.quoteEndDate != null">
|
|
|
and p.create_time between #{reportReqVo.quoteStartDate} AND #{reportReqVo.quoteEndDate}
|
|
and p.create_time between #{reportReqVo.quoteStartDate} AND #{reportReqVo.quoteEndDate}
|
|
|
</if>
|
|
</if>
|
|
@@ -82,20 +88,33 @@
|
|
|
</foreach>
|
|
</foreach>
|
|
|
) as s
|
|
) as s
|
|
|
</select>
|
|
</select>
|
|
|
- <select id="getInsPlySettleReportList" resultMap="BaseResultMap">
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <resultMap id="InsPlySettleStatisticsListResMap" type="com.ydtech.modules.report.model.vo.InsPlySettleStatisticsListResVo">
|
|
|
|
|
+ <id column="settleno" property="settleno" />
|
|
|
|
|
+ <result column="company_name" property="companyName" />
|
|
|
|
|
+ <result column="settle_month" property="settleMonth" />
|
|
|
|
|
+ <result column="settle_batch" property="settleBatch" />
|
|
|
|
|
+ <result column="commission_feevalue" property="commissionFeevalue" />
|
|
|
|
|
+ <result column="other_feevalue" property="otherFeevalue" />
|
|
|
|
|
+ <result column="all_fee_value" property="allFeeValue" />
|
|
|
|
|
+ <result column="create_time" property="createTime" />
|
|
|
|
|
+ <result column="operator" property="operator" />
|
|
|
|
|
+ <result column="status" property="status" />
|
|
|
|
|
+ </resultMap>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="getInsPlySettleReportList" resultMap="InsPlySettleStatisticsListResMap">
|
|
|
SELECT
|
|
SELECT
|
|
|
p.settleno,
|
|
p.settleno,
|
|
|
- p.company_id,
|
|
|
|
|
(select name from esm_ins_company where id = p.company_id)company_name,
|
|
(select name from esm_ins_company where id = p.company_id)company_name,
|
|
|
p.settle_month,
|
|
p.settle_month,
|
|
|
p.settle_batch,
|
|
p.settle_batch,
|
|
|
- p.status,
|
|
|
|
|
p.`commission_feevalue`,
|
|
p.`commission_feevalue`,
|
|
|
p.`other_feevalue`,
|
|
p.`other_feevalue`,
|
|
|
p.`all_fee_value`,
|
|
p.`all_fee_value`,
|
|
|
p.create_time,
|
|
p.create_time,
|
|
|
- p.dept_id,
|
|
|
|
|
- p.operator
|
|
|
|
|
|
|
+ p.operator,
|
|
|
|
|
+ p.status
|
|
|
FROM
|
|
FROM
|
|
|
ins_ply_settle p WHERE 1=1
|
|
ins_ply_settle p WHERE 1=1
|
|
|
<if test="reportReqVo.companyId != null and reportReqVo.companyId != ''">
|
|
<if test="reportReqVo.companyId != null and reportReqVo.companyId != ''">
|
|
@@ -104,6 +123,9 @@
|
|
|
<if test="reportReqVo.status != null and reportReqVo.status != ''">
|
|
<if test="reportReqVo.status != null and reportReqVo.status != ''">
|
|
|
and p.status = #{reportReqVo.status}
|
|
and p.status = #{reportReqVo.status}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="reportReqVo.settleMonth != null and reportReqVo.settleMonth != ''">
|
|
|
|
|
+ and p.settle_month = #{reportReqVo.settleMonth}
|
|
|
|
|
+ </if>
|
|
|
<if test="reportReqVo.quoteStartDate != null and reportReqVo.quoteEndDate != null">
|
|
<if test="reportReqVo.quoteStartDate != null and reportReqVo.quoteEndDate != null">
|
|
|
and p.create_time between #{reportReqVo.quoteStartDate} AND #{reportReqVo.quoteEndDate}
|
|
and p.create_time between #{reportReqVo.quoteStartDate} AND #{reportReqVo.quoteEndDate}
|
|
|
</if>
|
|
</if>
|