Commit bb53b9cd authored by 秦嘉's avatar 秦嘉

抗原异常上报bug修改

parent 179ea435
...@@ -111,6 +111,11 @@ public class YcsbController extends BaseController ...@@ -111,6 +111,11 @@ public class YcsbController extends BaseController
} else if ("1".equals(ycsbExport.getCheckCard())) { } else if ("1".equals(ycsbExport.getCheckCard())) {
ycsbExport.setCheckCard("正确"); ycsbExport.setCheckCard("正确");
} }
if ("1".equals(ycsbExport.getKyResult())) {
ycsbExport.setKyResult("正常");
} else {
ycsbExport.setKyResult("异常");
}
} }
util.exportExcel(response, list, "抗原异常上报数据"); util.exportExcel(response, list, "抗原异常上报数据");
......
...@@ -221,6 +221,11 @@ public class YcsbServiceImpl implements IYcsbService ...@@ -221,6 +221,11 @@ public class YcsbServiceImpl implements IYcsbService
} else if ("否".equals(ycsb.getHasAcid())) { } else if ("否".equals(ycsb.getHasAcid())) {
ycsb.setHasAcid("1"); ycsb.setHasAcid("1");
} }
if ("正常".equals(ycsb.getKyResult())) {
ycsb.setKyResult("1");
} else {
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("所选居住地、街道、社区不存在");
......
...@@ -176,7 +176,7 @@ ...@@ -176,7 +176,7 @@
<el-table-column label="姓名" align="center" prop="userName" width="100" :show-overflow-tooltip="true" /> <el-table-column label="姓名" align="center" prop="userName" width="100" :show-overflow-tooltip="true" />
<el-table-column label="抗原结果" align="center" prop="kyResult" width="100" :show-overflow-tooltip="true"> <el-table-column label="抗原结果" align="center" prop="kyResult" width="100" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.kyResult === '0' ? '异常' : '正常'}}</span> <span>{{ scope.row.kyResult === '1' ? '正常' : '异常'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="是否做核酸" align="center" prop="hasAcid" width="120" :show-overflow-tooltip="true"> <el-table-column label="是否做核酸" align="center" prop="hasAcid" width="120" :show-overflow-tooltip="true">
......
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