Commit 377985cb authored by gaoyingwei's avatar gaoyingwei

添加 小区封控导入

parent 6f3c8573
...@@ -107,8 +107,9 @@ public class GldryController extends BaseController ...@@ -107,8 +107,9 @@ public class GldryController extends BaseController
// 设置 是否阳性 下拉框 // 设置 是否阳性 下拉框
String[] resList = new String[]{"是","否"}; List<SysDictData> isYxs = DictUtils.getDictCache("is_yx");
ExcelUtil.setClassExcelAttribute(clazz,"isYx","combo",resList); String[] isYx=isYxs.stream().map(SysDictData::getDictLabel).toArray(String[]::new);
ExcelUtil.setClassExcelAttribute( clazz,"isYx","combo",isYx);
// // 设置 居住所在地 下拉框 // // 设置 居住所在地 下拉框
// List<SysDictData> dictResidentialArea = sysDictDataMapper.selectDictDataByType("residential_area"); // List<SysDictData> dictResidentialArea = sysDictDataMapper.selectDictDataByType("residential_area");
......
...@@ -47,7 +47,7 @@ public class Gldry extends BaseEntity ...@@ -47,7 +47,7 @@ public class Gldry extends BaseEntity
/** 是否阳性(阳,未阳) */ /** 是否阳性(阳,未阳) */
// 新增字段 // 新增字段
@Excel(name = "是否阳性") @Excel(name = "是否阳性",dictType = "is_yx")
private String isYx; private String isYx;
/** 居住地所在区 */ /** 居住地所在区 */
...@@ -55,15 +55,15 @@ public class Gldry extends BaseEntity ...@@ -55,15 +55,15 @@ public class Gldry extends BaseEntity
private String area; private String area;
/** 街道/镇 */ /** 街道/镇 */
@Excel(name = "街道/镇", dictType = "street_town") @Excel(name = "街道/镇")
private String street; private String street;
/** 居委会 */ /** 居委会 */
@Excel(name = "居委会", dictType = "committee") @Excel(name = "居委会")
private String committee; private String committee;
/** 小区/村名称 */ /** 小区/村名称 */
@Excel(name = "小区/村名称", dictType = "community") @Excel(name = "小区/村名称")
private String community; private String community;
/** 楼号单元号门牌号 */ /** 楼号单元号门牌号 */
......
...@@ -195,7 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -195,7 +195,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where id = #{id} where id = #{id}
</update> </update>
<insert id="updateBatchFcry" parameterType="com.ruoyi.system.domain.Fcry"> <insert id="updateBatchFcry" parameterType="com.ruoyi.system.domain.Fcry">
<foreach item="item" index="index" collection="list" separator=","> <foreach item="item" index="index" collection="list" separator=";">
update fcry update fcry
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="item.fcPlace != null">fc_place = #{item.fcPlace},</if> <if test="item.fcPlace != null">fc_place = #{item.fcPlace},</if>
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
</insert> </insert>
<insert id="updateBatchYxry" parameterType="com.ruoyi.system.domain.Yxry"> <insert id="updateBatchYxry" parameterType="com.ruoyi.system.domain.Yxry">
<foreach item="item" index="index" collection="list" separator=","> <foreach item="item" index="index" collection="list" separator=";">
update yxry update yxry
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="item.sbDate != null">sb_date = #{item.sbDate},</if> <if test="item.sbDate != null">sb_date = #{item.sbDate},</if>
......
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