Commit 555a5d97 authored by lzz's avatar lzz

清洗添加identifying_code = 0

parent e054929f
...@@ -31,7 +31,7 @@ public class ActReadDataServiceImpl implements ActReadDataService { ...@@ -31,7 +31,7 @@ public class ActReadDataServiceImpl implements ActReadDataService {
@Override @Override
public AjaxResult read(String mineId) { public AjaxResult read(String mineId) {
//获取未清洗数据条数 //获取导入表未清洗数据条数
int count = actReadDataMapper.selectCleanToOne(mineId); int count = actReadDataMapper.selectCleanToOne(mineId);
if (count <= 0) { if (count <= 0) {
return new AjaxResult(500, "数据库没有:" + mineId + "数据,无法清洗"); return new AjaxResult(500, "数据库没有:" + mineId + "数据,无法清洗");
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.ActReadDataMapper"> <mapper namespace="com.ruoyi.system.mapper.ActReadDataMapper">
<insert id="insertDateToAnalysisAfter"> <insert id="insertDateToAnalysisAfter">
insert into ry_vue.act_supplies_import_cleaning_copy1 (id, ssk_id, hdate, hid, km_code, yy_uuid, name_column, insert into act_supplies_import_cleaning_copy1 (id, ssk_id, hdate, hid, km_code, yy_uuid, name_column,
code_column, department_column, number_column, money_column, money_columns, date_column, source_of_expenses, code_column, department_column, number_column, money_column, money_columns, date_column, source_of_expenses,
categories, model, unit, money) values categories, model, unit, money) values
<foreach collection="accList" item="list" separator=","> <foreach collection="accList" item="list" separator=",">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</foreach> </foreach>
</insert> </insert>
<update id="updateState"> <update id="updateState">
update ry_vue.act_supplies_historydata_copy1 update act_supplies_historydata_copy1
set clean_status = 1 set clean_status = 1
where import_uuid = #{id} where import_uuid = #{id}
</update> </update>
...@@ -27,23 +27,25 @@ ...@@ -27,23 +27,25 @@
ashc.date hdate, ashc.date hdate,
ashc.id hid, ashc.id hid,
ashc.import_uuid yyUuid ashc.import_uuid yyUuid
from ry_vue.act_supplies_historydata_copy1 ashc from act_supplies_historydata_copy1 ashc
left join ry_vue.act_supplies_historycontent_copy1 ashc2 on left join act_supplies_historycontent_copy1 ashc2 on
ashc.import_uuid = ashc2.hid ashc.import_uuid = ashc2.hid
where ashc.ssk_id = #{id} where ashc.ssk_id = #{id}
and ashc.clean_status = '0' and ashc.identifying_code = 0
and ashc.clean_status = 0
limit #{c} limit #{c}
</select> </select>
<select id="selectMaterialCode" resultType="com.ruoyi.system.domain.ActHistoryRoleTypeCodeModel"> <select id="selectMaterialCode" resultType="com.ruoyi.system.domain.ActHistoryRoleTypeCodeModel">
select distinct as2.codes as value, asd.code as 'key' select distinct as2.codes as value, asd.code as 'key'
from ry_vue.act_supplies_details asd from act_supplies_details asd
left join ry_vue.act_supplies as2 left join act_supplies as2
on asd.sid = as2.id on asd.sid = as2.id
</select> </select>
<select id="selectCleanToOne" resultType="java.lang.Integer"> <select id="selectCleanToOne" resultType="java.lang.Integer">
select count(*) select count(*)
from ry_vue.act_supplies_historydata_copy1 from act_supplies_historydata_copy1
where ssk_id = #{id} where ssk_id = #{id}
and identifying_code = 0
and clean_status = 0 and clean_status = 0
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment