Commit 166b09a1 authored by lenovo's avatar lenovo

导入数据存入历史表

parent 0f0f04bd
......@@ -110,7 +110,11 @@ public class ActSuppliesHistorydataServiceImpl implements IActSuppliesHistorydat
Long s = actSuppliesHistorydataMapper.selectActSuppliesHistorydatauuid(actSuppliesHistorydata.get(0).getImportUuid());
if (s>0){
for (int i=0;i<actSuppliesHistorydata.size();i++) {
actSuppliesHistorydata.get(i).setCreateBy(user.getUserName());
actSuppliesHistorydata.get(i).setCreateTime(DateUtils.getNowDate());
actSuppliesHistorydataMapper.updateActSuppliesHistorydatas(actSuppliesHistorydata.get(i));
}
}else {
Long[] longs = actSuppliesHistorydataMapper.selectActSuppliesRole(actSuppliesHistorydata.get(0).getTemplateId());
......
......@@ -83,7 +83,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
<where>
<if test="importUuid != null">and import_uuid = #{importUuid}</if>
<if test="templateId != null">and template_id = #{templateId},</if>
<if test="identifyingCode != null">and identifying_code = #{identifyingCode},</if>
<if test="roleId != null and identifyingCode!=1">and role_id = #{roleId},</if>
</where>
</update>
<delete id="deleteActSuppliesHistorydataById" parameterType="Long">
......
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