Commit c55e58d1 authored by 秦嘉's avatar 秦嘉

抗原异常上报导入bug修改

parent c3c73183
...@@ -111,17 +111,6 @@ public class YcsbController extends BaseController ...@@ -111,17 +111,6 @@ public class YcsbController extends BaseController
} else if ("1".equals(ycsbExport.getCheckCard())) { } else if ("1".equals(ycsbExport.getCheckCard())) {
ycsbExport.setCheckCard("正确"); ycsbExport.setCheckCard("正确");
} }
if (StringUtils.isNotEmpty(ycsbExport.getKyResult())) {
if ("1".equals(ycsbExport.getKyResult())) {
ycsbExport.setKyResult("正常");
} else {
ycsbExport.setKyResult("异常");
}
} else {
ycsbExport.setKyResult("异常");
}
} }
util.exportExcel(response, list, "抗原异常上报数据"); util.exportExcel(response, list, "抗原异常上报数据");
} }
......
...@@ -221,16 +221,9 @@ public class YcsbServiceImpl implements IYcsbService ...@@ -221,16 +221,9 @@ public class YcsbServiceImpl implements IYcsbService
} else if ("否".equals(ycsb.getHasAcid())) { } else if ("否".equals(ycsb.getHasAcid())) {
ycsb.setHasAcid("1"); ycsb.setHasAcid("1");
} }
if (StringUtils.isNotEmpty(ycsb.getKyResult())) { if (StringUtils.isEmpty(ycsb.getKyResult())) {
if ("正常".equals(ycsb.getKyResult())) {
ycsb.setKyResult("1");
} else {
ycsb.setKyResult("0");
}
} else {
ycsb.setKyResult("0"); ycsb.setKyResult("0");
} }
String createBy = DataUtils.getValue(ycsb.getArea(), ycsb.getStreet(), ycsb.getCommittee()); String createBy = DataUtils.getValue(ycsb.getArea(), ycsb.getStreet(), ycsb.getCommittee());
if ("null".equals(createBy)) { if ("null".equals(createBy)) {
throw new ServiceException("所选居住地、街道、社区不存在"); throw new ServiceException("所选居住地、街道、社区不存在");
...@@ -238,6 +231,7 @@ public class YcsbServiceImpl implements IYcsbService ...@@ -238,6 +231,7 @@ public class YcsbServiceImpl implements IYcsbService
ycsb.setCreateBy(createBy); ycsb.setCreateBy(createBy);
ycsb.setCreateTime(DateUtils.getNowDate()); ycsb.setCreateTime(DateUtils.getNowDate());
if (ycsbList.size() > 0) { if (ycsbList.size() > 0) {
ycsb.setId(ycsbList.get(0).getId());
ycsbMapper.updateYcsb(ycsb); ycsbMapper.updateYcsb(ycsb);
continue; continue;
} }
......
...@@ -108,7 +108,8 @@ ...@@ -108,7 +108,8 @@
where id = #{id} where id = #{id}
</select> </select>
<select id="selectYcsbByCard" resultType="com.ruoyi.system.domain.Ycsb"> <select id="selectYcsbByCard" resultType="com.ruoyi.system.domain.Ycsb">
<include refid="selectYcsbVo"/> SELECT id, card_no
FROM ycsb
where del_flag = '0' and card_no = #{cardNo} where del_flag = '0' and card_no = #{cardNo}
<if test="id != null">and id != #{id}</if> <if test="id != null">and id != #{id}</if>
</select> </select>
...@@ -197,6 +198,8 @@ ...@@ -197,6 +198,8 @@
where id = #{id} where id = #{id}
</update> </update>
<delete id="deleteYcsbById" parameterType="Long"> <delete id="deleteYcsbById" parameterType="Long">
delete delete
from ycsb from ycsb
......
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