信息校验的需要的sql

web_backend_develope
chenlw 9 years ago
parent 7061e3233d
commit a5f62fff43

@ -46,6 +46,10 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
jdbcType="VARCHAR" /> jdbcType="VARCHAR" />
<result property="mark" column="mark" javaType="string" <result property="mark" column="mark" javaType="string"
jdbcType="VARCHAR" /> jdbcType="VARCHAR" />
<result property="volumePath" column="volume_path" javaType="string"
jdbcType="VARCHAR" />
<result property="mark" column="mark" javaType="string"
jdbcType="VARCHAR" />
</resultMap> </resultMap>
<sql id="conditionsFilters"> <sql id="conditionsFilters">
<if test="dataType!=null"> <if test="dataType!=null">
@ -113,6 +117,16 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
ORDER BY data_details.id ORDER BY data_details.id
</select> </select>
<!-- 获取数据 条件:采集时间 -->
<select id="findByParam" resultType="com.platform.entities.DataInfoEntity" parameterType="com.platform.entities.DataInfoEntity">
SELECT
regionalism_code regionalismCode,system_code systemCode,checkout_indicate execResult,checkout_pay payResult
FROM data_details
WHERE
collection_time > #{collectingTime}
ORDER BY data_details.id
</select>
<!-- 获取数据符合筛选条件的总记录条数 --> <!-- 获取数据符合筛选条件的总记录条数 -->
<select id="getLimitedDataCount" resultType="java.lang.Integer" <select id="getLimitedDataCount" resultType="java.lang.Integer"
parameterType="com.platform.entities.PagerOptions"> parameterType="com.platform.entities.PagerOptions">

