|
|
@@ -13,23 +13,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="townName" column="town_name" /> |
|
|
|
<result property="orgCode" column="org_code" /> |
|
|
|
<result property="orgName" column="org_name" /> |
|
|
|
<result property="bookCount" column="book_count" /> |
|
|
|
<result property="bookId" column="book_id" /> |
|
|
|
<result property="bookName" column="book_name" /> |
|
|
|
<result property="orderYear" column="order_year" /> |
|
|
|
<result property="orderMonth" column="order_month" /> |
|
|
|
<result property="voucherCount" column="voucher_count" /> |
|
|
|
<result property="contractionCount" column="contraction_count" /> |
|
|
|
<result property="contracCount" column="contrac_count" /> |
|
|
|
<result property="assetCount" column="asset_count" /> |
|
|
|
<result property="allCount" column="all_count" /> |
|
|
|
<result property="orderYear" column="order_year" /> |
|
|
|
<result property="orderMonth" column="order_month" /> |
|
|
|
<result property="finishCount" column="finish_count" /> |
|
|
|
<result property="agentStatus" column="agent_status" /> |
|
|
|
<result property="distributionChief" column="distribution_chief" /> |
|
|
|
<result property="distributionDate" column="distribution_date" /> |
|
|
|
<result property="distriUser" column="distri_user" /> |
|
|
|
<result property="distriNick" column="distri_nick" /> |
|
|
|
<result property="distriDate" column="distri_date" /> |
|
|
|
<result property="endAt" column="end_at" /> |
|
|
|
<result property="handleAccount" column="handle_account" /> |
|
|
|
<result property="handleUser" column="handle_user" /> |
|
|
|
<result property="handleNick" column="handle_nick" /> |
|
|
|
<result property="handleRemark" column="handle_remark" /> |
|
|
|
<result property="handleDate" column="handle_date" /> |
|
|
|
<result property="auditAccount" column="audit_account" /> |
|
|
|
<result property="auditUser" column="audit_user" /> |
|
|
|
<result property="auditNick" column="audit_nick" /> |
|
|
|
<result property="auditDate" column="audit_date" /> |
|
|
|
<result property="taskScore" column="task_score" /> |
|
|
|
<result property="taskAppraise" column="task_appraise" /> |
|
|
|
<result property="appraiseUser" column="appraise_user" /> |
|
|
|
<result property="appraiseNick" column="appraise_nick" /> |
|
|
|
<result property="appraiseScore" column="appraise_score" /> |
|
|
|
<result property="appraiseRemark" column="appraise_remark" /> |
|
|
|
<result property="createBy" column="create_by" /> |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
@@ -37,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectTAgentTaskVo"> |
|
|
|
select id, agent_center, county_code, county_name, town_code, town_name, org_code, org_name, book_count, voucher_count, contraction_count, asset_count, all_count, order_year, order_month, agent_status, distribution_chief, distribution_date, end_at, handle_account, handle_date, audit_account, audit_date, task_score, task_appraise, create_by, create_time, update_by, update_time from t_agent_task |
|
|
|
select id, agent_center, county_code, county_name, town_code, town_name, org_code, org_name, book_id, book_name, order_year, order_month, voucher_count, contrac_count, asset_count, all_count, finish_count, agent_status, distri_user, distri_nick, distri_date, end_at, handle_user, handle_nick, handle_remark, handle_date, audit_user, audit_nick, audit_date, appraise_user, appraise_nick, appraise_score, appraise_remark, create_by, create_time, update_by, update_time from t_agent_task |
|
|
|
</sql> |
|
|
|
|
|
|
|
<!--条件查询--> |
|
|
@@ -51,23 +59,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''"> and town_name like concat('%', #{townName}, '%')</if> |
|
|
|
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|
|
|
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if> |
|
|
|
<if test="bookCount != null "> and book_count = #{bookCount}</if> |
|
|
|
<if test="bookId != null "> and book_id = #{bookId}</if> |
|
|
|
<if test="bookName != null and bookName != ''"> and book_name like concat('%', #{bookName}, '%')</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="voucherCount != null "> and voucher_count = #{voucherCount}</if> |
|
|
|
<if test="contractionCount != null "> and contraction_count = #{contractionCount}</if> |
|
|
|
<if test="contracCount != null "> and contrac_count = #{contracCount}</if> |
|
|
|
<if test="assetCount != null "> and asset_count = #{assetCount}</if> |
|
|
|
<if test="allCount != null "> and all_count = #{allCount}</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="finishCount != null "> and finish_count = #{finishCount}</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''"> and agent_status = #{agentStatus}</if> |
|
|
|
<if test="distributionChief != null and distributionChief != ''"> and distribution_chief = #{distributionChief}</if> |
|
|
|
<if test="distributionDate != null "> and distribution_date = #{distributionDate}</if> |
|
|
|
<if test="distriUser != null and distriUser != ''"> and distri_user = #{distriUser}</if> |
|
|
|
<if test="distriNick != null and distriNick != ''"> and distri_nick = #{distriNick}</if> |
|
|
|
<if test="distriDate != null "> and distri_date = #{distriDate}</if> |
|
|
|
<if test="endAt != null and endAt != ''"> and end_at = #{endAt}</if> |
|
|
|
<if test="handleAccount != null and handleAccount != ''"> and handle_account = #{handleAccount}</if> |
|
|
|
<if test="handleUser != null and handleUser != ''"> and handle_user = #{handleUser}</if> |
|
|
|
<if test="handleNick != null and handleNick != ''"> and handle_nick = #{handleNick}</if> |
|
|
|
<if test="handleRemark != null and handleRemark != ''"> and handle_remark = #{handleRemark}</if> |
|
|
|
<if test="handleDate != null "> and handle_date = #{handleDate}</if> |
|
|
|
<if test="auditAccount != null and auditAccount != ''"> and audit_account = #{auditAccount}</if> |
|
|
|
<if test="auditUser != null and auditUser != ''"> and audit_user = #{auditUser}</if> |
|
|
|
<if test="auditNick != null and auditNick != ''"> and audit_nick = #{auditNick}</if> |
|
|
|
<if test="auditDate != null "> and audit_date = #{auditDate}</if> |
|
|
|
<if test="taskScore != null "> and task_score = #{taskScore}</if> |
|
|
|
<if test="taskAppraise != null and taskAppraise != ''"> and task_appraise = #{taskAppraise}</if> |
|
|
|
<if test="appraiseUser != null and appraiseUser != ''"> and appraise_user = #{appraiseUser}</if> |
|
|
|
<if test="appraiseNick != null and appraiseNick != ''"> and appraise_nick = #{appraiseNick}</if> |
|
|
|
<if test="appraiseScore != null "> and appraise_score = #{appraiseScore}</if> |
|
|
|
<if test="appraiseRemark != null and appraiseRemark != ''"> and appraise_remark = #{appraiseRemark}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@@ -88,23 +104,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''">town_name,</if> |
|
|
|
<if test="orgCode != null and orgCode != ''">org_code,</if> |
|
|
|
<if test="orgName != null and orgName != ''">org_name,</if> |
|
|
|
<if test="bookCount != null">book_count,</if> |
|
|
|
<if test="bookId != null">book_id,</if> |
|
|
|
<if test="bookName != null and bookName != ''">book_name,</if> |
|
|
|
<if test="orderYear != null and orderYear != ''">order_year,</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''">order_month,</if> |
|
|
|
<if test="voucherCount != null">voucher_count,</if> |
|
|
|
<if test="contractionCount != null">contraction_count,</if> |
|
|
|
<if test="contracCount != null">contrac_count,</if> |
|
|
|
<if test="assetCount != null">asset_count,</if> |
|
|
|
<if test="allCount != null">all_count,</if> |
|
|
|
<if test="orderYear != null and orderYear != ''">order_year,</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''">order_month,</if> |
|
|
|
<if test="finishCount != null">finish_count,</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''">agent_status,</if> |
|
|
|
<if test="distributionChief != null">distribution_chief,</if> |
|
|
|
<if test="distributionDate != null">distribution_date,</if> |
|
|
|
<if test="distriUser != null">distri_user,</if> |
|
|
|
<if test="distriNick != null">distri_nick,</if> |
|
|
|
<if test="distriDate != null">distri_date,</if> |
|
|
|
<if test="endAt != null">end_at,</if> |
|
|
|
<if test="handleAccount != null">handle_account,</if> |
|
|
|
<if test="handleUser != null">handle_user,</if> |
|
|
|
<if test="handleNick != null">handle_nick,</if> |
|
|
|
<if test="handleRemark != null">handle_remark,</if> |
|
|
|
<if test="handleDate != null">handle_date,</if> |
|
|
|
<if test="auditAccount != null">audit_account,</if> |
|
|
|
<if test="auditUser != null">audit_user,</if> |
|
|
|
<if test="auditNick != null">audit_nick,</if> |
|
|
|
<if test="auditDate != null">audit_date,</if> |
|
|
|
<if test="taskScore != null">task_score,</if> |
|
|
|
<if test="taskAppraise != null">task_appraise,</if> |
|
|
|
<if test="appraiseUser != null">appraise_user,</if> |
|
|
|
<if test="appraiseNick != null">appraise_nick,</if> |
|
|
|
<if test="appraiseScore != null">appraise_score,</if> |
|
|
|
<if test="appraiseRemark != null">appraise_remark,</if> |
|
|
|
<if test="createBy != null">create_by,</if> |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
@@ -118,23 +142,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''">#{townName},</if> |
|
|
|
<if test="orgCode != null and orgCode != ''">#{orgCode},</if> |
|
|
|
<if test="orgName != null and orgName != ''">#{orgName},</if> |
|
|
|
<if test="bookCount != null">#{bookCount},</if> |
|
|
|
<if test="bookId != null">#{bookId},</if> |
|
|
|
<if test="bookName != null and bookName != ''">#{bookName},</if> |
|
|
|
<if test="orderYear != null and orderYear != ''">#{orderYear},</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''">#{orderMonth},</if> |
|
|
|
<if test="voucherCount != null">#{voucherCount},</if> |
|
|
|
<if test="contractionCount != null">#{contractionCount},</if> |
|
|
|
<if test="contracCount != null">#{contracCount},</if> |
|
|
|
<if test="assetCount != null">#{assetCount},</if> |
|
|
|
<if test="allCount != null">#{allCount},</if> |
|
|
|
<if test="orderYear != null and orderYear != ''">#{orderYear},</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''">#{orderMonth},</if> |
|
|
|
<if test="finishCount != null">#{finishCount},</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''">#{agentStatus},</if> |
|
|
|
<if test="distributionChief != null">#{distributionChief},</if> |
|
|
|
<if test="distributionDate != null">#{distributionDate},</if> |
|
|
|
<if test="distriUser != null">#{distriUser},</if> |
|
|
|
<if test="distriNick != null">#{distriNick},</if> |
|
|
|
<if test="distriDate != null">#{distriDate},</if> |
|
|
|
<if test="endAt != null">#{endAt},</if> |
|
|
|
<if test="handleAccount != null">#{handleAccount},</if> |
|
|
|
<if test="handleUser != null">#{handleUser},</if> |
|
|
|
<if test="handleNick != null">#{handleNick},</if> |
|
|
|
<if test="handleRemark != null">#{handleRemark},</if> |
|
|
|
<if test="handleDate != null">#{handleDate},</if> |
|
|
|
<if test="auditAccount != null">#{auditAccount},</if> |
|
|
|
<if test="auditUser != null">#{auditUser},</if> |
|
|
|
<if test="auditNick != null">#{auditNick},</if> |
|
|
|
<if test="auditDate != null">#{auditDate},</if> |
|
|
|
<if test="taskScore != null">#{taskScore},</if> |
|
|
|
<if test="taskAppraise != null">#{taskAppraise},</if> |
|
|
|
<if test="appraiseUser != null">#{appraiseUser},</if> |
|
|
|
<if test="appraiseNick != null">#{appraiseNick},</if> |
|
|
|
<if test="appraiseScore != null">#{appraiseScore},</if> |
|
|
|
<if test="appraiseRemark != null">#{appraiseRemark},</if> |
|
|
|
<if test="createBy != null">#{createBy},</if> |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
@@ -153,23 +185,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
town_name, |
|
|
|
org_code, |
|
|
|
org_name, |
|
|
|
book_count, |
|
|
|
book_id, |
|
|
|
book_name, |
|
|
|
order_year, |
|
|
|
order_month, |
|
|
|
voucher_count, |
|
|
|
contraction_count, |
|
|
|
contrac_count, |
|
|
|
asset_count, |
|
|
|
all_count, |
|
|
|
order_year, |
|
|
|
order_month, |
|
|
|
finish_count, |
|
|
|
agent_status, |
|
|
|
distribution_chief, |
|
|
|
distribution_date, |
|
|
|
distri_user, |
|
|
|
distri_nick, |
|
|
|
distri_date, |
|
|
|
end_at, |
|
|
|
handle_account, |
|
|
|
handle_user, |
|
|
|
handle_nick, |
|
|
|
handle_remark, |
|
|
|
handle_date, |
|
|
|
audit_account, |
|
|
|
audit_user, |
|
|
|
audit_nick, |
|
|
|
audit_date, |
|
|
|
task_score, |
|
|
|
task_appraise, |
|
|
|
appraise_user, |
|
|
|
appraise_nick, |
|
|
|
appraise_score, |
|
|
|
appraise_remark, |
|
|
|
create_by, |
|
|
|
create_time, |
|
|
|
update_by, |
|
|
@@ -185,23 +225,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
#{item.townName}, |
|
|
|
#{item.orgCode}, |
|
|
|
#{item.orgName}, |
|
|
|
#{item.bookCount}, |
|
|
|
#{item.bookId}, |
|
|
|
#{item.bookName}, |
|
|
|
#{item.orderYear}, |
|
|
|
#{item.orderMonth}, |
|
|
|
#{item.voucherCount}, |
|
|
|
#{item.contractionCount}, |
|
|
|
#{item.contracCount}, |
|
|
|
#{item.assetCount}, |
|
|
|
#{item.allCount}, |
|
|
|
#{item.orderYear}, |
|
|
|
#{item.orderMonth}, |
|
|
|
#{item.finishCount}, |
|
|
|
#{item.agentStatus}, |
|
|
|
#{item.distributionChief}, |
|
|
|
#{item.distributionDate}, |
|
|
|
#{item.distriUser}, |
|
|
|
#{item.distriNick}, |
|
|
|
#{item.distriDate}, |
|
|
|
#{item.endAt}, |
|
|
|
#{item.handleAccount}, |
|
|
|
#{item.handleUser}, |
|
|
|
#{item.handleNick}, |
|
|
|
#{item.handleRemark}, |
|
|
|
#{item.handleDate}, |
|
|
|
#{item.auditAccount}, |
|
|
|
#{item.auditUser}, |
|
|
|
#{item.auditNick}, |
|
|
|
#{item.auditDate}, |
|
|
|
#{item.taskScore}, |
|
|
|
#{item.taskAppraise}, |
|
|
|
#{item.appraiseUser}, |
|
|
|
#{item.appraiseNick}, |
|
|
|
#{item.appraiseScore}, |
|
|
|
#{item.appraiseRemark}, |
|
|
|
#{item.createBy}, |
|
|
|
#{item.createTime}, |
|
|
|
#{item.updateBy}, |
|
|
@@ -221,23 +269,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''">town_name = #{townName},</if> |
|
|
|
<if test="orgCode != null and orgCode != ''">org_code = #{orgCode},</if> |
|
|
|
<if test="orgName != null and orgName != ''">org_name = #{orgName},</if> |
|
|
|
<if test="bookCount != null">book_count = #{bookCount},</if> |
|
|
|
<if test="bookId != null">book_id = #{bookId},</if> |
|
|
|
<if test="bookName != null and bookName != ''">book_name = #{bookName},</if> |
|
|
|
<if test="orderYear != null and orderYear != ''">order_year = #{orderYear},</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''">order_month = #{orderMonth},</if> |
|
|
|
<if test="voucherCount != null">voucher_count = #{voucherCount},</if> |
|
|
|
<if test="contractionCount != null">contraction_count = #{contractionCount},</if> |
|
|
|
<if test="contracCount != null">contrac_count = #{contracCount},</if> |
|
|
|
<if test="assetCount != null">asset_count = #{assetCount},</if> |
|
|
|
<if test="allCount != null">all_count = #{allCount},</if> |
|
|
|
<if test="orderYear != null and orderYear != ''">order_year = #{orderYear},</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''">order_month = #{orderMonth},</if> |
|
|
|
<if test="finishCount != null">finish_count = #{finishCount},</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''">agent_status = #{agentStatus},</if> |
|
|
|
<if test="distributionChief != null">distribution_chief = #{distributionChief},</if> |
|
|
|
<if test="distributionDate != null">distribution_date = #{distributionDate},</if> |
|
|
|
<if test="distriUser != null">distri_user = #{distriUser},</if> |
|
|
|
<if test="distriNick != null">distri_nick = #{distriNick},</if> |
|
|
|
<if test="distriDate != null">distri_date = #{distriDate},</if> |
|
|
|
<if test="endAt != null">end_at = #{endAt},</if> |
|
|
|
<if test="handleAccount != null">handle_account = #{handleAccount},</if> |
|
|
|
<if test="handleUser != null">handle_user = #{handleUser},</if> |
|
|
|
<if test="handleNick != null">handle_nick = #{handleNick},</if> |
|
|
|
<if test="handleRemark != null">handle_remark = #{handleRemark},</if> |
|
|
|
<if test="handleDate != null">handle_date = #{handleDate},</if> |
|
|
|
<if test="auditAccount != null">audit_account = #{auditAccount},</if> |
|
|
|
<if test="auditUser != null">audit_user = #{auditUser},</if> |
|
|
|
<if test="auditNick != null">audit_nick = #{auditNick},</if> |
|
|
|
<if test="auditDate != null">audit_date = #{auditDate},</if> |
|
|
|
<if test="taskScore != null">task_score = #{taskScore},</if> |
|
|
|
<if test="taskAppraise != null">task_appraise = #{taskAppraise},</if> |
|
|
|
<if test="appraiseUser != null">appraise_user = #{appraiseUser},</if> |
|
|
|
<if test="appraiseNick != null">appraise_nick = #{appraiseNick},</if> |
|
|
|
<if test="appraiseScore != null">appraise_score = #{appraiseScore},</if> |
|
|
|
<if test="appraiseRemark != null">appraise_remark = #{appraiseRemark},</if> |
|
|
|
<if test="createBy != null">create_by = #{createBy},</if> |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
@@ -259,23 +315,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="item.townName != null and item.townName != ''">town_name = #{item.townName},</if> |
|
|
|
<if test="item.orgCode != null and item.orgCode != ''">org_code = #{item.orgCode},</if> |
|
|
|
<if test="item.orgName != null and item.orgName != ''">org_name = #{item.orgName},</if> |
|
|
|
<if test="item.bookCount != null">book_count = #{item.bookCount},</if> |
|
|
|
<if test="item.bookId != null">book_id = #{item.bookId},</if> |
|
|
|
<if test="item.bookName != null and item.bookName != ''">book_name = #{item.bookName},</if> |
|
|
|
<if test="item.orderYear != null and item.orderYear != ''">order_year = #{item.orderYear},</if> |
|
|
|
<if test="item.orderMonth != null and item.orderMonth != ''">order_month = #{item.orderMonth},</if> |
|
|
|
<if test="item.voucherCount != null">voucher_count = #{item.voucherCount},</if> |
|
|
|
<if test="item.contractionCount != null">contraction_count = #{item.contractionCount},</if> |
|
|
|
<if test="item.contracCount != null">contrac_count = #{item.contracCount},</if> |
|
|
|
<if test="item.assetCount != null">asset_count = #{item.assetCount},</if> |
|
|
|
<if test="item.allCount != null">all_count = #{item.allCount},</if> |
|
|
|
<if test="item.orderYear != null and item.orderYear != ''">order_year = #{item.orderYear},</if> |
|
|
|
<if test="item.orderMonth != null and item.orderMonth != ''">order_month = #{item.orderMonth},</if> |
|
|
|
<if test="item.finishCount != null">finish_count = #{item.finishCount},</if> |
|
|
|
<if test="item.agentStatus != null and item.agentStatus != ''">agent_status = #{item.agentStatus},</if> |
|
|
|
<if test="item.distributionChief != null">distribution_chief = #{item.distributionChief},</if> |
|
|
|
<if test="item.distributionDate != null">distribution_date = #{item.distributionDate},</if> |
|
|
|
<if test="item.distriUser != null">distri_user = #{item.distriUser},</if> |
|
|
|
<if test="item.distriNick != null">distri_nick = #{item.distriNick},</if> |
|
|
|
<if test="item.distriDate != null">distri_date = #{item.distriDate},</if> |
|
|
|
<if test="item.endAt != null">end_at = #{item.endAt},</if> |
|
|
|
<if test="item.handleAccount != null">handle_account = #{item.handleAccount},</if> |
|
|
|
<if test="item.handleUser != null">handle_user = #{item.handleUser},</if> |
|
|
|
<if test="item.handleNick != null">handle_nick = #{item.handleNick},</if> |
|
|
|
<if test="item.handleRemark != null">handle_remark = #{item.handleRemark},</if> |
|
|
|
<if test="item.handleDate != null">handle_date = #{item.handleDate},</if> |
|
|
|
<if test="item.auditAccount != null">audit_account = #{item.auditAccount},</if> |
|
|
|
<if test="item.auditUser != null">audit_user = #{item.auditUser},</if> |
|
|
|
<if test="item.auditNick != null">audit_nick = #{item.auditNick},</if> |
|
|
|
<if test="item.auditDate != null">audit_date = #{item.auditDate},</if> |
|
|
|
<if test="item.taskScore != null">task_score = #{item.taskScore},</if> |
|
|
|
<if test="item.taskAppraise != null">task_appraise = #{item.taskAppraise},</if> |
|
|
|
<if test="item.appraiseUser != null">appraise_user = #{item.appraiseUser},</if> |
|
|
|
<if test="item.appraiseNick != null">appraise_nick = #{item.appraiseNick},</if> |
|
|
|
<if test="item.appraiseScore != null">appraise_score = #{item.appraiseScore},</if> |
|
|
|
<if test="item.appraiseRemark != null">appraise_remark = #{item.appraiseRemark},</if> |
|
|
|
<if test="item.createBy != null">create_by = #{item.createBy},</if> |
|
|
|
<if test="item.createTime != null">create_time = #{item.createTime},</if> |
|
|
|
<if test="item.updateBy != null">update_by = #{item.updateBy},</if> |
|
|
@@ -311,23 +375,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''"> and town_name like concat('%', #{townName}, '%')</if> |
|
|
|
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|
|
|
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if> |
|
|
|
<if test="bookCount != null "> and book_count = #{bookCount}</if> |
|
|
|
<if test="bookId != null "> and book_id = #{bookId}</if> |
|
|
|
<if test="bookName != null and bookName != ''"> and book_name like concat('%', #{bookName}, '%')</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="voucherCount != null "> and voucher_count = #{voucherCount}</if> |
|
|
|
<if test="contractionCount != null "> and contraction_count = #{contractionCount}</if> |
|
|
|
<if test="contracCount != null "> and contrac_count = #{contracCount}</if> |
|
|
|
<if test="assetCount != null "> and asset_count = #{assetCount}</if> |
|
|
|
<if test="allCount != null "> and all_count = #{allCount}</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="finishCount != null "> and finish_count = #{finishCount}</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''"> and agent_status = #{agentStatus}</if> |
|
|
|
<if test="distributionChief != null and distributionChief != ''"> and distribution_chief = #{distributionChief}</if> |
|
|
|
<if test="distributionDate != null "> and distribution_date = #{distributionDate}</if> |
|
|
|
<if test="distriUser != null and distriUser != ''"> and distri_user = #{distriUser}</if> |
|
|
|
<if test="distriNick != null and distriNick != ''"> and distri_nick = #{distriNick}</if> |
|
|
|
<if test="distriDate != null "> and distri_date = #{distriDate}</if> |
|
|
|
<if test="endAt != null and endAt != ''"> and end_at = #{endAt}</if> |
|
|
|
<if test="handleAccount != null and handleAccount != ''"> and handle_account = #{handleAccount}</if> |
|
|
|
<if test="handleUser != null and handleUser != ''"> and handle_user = #{handleUser}</if> |
|
|
|
<if test="handleNick != null and handleNick != ''"> and handle_nick = #{handleNick}</if> |
|
|
|
<if test="handleRemark != null and handleRemark != ''"> and handle_remark = #{handleRemark}</if> |
|
|
|
<if test="handleDate != null "> and handle_date = #{handleDate}</if> |
|
|
|
<if test="auditAccount != null and auditAccount != ''"> and audit_account = #{auditAccount}</if> |
|
|
|
<if test="auditUser != null and auditUser != ''"> and audit_user = #{auditUser}</if> |
|
|
|
<if test="auditNick != null and auditNick != ''"> and audit_nick = #{auditNick}</if> |
|
|
|
<if test="auditDate != null "> and audit_date = #{auditDate}</if> |
|
|
|
<if test="taskScore != null "> and task_score = #{taskScore}</if> |
|
|
|
<if test="taskAppraise != null and taskAppraise != ''"> and task_appraise = #{taskAppraise}</if> |
|
|
|
<if test="appraiseUser != null and appraiseUser != ''"> and appraise_user = #{appraiseUser}</if> |
|
|
|
<if test="appraiseNick != null and appraiseNick != ''"> and appraise_nick = #{appraiseNick}</if> |
|
|
|
<if test="appraiseScore != null "> and appraise_score = #{appraiseScore}</if> |
|
|
|
<if test="appraiseRemark != null and appraiseRemark != ''"> and appraise_remark = #{appraiseRemark}</if> |
|
|
|
</where> |
|
|
|
limit 1 |
|
|
|
</select> |
|
|
@@ -343,23 +415,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''"> and town_name like concat('%', #{townName}, '%')</if> |
|
|
|
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|
|
|
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if> |
|
|
|
<if test="bookCount != null "> and book_count = #{bookCount}</if> |
|
|
|
<if test="bookId != null "> and book_id = #{bookId}</if> |
|
|
|
<if test="bookName != null and bookName != ''"> and book_name like concat('%', #{bookName}, '%')</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="voucherCount != null "> and voucher_count = #{voucherCount}</if> |
|
|
|
<if test="contractionCount != null "> and contraction_count = #{contractionCount}</if> |
|
|
|
<if test="contracCount != null "> and contrac_count = #{contracCount}</if> |
|
|
|
<if test="assetCount != null "> and asset_count = #{assetCount}</if> |
|
|
|
<if test="allCount != null "> and all_count = #{allCount}</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="finishCount != null "> and finish_count = #{finishCount}</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''"> and agent_status = #{agentStatus}</if> |
|
|
|
<if test="distributionChief != null and distributionChief != ''"> and distribution_chief = #{distributionChief}</if> |
|
|
|
<if test="distributionDate != null "> and distribution_date = #{distributionDate}</if> |
|
|
|
<if test="distriUser != null and distriUser != ''"> and distri_user = #{distriUser}</if> |
|
|
|
<if test="distriNick != null and distriNick != ''"> and distri_nick = #{distriNick}</if> |
|
|
|
<if test="distriDate != null "> and distri_date = #{distriDate}</if> |
|
|
|
<if test="endAt != null and endAt != ''"> and end_at = #{endAt}</if> |
|
|
|
<if test="handleAccount != null and handleAccount != ''"> and handle_account = #{handleAccount}</if> |
|
|
|
<if test="handleUser != null and handleUser != ''"> and handle_user = #{handleUser}</if> |
|
|
|
<if test="handleNick != null and handleNick != ''"> and handle_nick = #{handleNick}</if> |
|
|
|
<if test="handleRemark != null and handleRemark != ''"> and handle_remark = #{handleRemark}</if> |
|
|
|
<if test="handleDate != null "> and handle_date = #{handleDate}</if> |
|
|
|
<if test="auditAccount != null and auditAccount != ''"> and audit_account = #{auditAccount}</if> |
|
|
|
<if test="auditUser != null and auditUser != ''"> and audit_user = #{auditUser}</if> |
|
|
|
<if test="auditNick != null and auditNick != ''"> and audit_nick = #{auditNick}</if> |
|
|
|
<if test="auditDate != null "> and audit_date = #{auditDate}</if> |
|
|
|
<if test="taskScore != null "> and task_score = #{taskScore}</if> |
|
|
|
<if test="taskAppraise != null and taskAppraise != ''"> and task_appraise = #{taskAppraise}</if> |
|
|
|
<if test="appraiseUser != null and appraiseUser != ''"> and appraise_user = #{appraiseUser}</if> |
|
|
|
<if test="appraiseNick != null and appraiseNick != ''"> and appraise_nick = #{appraiseNick}</if> |
|
|
|
<if test="appraiseScore != null "> and appraise_score = #{appraiseScore}</if> |
|
|
|
<if test="appraiseRemark != null and appraiseRemark != ''"> and appraise_remark = #{appraiseRemark}</if> |
|
|
|
</where> |
|
|
|
</select> |
|
|
|
|
|
|
@@ -375,25 +455,52 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="townName != null and townName != ''"> and town_name like concat('%', #{townName}, '%')</if> |
|
|
|
<if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
|
|
|
<if test="orgName != null and orgName != ''"> and org_name like concat('%', #{orgName}, '%')</if> |
|
|
|
<if test="bookCount != null "> and book_count = #{bookCount}</if> |
|
|
|
<if test="bookId != null "> and book_id = #{bookId}</if> |
|
|
|
<if test="bookName != null and bookName != ''"> and book_name like concat('%', #{bookName}, '%')</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="voucherCount != null "> and voucher_count = #{voucherCount}</if> |
|
|
|
<if test="contractionCount != null "> and contraction_count = #{contractionCount}</if> |
|
|
|
<if test="contracCount != null "> and contrac_count = #{contracCount}</if> |
|
|
|
<if test="assetCount != null "> and asset_count = #{assetCount}</if> |
|
|
|
<if test="allCount != null "> and all_count = #{allCount}</if> |
|
|
|
<if test="orderYear != null and orderYear != ''"> and order_year = #{orderYear}</if> |
|
|
|
<if test="orderMonth != null and orderMonth != ''"> and order_month = #{orderMonth}</if> |
|
|
|
<if test="finishCount != null "> and finish_count = #{finishCount}</if> |
|
|
|
<if test="agentStatus != null and agentStatus != ''"> and agent_status = #{agentStatus}</if> |
|
|
|
<if test="distributionChief != null and distributionChief != ''"> and distribution_chief = #{distributionChief}</if> |
|
|
|
<if test="distributionDate != null "> and distribution_date = #{distributionDate}</if> |
|
|
|
<if test="distriUser != null and distriUser != ''"> and distri_user = #{distriUser}</if> |
|
|
|
<if test="distriNick != null and distriNick != ''"> and distri_nick = #{distriNick}</if> |
|
|
|
<if test="distriDate != null "> and distri_date = #{distriDate}</if> |
|
|
|
<if test="endAt != null and endAt != ''"> and end_at = #{endAt}</if> |
|
|
|
<if test="handleAccount != null and handleAccount != ''"> and handle_account = #{handleAccount}</if> |
|
|
|
<if test="handleUser != null and handleUser != ''"> and handle_user = #{handleUser}</if> |
|
|
|
<if test="handleNick != null and handleNick != ''"> and handle_nick = #{handleNick}</if> |
|
|
|
<if test="handleRemark != null and handleRemark != ''"> and handle_remark = #{handleRemark}</if> |
|
|
|
<if test="handleDate != null "> and handle_date = #{handleDate}</if> |
|
|
|
<if test="auditAccount != null and auditAccount != ''"> and audit_account = #{auditAccount}</if> |
|
|
|
<if test="auditUser != null and auditUser != ''"> and audit_user = #{auditUser}</if> |
|
|
|
<if test="auditNick != null and auditNick != ''"> and audit_nick = #{auditNick}</if> |
|
|
|
<if test="auditDate != null "> and audit_date = #{auditDate}</if> |
|
|
|
<if test="taskScore != null "> and task_score = #{taskScore}</if> |
|
|
|
<if test="taskAppraise != null and taskAppraise != ''"> and task_appraise = #{taskAppraise}</if> |
|
|
|
<if test="appraiseUser != null and appraiseUser != ''"> and appraise_user = #{appraiseUser}</if> |
|
|
|
<if test="appraiseNick != null and appraiseNick != ''"> and appraise_nick = #{appraiseNick}</if> |
|
|
|
<if test="appraiseScore != null "> and appraise_score = #{appraiseScore}</if> |
|
|
|
<if test="appraiseRemark != null and appraiseRemark != ''"> and appraise_remark = #{appraiseRemark}</if> |
|
|
|
</where> |
|
|
|
limit 1 |
|
|
|
) |
|
|
|
</select> |
|
|
|
|
|
|
|
<!--更新--> |
|
|
|
<update id="updateTAgentTaskCount" parameterType="TAgentTask"> |
|
|
|
update t_agent_task |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="voucherCount != null">voucher_count = voucher_count + #{voucherCount},</if> |
|
|
|
<if test="contracCount != null">contrac_count = contrac_count + #{contracCount},</if> |
|
|
|
<if test="assetCount != null">asset_count = asset_count + #{assetCount},</if> |
|
|
|
<if test="finishCount != null">finish_count = finish_count + #{finishCount},</if> |
|
|
|
<choose> |
|
|
|
<when test="allCount != null"> |
|
|
|
all_count = all_count + #{allCount},</when> |
|
|
|
<otherwise> |
|
|
|
all_count = voucher_count + contrac_count + asset_count, |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
</trim> |
|
|
|
where id = #{id} |
|
|
|
</update> |
|
|
|
</mapper> |