@ -157,6 +157,14 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
ORDER BY standard_data_details.area_code,standard_data_details.sys_code ORDER BY standard_data_details.area_code,standard_data_details.sys_code
</select> </select>
<select id="findAllCollect" resultMap="getEntityByText">
SELECT
<include refid="Base_Column_List" />
FROM standard_data_details
WHERE is_collection='是'
ORDER BY standard_data_details.area_code,standard_data_details.sys_code
</select>
<!-- 批量插入 --> <!-- 批量插入 -->
<select id="insertBatch" parameterType="java.util.List"> <select id="insertBatch" parameterType="java.util.List">
INSERT INTO default_data_description ( <include refid="Batch_Column_List" /> ) INSERT INTO default_data_description ( <include refid="Batch_Column_List" /> )
@ -173,78 +181,78 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
<!-- 更新字段 --> <!-- 更新字段 -->
<update id="update" parameterType="com.platform.entities.PreDataInfo"> <update id="update" parameterType="com.platform.entities.PreDataInfo">
UPDATE UPDATE
default_data_description default_data_description a
<set> <set>
<trim suffixOverrides=","> <trim suffixOverrides=",">
<if test="collection != null and collection != ''"> <if test="collection != null and collection != ''">
is_collect= #{collection}, a.is_collection= #{collection},
</if> </if>
<if test="areaLevel != null and areaLevel != ''"> <if test="areaLevel != null and areaLevel != ''">
area_level= #{areaLevel}, a.area_level= #{areaLevel},
</if> </if>
<if test="dataVersion != null and dataVersion != ''"> <if test="dataVersion != null and dataVersion != ''">
data_version= #{dataVersion}, a.data_version= #{dataVersion},
</if> </if>
<if test="beginUseTime != null and beginUseTime != ''"> <if test="beginUseTime != null and beginUseTime != ''">
begin_in_use= #{beginUseTime}, a.begin_in_use= #{beginUseTime},
</if> </if>
<if test="functionDetails != null and functionDetails != ''"> <if test="functionDetails != null and functionDetails != ''">
function_details= #{functionDetails}, a.function_details= #{functionDetails},
</if> </if>
<if test="departmentManager != null and departmentManager != ''"> <if test="departmentManager != null and departmentManager != ''">
department_manager= #{departmentManager}, a.department_manager= #{departmentManager},
</if> </if>
<if test="managerContacts != null and managerContacts != ''"> <if test="managerContacts != null and managerContacts != ''">
manager_contacts= #{managerContacts}, a.manager_contacts= #{managerContacts},
</if> </if>
<if test="developerFullName != null and developerFullName != ''"> <if test="developerFullName != null and developerFullName != ''">
sys_developer_full_name= #{developerFullName}, a.sys_developer_full_name= #{developerFullName},
</if> </if>
<if test="dataBaseType != null and dataBaseType != ''"> <if test="dataBaseType != null and dataBaseType != ''">
data_base_type= #{dataBaseType}, a.data_base_type= #{dataBaseType},
</if> </if>
<if test="dataBaseVersion != null and dataBaseVersion != ''"> <if test="dataBaseVersion != null and dataBaseVersion != ''">
data_base_version= #{dataBaseVersion}, a.data_base_version= #{dataBaseVersion},
</if> </if>
<if test="departmentBudgetManage != null and departmentBudgetManage != ''"> <if test="departmentBudgetManage != null and departmentBudgetManage != ''">
is_department_budget= #{departmentBudgetManage}, a.is_department_budget= #{departmentBudgetManage},
</if> </if>
<if test="budgetQuotaManage != null and budgetQuotaManage != ''"> <if test="budgetQuotaManage != null and budgetQuotaManage != ''">
is_budget_quota= #{budgetQuotaManage}, a.is_budget_quota= #{budgetQuotaManage},
</if> </if>
<if test="budgetExecManage != null and budgetExecManage != ''"> <if test="budgetExecManage != null and budgetExecManage != ''">
is_budget_exec= #{budgetExecManage}, a.is_budget_exec= #{budgetExecManage},
</if> </if>
<if test="totalBudgetAccount != null and totalBudgetAccount != ''"> <if test="totalBudgetAccount != null and totalBudgetAccount != ''">
total_budget_account= #{totalBudgetAccount}, a.total_budget_account= #{totalBudgetAccount},
</if> </if>
<if test="finalAccountManage != null and finalAccountManage != ''"> <if test="finalAccountManage != null and finalAccountManage != ''">
final_account_manage= #{finalAccountManage}, a.final_account_manage= #{finalAccountManage},
</if> </if>
<if test="reportFormManage != null and reportFormManage != ''"> <if test="reportFormManage != null and reportFormManage != ''">
report_form_manage= #{reportFormManage}, a.report_form_manage= #{reportFormManage},
</if> </if>
<if test="nonTaxManage != null and nonTaxManage != ''"> <if test="nonTaxManage != null and nonTaxManage != ''">
non_tax_revenue_manage= #{nonTaxManage}, a.non_tax_revenue_manage= #{nonTaxManage},
</if> </if>
<if test="wageSystem != null and wageSystem != ''"> <if test="wageSystem != null and wageSystem != ''">
wage_system= #{wageSystem}, a.wage_system= #{wageSystem},
</if> </if>
<if test="analysisOfFinancialEconomicProsperity != null and analysisOfFinancialEconomicProsperity != ''"> <if test="analysisOfFinancialEconomicProsperity != null and analysisOfFinancialEconomicProsperity != ''">
analysis_of_financial_economic_prosperity= #{analysisOfFinancialEconomicProsperity}, a.analysis_of_financial_economic_prosperity= #{analysisOfFinancialEconomicProsperity},
</if> </if>
<if test="governmentDebtManage != null and governmentDebtManage != ''"> <if test="governmentDebtManage != null and governmentDebtManage != ''">
government_debt= #{governmentDebtManage}, a.government_debt= #{governmentDebtManage},
</if> </if>
<if test="updateTime != null and updateTime != ''"> <if test="updateTime != null and updateTime != ''">
update_time= #{updateTime}, a.update_time= #{updateTime},
</if> </if>
</trim> </trim>
</set> </set>
<where> <where>
area_code = #{areaCode} a.area_code = #{areaCode}
AND sys_code = #{sysCode} AND a.sys_code = #{sysCode}
AND remove ='0' AND a.remove ='0'
</where> </where>
</update> </update>

Loading…
Cancel
Save