@@ -90,11 +90,9 @@ public class TGisCjqyController extends BaseController | |||||
@GetMapping(value = "/{CJQYDM}") | @GetMapping(value = "/{CJQYDM}") | ||||
public AjaxResult getInfo(@PathVariable("CJQYDM") String CJQYDM) | public AjaxResult getInfo(@PathVariable("CJQYDM") String CJQYDM) | ||||
{ | { | ||||
TGisCjqy detail = tGisCjqyService.selectTGisCjqyByCJQYDM(CJQYDM); | |||||
return success(detail); | |||||
return success(tGisCjqyService.selectTGisCjqyByCJQYDM(CJQYDM)); | |||||
} | } | ||||
/** | /** | ||||
* 获取村级区域详细信息,翻译字典 | * 获取村级区域详细信息,翻译字典 | ||||
*/ | */ | ||||
@@ -90,10 +90,12 @@ public class TGisXjqyController extends BaseController | |||||
@GetMapping(value = "/{XJQYDM}") | @GetMapping(value = "/{XJQYDM}") | ||||
public AjaxResult getInfo(@PathVariable("XJQYDM") String XJQYDM) | public AjaxResult getInfo(@PathVariable("XJQYDM") String XJQYDM) | ||||
{ | { | ||||
TGisXjqy detail = tGisXjqyService.selectTGisXjqyByXJQYDM(XJQYDM); | |||||
return success(detail); | |||||
return success(tGisXjqyService.selectTGisXjqyByXJQYDM(XJQYDM)); | |||||
} | } | ||||
/** | |||||
* 获取乡级区域详细信息,翻译字典 | |||||
*/ | |||||
@PreAuthorize("@ss.hasPermi('business:xjqy:query')") | @PreAuthorize("@ss.hasPermi('business:xjqy:query')") | ||||
@GetMapping(value = "/detail/{XJQYDM}") | @GetMapping(value = "/detail/{XJQYDM}") | ||||
public AjaxResult detail(@PathVariable("XJQYDM") String XJQYDM) | public AjaxResult detail(@PathVariable("XJQYDM") String XJQYDM) | ||||
@@ -151,7 +153,6 @@ public class TGisXjqyController extends BaseController | |||||
pdf.setTitle("乡级区域"); | pdf.setTitle("乡级区域"); | ||||
//pdf.setRowHeight(20f); | //pdf.setRowHeight(20f); | ||||
ShoulderItem shoulder = new ShoulderItem(); | ShoulderItem shoulder = new ShoulderItem(); | ||||
shoulder.setLeftItem("编制单位:"); | shoulder.setLeftItem("编制单位:"); | ||||
shoulder.setCenterItem("日期:" ); | shoulder.setCenterItem("日期:" ); | ||||
@@ -90,10 +90,12 @@ public class TGisXjxzqController extends BaseController | |||||
@GetMapping(value = "/{XZQDM}") | @GetMapping(value = "/{XZQDM}") | ||||
public AjaxResult getInfo(@PathVariable("XZQDM") String XZQDM) | public AjaxResult getInfo(@PathVariable("XZQDM") String XZQDM) | ||||
{ | { | ||||
TGisXjxzq detail = tGisXjxzqService.selectTGisXjxzqByXZQDM(XZQDM); | |||||
return success(detail); | |||||
return success(tGisXjxzqService.selectTGisXjxzqByXZQDM(XZQDM)); | |||||
} | } | ||||
/** | |||||
* 获取县级区域详细信息,翻译字典 | |||||
*/ | |||||
@PreAuthorize("@ss.hasPermi('business:xjxzq:query')") | @PreAuthorize("@ss.hasPermi('business:xjxzq:query')") | ||||
@GetMapping(value = "/detail/{XZQDM}") | @GetMapping(value = "/detail/{XZQDM}") | ||||
public AjaxResult detail(@PathVariable("XZQDM") String XZQDM) | public AjaxResult detail(@PathVariable("XZQDM") String XZQDM) | ||||
@@ -23,9 +23,6 @@ public class TGisCjqy extends BaseEntity | |||||
@Excel(name = "区划名称") | @Excel(name = "区划名称") | ||||
private String CJQYMC; | private String CJQYMC; | ||||
/** 空间矢量 */ | |||||
private String theGeom; | |||||
/** 标识码 */ | /** 标识码 */ | ||||
@Excel(name = "标识码") | @Excel(name = "标识码") | ||||
private Long BSM; | private Long BSM; | ||||
@@ -34,13 +31,17 @@ public class TGisCjqy extends BaseEntity | |||||
@Excel(name = "要素代码") | @Excel(name = "要素代码") | ||||
private String YSDM; | private String YSDM; | ||||
/** fid */ | |||||
private Long fid; | |||||
/** 空间矢量 */ | |||||
private String theGeom; | |||||
/** 部门级联代码 */ | |||||
@Excel(name = "部门级联代码") | |||||
/** 级联代码 */ | |||||
@Excel(name = "级联代码") | |||||
private String importCode; | private String importCode; | ||||
/** fid */ | |||||
@Excel(name = "fid") | |||||
private Long fid; | |||||
public void setCJQYDM(String CJQYDM) | public void setCJQYDM(String CJQYDM) | ||||
{ | { | ||||
this.CJQYDM = CJQYDM; | this.CJQYDM = CJQYDM; | ||||
@@ -61,16 +62,6 @@ public class TGisCjqy extends BaseEntity | |||||
return CJQYMC; | return CJQYMC; | ||||
} | } | ||||
public void setTheGeom(String theGeom) | |||||
{ | |||||
this.theGeom = theGeom; | |||||
} | |||||
public String getTheGeom() | |||||
{ | |||||
return theGeom; | |||||
} | |||||
public void setBSM(Long BSM) | public void setBSM(Long BSM) | ||||
{ | { | ||||
this.BSM = BSM; | this.BSM = BSM; | ||||
@@ -91,14 +82,14 @@ public class TGisCjqy extends BaseEntity | |||||
return YSDM; | return YSDM; | ||||
} | } | ||||
public void setFid(Long fid) | |||||
public void setTheGeom(String theGeom) | |||||
{ | { | ||||
this.fid = fid; | |||||
this.theGeom = theGeom; | |||||
} | } | ||||
public Long getFid() | |||||
public String getTheGeom() | |||||
{ | { | ||||
return fid; | |||||
return theGeom; | |||||
} | } | ||||
public void setImportCode(String importCode) | public void setImportCode(String importCode) | ||||
@@ -111,16 +102,26 @@ public class TGisCjqy extends BaseEntity | |||||
return importCode; | return importCode; | ||||
} | } | ||||
public void setFid(Long fid) | |||||
{ | |||||
this.fid = fid; | |||||
} | |||||
public Long getFid() | |||||
{ | |||||
return fid; | |||||
} | |||||
@Override | @Override | ||||
public String toString() { | public String toString() { | ||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
.append("CJQYDM", getCJQYDM()) | .append("CJQYDM", getCJQYDM()) | ||||
.append("CJQYMC", getCJQYMC()) | .append("CJQYMC", getCJQYMC()) | ||||
.append("theGeom", getTheGeom()) | |||||
.append("BSM", getBSM()) | .append("BSM", getBSM()) | ||||
.append("YSDM", getYSDM()) | .append("YSDM", getYSDM()) | ||||
.append("fid", getFid()) | |||||
.append("theGeom", getTheGeom()) | |||||
.append("importCode", getImportCode()) | .append("importCode", getImportCode()) | ||||
.append("fid", getFid()) | |||||
.toString(); | .toString(); | ||||
} | } | ||||
} | } |
@@ -23,9 +23,6 @@ public class TGisXjqy extends BaseEntity | |||||
@Excel(name = "区划名称") | @Excel(name = "区划名称") | ||||
private String XJQYMC; | private String XJQYMC; | ||||
/** 空间矢量 */ | |||||
private String theGeom; | |||||
/** 标识码 */ | /** 标识码 */ | ||||
@Excel(name = "标识码") | @Excel(name = "标识码") | ||||
private Long BSM; | private Long BSM; | ||||
@@ -34,13 +31,17 @@ public class TGisXjqy extends BaseEntity | |||||
@Excel(name = "要素代码") | @Excel(name = "要素代码") | ||||
private String YSDM; | private String YSDM; | ||||
/** fid */ | |||||
private Long fid; | |||||
/** 空间矢量 */ | |||||
private String theGeom; | |||||
/** 部门级联代码 */ | /** 部门级联代码 */ | ||||
@Excel(name = "部门级联代码") | @Excel(name = "部门级联代码") | ||||
private String importCode; | private String importCode; | ||||
/** fid */ | |||||
@Excel(name = "fid") | |||||
private Long fid; | |||||
public void setXJQYDM(String XJQYDM) | public void setXJQYDM(String XJQYDM) | ||||
{ | { | ||||
this.XJQYDM = XJQYDM; | this.XJQYDM = XJQYDM; | ||||
@@ -61,16 +62,6 @@ public class TGisXjqy extends BaseEntity | |||||
return XJQYMC; | return XJQYMC; | ||||
} | } | ||||
public void setTheGeom(String theGeom) | |||||
{ | |||||
this.theGeom = theGeom; | |||||
} | |||||
public String getTheGeom() | |||||
{ | |||||
return theGeom; | |||||
} | |||||
public void setBSM(Long BSM) | public void setBSM(Long BSM) | ||||
{ | { | ||||
this.BSM = BSM; | this.BSM = BSM; | ||||
@@ -91,14 +82,14 @@ public class TGisXjqy extends BaseEntity | |||||
return YSDM; | return YSDM; | ||||
} | } | ||||
public void setFid(Long fid) | |||||
public void setTheGeom(String theGeom) | |||||
{ | { | ||||
this.fid = fid; | |||||
this.theGeom = theGeom; | |||||
} | } | ||||
public Long getFid() | |||||
public String getTheGeom() | |||||
{ | { | ||||
return fid; | |||||
return theGeom; | |||||
} | } | ||||
public void setImportCode(String importCode) | public void setImportCode(String importCode) | ||||
@@ -111,16 +102,26 @@ public class TGisXjqy extends BaseEntity | |||||
return importCode; | return importCode; | ||||
} | } | ||||
public void setFid(Long fid) | |||||
{ | |||||
this.fid = fid; | |||||
} | |||||
public Long getFid() | |||||
{ | |||||
return fid; | |||||
} | |||||
@Override | @Override | ||||
public String toString() { | public String toString() { | ||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
.append("XJQYDM", getXJQYDM()) | .append("XJQYDM", getXJQYDM()) | ||||
.append("XJQYMC", getXJQYMC()) | .append("XJQYMC", getXJQYMC()) | ||||
.append("theGeom", getTheGeom()) | |||||
.append("BSM", getBSM()) | .append("BSM", getBSM()) | ||||
.append("YSDM", getYSDM()) | .append("YSDM", getYSDM()) | ||||
.append("fid", getFid()) | |||||
.append("theGeom", getTheGeom()) | |||||
.append("importCode", getImportCode()) | .append("importCode", getImportCode()) | ||||
.append("fid", getFid()) | |||||
.toString(); | .toString(); | ||||
} | } | ||||
} | } |
@@ -23,9 +23,6 @@ public class TGisXjxzq extends BaseEntity | |||||
@Excel(name = "区划名称") | @Excel(name = "区划名称") | ||||
private String XZQMC; | private String XZQMC; | ||||
/** 空间矢量 */ | |||||
private String theGeom; | |||||
/** 标识码 */ | /** 标识码 */ | ||||
@Excel(name = "标识码") | @Excel(name = "标识码") | ||||
private Long BSM; | private Long BSM; | ||||
@@ -34,13 +31,17 @@ public class TGisXjxzq extends BaseEntity | |||||
@Excel(name = "要素代码") | @Excel(name = "要素代码") | ||||
private String YSDM; | private String YSDM; | ||||
/** fid */ | |||||
private Long fid; | |||||
/** 空间矢量 */ | |||||
private String theGeom; | |||||
/** 部门级联代码 */ | /** 部门级联代码 */ | ||||
@Excel(name = "部门级联代码") | @Excel(name = "部门级联代码") | ||||
private String importCode; | private String importCode; | ||||
/** fid */ | |||||
@Excel(name = "fid") | |||||
private Long fid; | |||||
public void setXZQDM(String XZQDM) | public void setXZQDM(String XZQDM) | ||||
{ | { | ||||
this.XZQDM = XZQDM; | this.XZQDM = XZQDM; | ||||
@@ -61,16 +62,6 @@ public class TGisXjxzq extends BaseEntity | |||||
return XZQMC; | return XZQMC; | ||||
} | } | ||||
public void setTheGeom(String theGeom) | |||||
{ | |||||
this.theGeom = theGeom; | |||||
} | |||||
public String getTheGeom() | |||||
{ | |||||
return theGeom; | |||||
} | |||||
public void setBSM(Long BSM) | public void setBSM(Long BSM) | ||||
{ | { | ||||
this.BSM = BSM; | this.BSM = BSM; | ||||
@@ -91,14 +82,14 @@ public class TGisXjxzq extends BaseEntity | |||||
return YSDM; | return YSDM; | ||||
} | } | ||||
public void setFid(Long fid) | |||||
public void setTheGeom(String theGeom) | |||||
{ | { | ||||
this.fid = fid; | |||||
this.theGeom = theGeom; | |||||
} | } | ||||
public Long getFid() | |||||
public String getTheGeom() | |||||
{ | { | ||||
return fid; | |||||
return theGeom; | |||||
} | } | ||||
public void setImportCode(String importCode) | public void setImportCode(String importCode) | ||||
@@ -111,16 +102,26 @@ public class TGisXjxzq extends BaseEntity | |||||
return importCode; | return importCode; | ||||
} | } | ||||
public void setFid(Long fid) | |||||
{ | |||||
this.fid = fid; | |||||
} | |||||
public Long getFid() | |||||
{ | |||||
return fid; | |||||
} | |||||
@Override | @Override | ||||
public String toString() { | public String toString() { | ||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
.append("XZQDM", getXZQDM()) | .append("XZQDM", getXZQDM()) | ||||
.append("XZQMC", getXZQMC()) | .append("XZQMC", getXZQMC()) | ||||
.append("theGeom", getTheGeom()) | |||||
.append("BSM", getBSM()) | .append("BSM", getBSM()) | ||||
.append("YSDM", getYSDM()) | .append("YSDM", getYSDM()) | ||||
.append("fid", getFid()) | |||||
.append("theGeom", getTheGeom()) | |||||
.append("importCode", getImportCode()) | .append("importCode", getImportCode()) | ||||
.append("fid", getFid()) | |||||
.toString(); | .toString(); | ||||
} | } | ||||
} | } |
@@ -92,7 +92,8 @@ public class TGisCjqyServiceImpl implements ITGisCjqyService | |||||
List<TGisCjqy> tGisCjqyList = tGisCjqyMapper.selectTGisCjqyList(tGisCjqy); | List<TGisCjqy> tGisCjqyList = tGisCjqyMapper.selectTGisCjqyList(tGisCjqy); | ||||
for (TGisCjqy item : list) { | for (TGisCjqy item : list) { | ||||
String code = item.getImportCode(); | |||||
String code = item.getImportCode(); | |||||
List<TGisCjqy> filters = tGisCjqyList.stream().filter(a -> a.getImportCode().equals(code)).collect(Collectors.toList()); | List<TGisCjqy> filters = tGisCjqyList.stream().filter(a -> a.getImportCode().equals(code)).collect(Collectors.toList()); | ||||
if (StringUtils.isEmpty(filters)) { //不存在时,直接插入 | if (StringUtils.isEmpty(filters)) { //不存在时,直接插入 | ||||
item.setCreateBy(operName); | item.setCreateBy(operName); | ||||
@@ -103,7 +104,7 @@ public class TGisCjqyServiceImpl implements ITGisCjqyService | |||||
if(isUpdateSupport){ //勾选则更新 | if(isUpdateSupport){ //勾选则更新 | ||||
item.setUpdateBy(operName); | item.setUpdateBy(operName); | ||||
item.setUpdateTime(DateUtils.getNowDate()); | item.setUpdateTime(DateUtils.getNowDate()); | ||||
item.setCJQYDM(filters.get(0).getCJQYDM()); | |||||
item.setFid(filters.get(0).getFid()); | |||||
updateList.add(item); | updateList.add(item); | ||||
successNum++; | successNum++; | ||||
} | } | ||||
@@ -92,7 +92,9 @@ public class TGisXjqyServiceImpl implements ITGisXjqyService | |||||
List<TGisXjqy> tGisXjqyList = tGisXjqyMapper.selectTGisXjqyList(tGisXjqy); | List<TGisXjqy> tGisXjqyList = tGisXjqyMapper.selectTGisXjqyList(tGisXjqy); | ||||
for (TGisXjqy item : list) { | for (TGisXjqy item : list) { | ||||
String code = item.getImportCode(); | |||||
// 验证是否存在这个乡级区域信息 | |||||
String code = item.getImportCode(); | |||||
List<TGisXjqy> filters = tGisXjqyList.stream().filter(a -> a.getImportCode().equals(code)).collect(Collectors.toList()); | List<TGisXjqy> filters = tGisXjqyList.stream().filter(a -> a.getImportCode().equals(code)).collect(Collectors.toList()); | ||||
if (StringUtils.isEmpty(filters)) { //不存在时,直接插入 | if (StringUtils.isEmpty(filters)) { //不存在时,直接插入 | ||||
item.setCreateBy(operName); | item.setCreateBy(operName); | ||||
@@ -103,7 +105,7 @@ public class TGisXjqyServiceImpl implements ITGisXjqyService | |||||
if(isUpdateSupport){ //勾选则更新 | if(isUpdateSupport){ //勾选则更新 | ||||
item.setUpdateBy(operName); | item.setUpdateBy(operName); | ||||
item.setUpdateTime(DateUtils.getNowDate()); | item.setUpdateTime(DateUtils.getNowDate()); | ||||
item.setXJQYDM(filters.get(0).getXJQYDM()); | |||||
item.setFid(filters.get(0).getFid()); | |||||
updateList.add(item); | updateList.add(item); | ||||
successNum++; | successNum++; | ||||
} | } | ||||
@@ -92,9 +92,7 @@ public class TGisXjxzqServiceImpl implements ITGisXjxzqService | |||||
List<TGisXjxzq> tGisXjxzqList = tGisXjxzqMapper.selectTGisXjxzqList(tGisXjxzq); | List<TGisXjxzq> tGisXjxzqList = tGisXjxzqMapper.selectTGisXjxzqList(tGisXjxzq); | ||||
for (TGisXjxzq item : list) { | for (TGisXjxzq item : list) { | ||||
// 验证是否存在这个县级区域信息 | |||||
String code = item.getImportCode(); | |||||
String code = item.getImportCode(); | |||||
List<TGisXjxzq> filters = tGisXjxzqList.stream().filter(a -> a.getImportCode().equals(code)).collect(Collectors.toList()); | List<TGisXjxzq> filters = tGisXjxzqList.stream().filter(a -> a.getImportCode().equals(code)).collect(Collectors.toList()); | ||||
if (StringUtils.isEmpty(filters)) { //不存在时,直接插入 | if (StringUtils.isEmpty(filters)) { //不存在时,直接插入 | ||||
item.setCreateBy(operName); | item.setCreateBy(operName); | ||||
@@ -105,7 +103,7 @@ public class TGisXjxzqServiceImpl implements ITGisXjxzqService | |||||
if(isUpdateSupport){ //勾选则更新 | if(isUpdateSupport){ //勾选则更新 | ||||
item.setUpdateBy(operName); | item.setUpdateBy(operName); | ||||
item.setUpdateTime(DateUtils.getNowDate()); | item.setUpdateTime(DateUtils.getNowDate()); | ||||
item.setXZQDM(filters.get(0).getXZQDM()); | |||||
item.setFid(filters.get(0).getFid()); | |||||
updateList.add(item); | updateList.add(item); | ||||
successNum++; | successNum++; | ||||
} | } | ||||
@@ -7,22 +7,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<resultMap type="TGisCjqy" id="TGisCjqyResult"> | <resultMap type="TGisCjqy" id="TGisCjqyResult"> | ||||
<result property="CJQYDM" column="CJQYDM" /> | <result property="CJQYDM" column="CJQYDM" /> | ||||
<result property="CJQYMC" column="CJQYMC" /> | <result property="CJQYMC" column="CJQYMC" /> | ||||
<result property="theGeom" column="the_geom" /> | |||||
<result property="BSM" column="BSM" /> | <result property="BSM" column="BSM" /> | ||||
<result property="YSDM" column="YSDM" /> | <result property="YSDM" column="YSDM" /> | ||||
<result property="fid" column="fid" /> | |||||
<result property="theGeom" column="the_geom" /> | |||||
<result property="importCode" column="import_code" /> | <result property="importCode" column="import_code" /> | ||||
<result property="fid" column="fid" /> | |||||
</resultMap> | </resultMap> | ||||
<sql id="selectTGisCjqyVo"> | <sql id="selectTGisCjqyVo"> | ||||
select CJQYDM, CJQYMC, the_geom, BSM, YSDM, fid, import_code from t_gis_cjqy | |||||
select CJQYDM, CJQYMC, BSM, YSDM, the_geom, import_code, fid from t_gis_cjqy | |||||
</sql> | </sql> | ||||
<select id="selectTGisCjqyList" parameterType="TGisCjqy" resultMap="TGisCjqyResult"> | <select id="selectTGisCjqyList" parameterType="TGisCjqy" resultMap="TGisCjqyResult"> | ||||
<include refid="selectTGisCjqyVo"/> | <include refid="selectTGisCjqyVo"/> | ||||
<where> | <where> | ||||
<if test="CJQYDM != null and CJQYDM != ''"> and CJQYDM = #{CJQYDM}</if> | <if test="CJQYDM != null and CJQYDM != ''"> and CJQYDM = #{CJQYDM}</if> | ||||
<if test="CJQYMC != null and CJQYMC != ''"> and CJQYMC = #{CJQYMC}</if> | |||||
<if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if> | <if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if> | ||||
<if test="fid != null "> and fid = #{fid}</if> | |||||
</where> | </where> | ||||
</select> | </select> | ||||
@@ -36,20 +38,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
<if test="CJQYDM != null">CJQYDM,</if> | <if test="CJQYDM != null">CJQYDM,</if> | ||||
<if test="CJQYMC != null and CJQYMC != ''">CJQYMC,</if> | <if test="CJQYMC != null and CJQYMC != ''">CJQYMC,</if> | ||||
<if test="theGeom != null and theGeom != ''">the_geom,</if> | |||||
<if test="BSM != null">BSM,</if> | <if test="BSM != null">BSM,</if> | ||||
<if test="YSDM != null">YSDM,</if> | <if test="YSDM != null">YSDM,</if> | ||||
<if test="fid != null">fid,</if> | |||||
<if test="theGeom != null">the_geom,</if> | |||||
<if test="importCode != null and importCode != ''">import_code,</if> | <if test="importCode != null and importCode != ''">import_code,</if> | ||||
<if test="fid != null">fid,</if> | |||||
</trim> | </trim> | ||||
<trim prefix="values (" suffix=")" suffixOverrides=","> | <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
<if test="CJQYDM != null">#{CJQYDM},</if> | <if test="CJQYDM != null">#{CJQYDM},</if> | ||||
<if test="CJQYMC != null and CJQYMC != ''">#{CJQYMC},</if> | <if test="CJQYMC != null and CJQYMC != ''">#{CJQYMC},</if> | ||||
<if test="theGeom != null and theGeom != ''">#{theGeom},</if> | |||||
<if test="BSM != null">#{BSM},</if> | <if test="BSM != null">#{BSM},</if> | ||||
<if test="YSDM != null">#{YSDM},</if> | <if test="YSDM != null">#{YSDM},</if> | ||||
<if test="fid != null">#{fid},</if> | |||||
<if test="theGeom != null">#{theGeom},</if> | |||||
<if test="importCode != null and importCode != ''">#{importCode},</if> | <if test="importCode != null and importCode != ''">#{importCode},</if> | ||||
<if test="fid != null">#{fid},</if> | |||||
</trim> | </trim> | ||||
</insert> | </insert> | ||||
@@ -58,22 +60,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
CJQYDM, | CJQYDM, | ||||
CJQYMC, | CJQYMC, | ||||
the_geom, | |||||
BSM, | BSM, | ||||
YSDM, | YSDM, | ||||
fid, | |||||
the_geom, | |||||
import_code, | import_code, | ||||
fid, | |||||
</trim> | </trim> | ||||
values | values | ||||
<foreach item="item" collection="list" separator="," > | <foreach item="item" collection="list" separator="," > | ||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
#{item.CJQYDM}, | #{item.CJQYDM}, | ||||
#{item.CJQYMC}, | #{item.CJQYMC}, | ||||
#{item.theGeom}, | |||||
#{item.BSM}, | #{item.BSM}, | ||||
#{item.YSDM}, | #{item.YSDM}, | ||||
#{item.fid}, | |||||
#{item.theGeom}, | |||||
#{item.importCode}, | #{item.importCode}, | ||||
#{item.fid}, | |||||
</trim> | </trim> | ||||
</foreach> | </foreach> | ||||
</insert> | </insert> | ||||
@@ -82,11 +84,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
update t_gis_cjqy | update t_gis_cjqy | ||||
<trim prefix="SET" suffixOverrides=","> | <trim prefix="SET" suffixOverrides=","> | ||||
<if test="CJQYMC != null and CJQYMC != ''">CJQYMC = #{CJQYMC},</if> | <if test="CJQYMC != null and CJQYMC != ''">CJQYMC = #{CJQYMC},</if> | ||||
<if test="theGeom != null and theGeom != ''">the_geom = #{theGeom},</if> | |||||
<if test="BSM != null">BSM = #{BSM},</if> | <if test="BSM != null">BSM = #{BSM},</if> | ||||
<if test="YSDM != null">YSDM = #{YSDM},</if> | <if test="YSDM != null">YSDM = #{YSDM},</if> | ||||
<if test="fid != null">fid = #{fid},</if> | |||||
<if test="theGeom != null">the_geom = #{theGeom},</if> | |||||
<if test="importCode != null and importCode != ''">import_code = #{importCode},</if> | <if test="importCode != null and importCode != ''">import_code = #{importCode},</if> | ||||
<if test="fid != null">fid = #{fid},</if> | |||||
</trim> | </trim> | ||||
where CJQYDM = #{CJQYDM} | where CJQYDM = #{CJQYDM} | ||||
</update> | </update> | ||||
@@ -97,11 +99,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
update t_gis_cjqy | update t_gis_cjqy | ||||
<set> | <set> | ||||
<if test="item.CJQYMC != null and item.CJQYMC != ''">CJQYMC = #{item.CJQYMC},</if> | <if test="item.CJQYMC != null and item.CJQYMC != ''">CJQYMC = #{item.CJQYMC},</if> | ||||
<if test="item.theGeom != null and item.theGeom != ''">the_geom = #{item.theGeom},</if> | |||||
<if test="item.BSM != null">BSM = #{item.BSM},</if> | <if test="item.BSM != null">BSM = #{item.BSM},</if> | ||||
<if test="item.YSDM != null">YSDM = #{item.YSDM},</if> | <if test="item.YSDM != null">YSDM = #{item.YSDM},</if> | ||||
<if test="item.fid != null">fid = #{item.fid},</if> | |||||
<if test="item.theGeom != null">the_geom = #{item.theGeom},</if> | |||||
<if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if> | <if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if> | ||||
<if test="item.fid != null">fid = #{item.fid},</if> | |||||
</set> | </set> | ||||
where CJQYDM = #{item.CJQYDM} | where CJQYDM = #{item.CJQYDM} | ||||
</foreach> | </foreach> | ||||
@@ -7,22 +7,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<resultMap type="TGisXjqy" id="TGisXjqyResult"> | <resultMap type="TGisXjqy" id="TGisXjqyResult"> | ||||
<result property="XJQYDM" column="XJQYDM" /> | <result property="XJQYDM" column="XJQYDM" /> | ||||
<result property="XJQYMC" column="XJQYMC" /> | <result property="XJQYMC" column="XJQYMC" /> | ||||
<result property="theGeom" column="the_geom" /> | |||||
<result property="BSM" column="BSM" /> | <result property="BSM" column="BSM" /> | ||||
<result property="YSDM" column="YSDM" /> | <result property="YSDM" column="YSDM" /> | ||||
<result property="fid" column="fid" /> | |||||
<result property="theGeom" column="the_geom" /> | |||||
<result property="importCode" column="import_code" /> | <result property="importCode" column="import_code" /> | ||||
<result property="fid" column="fid" /> | |||||
</resultMap> | </resultMap> | ||||
<sql id="selectTGisXjqyVo"> | <sql id="selectTGisXjqyVo"> | ||||
select XJQYDM, XJQYMC, the_geom, BSM, YSDM, fid, import_code from t_gis_xjqy | |||||
select XJQYDM, XJQYMC, BSM, YSDM, the_geom, import_code, fid from t_gis_xjqy | |||||
</sql> | </sql> | ||||
<select id="selectTGisXjqyList" parameterType="TGisXjqy" resultMap="TGisXjqyResult"> | <select id="selectTGisXjqyList" parameterType="TGisXjqy" resultMap="TGisXjqyResult"> | ||||
<include refid="selectTGisXjqyVo"/> | <include refid="selectTGisXjqyVo"/> | ||||
<where> | <where> | ||||
<if test="XJQYDM != null and XJQYDM != ''"> and XJQYDM = #{XJQYDM}</if> | <if test="XJQYDM != null and XJQYDM != ''"> and XJQYDM = #{XJQYDM}</if> | ||||
<if test="XJQYMC != null and XJQYMC != ''"> and XJQYMC = #{XJQYMC}</if> | |||||
<if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if> | <if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if> | ||||
<if test="fid != null "> and fid = #{fid}</if> | |||||
</where> | </where> | ||||
</select> | </select> | ||||
@@ -36,20 +38,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
<if test="XJQYDM != null">XJQYDM,</if> | <if test="XJQYDM != null">XJQYDM,</if> | ||||
<if test="XJQYMC != null and XJQYMC != ''">XJQYMC,</if> | <if test="XJQYMC != null and XJQYMC != ''">XJQYMC,</if> | ||||
<if test="theGeom != null and theGeom != ''">the_geom,</if> | |||||
<if test="BSM != null">BSM,</if> | <if test="BSM != null">BSM,</if> | ||||
<if test="YSDM != null">YSDM,</if> | <if test="YSDM != null">YSDM,</if> | ||||
<if test="fid != null">fid,</if> | |||||
<if test="theGeom != null and theGeom != ''">the_geom,</if> | |||||
<if test="importCode != null and importCode != ''">import_code,</if> | <if test="importCode != null and importCode != ''">import_code,</if> | ||||
<if test="fid != null">fid,</if> | |||||
</trim> | </trim> | ||||
<trim prefix="values (" suffix=")" suffixOverrides=","> | <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
<if test="XJQYDM != null">#{XJQYDM},</if> | <if test="XJQYDM != null">#{XJQYDM},</if> | ||||
<if test="XJQYMC != null and XJQYMC != ''">#{XJQYMC},</if> | <if test="XJQYMC != null and XJQYMC != ''">#{XJQYMC},</if> | ||||
<if test="theGeom != null and theGeom != ''">#{theGeom},</if> | |||||
<if test="BSM != null">#{BSM},</if> | <if test="BSM != null">#{BSM},</if> | ||||
<if test="YSDM != null">#{YSDM},</if> | <if test="YSDM != null">#{YSDM},</if> | ||||
<if test="fid != null">#{fid},</if> | |||||
<if test="theGeom != null and theGeom != ''">#{theGeom},</if> | |||||
<if test="importCode != null and importCode != ''">#{importCode},</if> | <if test="importCode != null and importCode != ''">#{importCode},</if> | ||||
<if test="fid != null">#{fid},</if> | |||||
</trim> | </trim> | ||||
</insert> | </insert> | ||||
@@ -58,22 +60,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
XJQYDM, | XJQYDM, | ||||
XJQYMC, | XJQYMC, | ||||
the_geom, | |||||
BSM, | BSM, | ||||
YSDM, | YSDM, | ||||
fid, | |||||
the_geom, | |||||
import_code, | import_code, | ||||
fid, | |||||
</trim> | </trim> | ||||
values | values | ||||
<foreach item="item" collection="list" separator="," > | <foreach item="item" collection="list" separator="," > | ||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
#{item.XJQYDM}, | #{item.XJQYDM}, | ||||
#{item.XJQYMC}, | #{item.XJQYMC}, | ||||
#{item.theGeom}, | |||||
#{item.BSM}, | #{item.BSM}, | ||||
#{item.YSDM}, | #{item.YSDM}, | ||||
#{item.fid}, | |||||
#{item.theGeom}, | |||||
#{item.importCode}, | #{item.importCode}, | ||||
#{item.fid}, | |||||
</trim> | </trim> | ||||
</foreach> | </foreach> | ||||
</insert> | </insert> | ||||
@@ -82,11 +84,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
update t_gis_xjqy | update t_gis_xjqy | ||||
<trim prefix="SET" suffixOverrides=","> | <trim prefix="SET" suffixOverrides=","> | ||||
<if test="XJQYMC != null and XJQYMC != ''">XJQYMC = #{XJQYMC},</if> | <if test="XJQYMC != null and XJQYMC != ''">XJQYMC = #{XJQYMC},</if> | ||||
<if test="theGeom != null and theGeom != ''">the_geom = #{theGeom},</if> | |||||
<if test="BSM != null">BSM = #{BSM},</if> | <if test="BSM != null">BSM = #{BSM},</if> | ||||
<if test="YSDM != null">YSDM = #{YSDM},</if> | <if test="YSDM != null">YSDM = #{YSDM},</if> | ||||
<if test="fid != null">fid = #{fid},</if> | |||||
<if test="theGeom != null and theGeom != ''">the_geom = #{theGeom},</if> | |||||
<if test="importCode != null and importCode != ''">import_code = #{importCode},</if> | <if test="importCode != null and importCode != ''">import_code = #{importCode},</if> | ||||
<if test="fid != null">fid = #{fid},</if> | |||||
</trim> | </trim> | ||||
where XJQYDM = #{XJQYDM} | where XJQYDM = #{XJQYDM} | ||||
</update> | </update> | ||||
@@ -97,11 +99,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
update t_gis_xjqy | update t_gis_xjqy | ||||
<set> | <set> | ||||
<if test="item.XJQYMC != null and item.XJQYMC != ''">XJQYMC = #{item.XJQYMC},</if> | <if test="item.XJQYMC != null and item.XJQYMC != ''">XJQYMC = #{item.XJQYMC},</if> | ||||
<if test="item.theGeom != null and item.theGeom != ''">the_geom = #{item.theGeom},</if> | |||||
<if test="item.BSM != null">BSM = #{item.BSM},</if> | <if test="item.BSM != null">BSM = #{item.BSM},</if> | ||||
<if test="item.YSDM != null">YSDM = #{item.YSDM},</if> | <if test="item.YSDM != null">YSDM = #{item.YSDM},</if> | ||||
<if test="item.fid != null">fid = #{item.fid},</if> | |||||
<if test="item.theGeom != null and item.theGeom != ''">the_geom = #{item.theGeom},</if> | |||||
<if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if> | <if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if> | ||||
<if test="item.fid != null">fid = #{item.fid},</if> | |||||
</set> | </set> | ||||
where XJQYDM = #{item.XJQYDM} | where XJQYDM = #{item.XJQYDM} | ||||
</foreach> | </foreach> | ||||
@@ -7,22 +7,24 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<resultMap type="TGisXjxzq" id="TGisXjxzqResult"> | <resultMap type="TGisXjxzq" id="TGisXjxzqResult"> | ||||
<result property="XZQDM" column="XZQDM" /> | <result property="XZQDM" column="XZQDM" /> | ||||
<result property="XZQMC" column="XZQMC" /> | <result property="XZQMC" column="XZQMC" /> | ||||
<result property="theGeom" column="the_geom" /> | |||||
<result property="BSM" column="BSM" /> | <result property="BSM" column="BSM" /> | ||||
<result property="YSDM" column="YSDM" /> | <result property="YSDM" column="YSDM" /> | ||||
<result property="fid" column="fid" /> | |||||
<result property="theGeom" column="the_geom" /> | |||||
<result property="importCode" column="import_code" /> | <result property="importCode" column="import_code" /> | ||||
<result property="fid" column="fid" /> | |||||
</resultMap> | </resultMap> | ||||
<sql id="selectTGisXjxzqVo"> | <sql id="selectTGisXjxzqVo"> | ||||
select XZQDM, XZQMC, the_geom, BSM, YSDM, fid, import_code from t_gis_xjxzq | |||||
select XZQDM, XZQMC, BSM, YSDM, the_geom, import_code, fid from t_gis_xjxzq | |||||
</sql> | </sql> | ||||
<select id="selectTGisXjxzqList" parameterType="TGisXjxzq" resultMap="TGisXjxzqResult"> | <select id="selectTGisXjxzqList" parameterType="TGisXjxzq" resultMap="TGisXjxzqResult"> | ||||
<include refid="selectTGisXjxzqVo"/> | <include refid="selectTGisXjxzqVo"/> | ||||
<where> | <where> | ||||
<if test="XZQDM != null and XZQDM != ''"> and XZQDM = #{XZQDM}</if> | <if test="XZQDM != null and XZQDM != ''"> and XZQDM = #{XZQDM}</if> | ||||
<if test="XZQMC != null and XZQMC != ''"> and XZQMC = #{XZQMC}</if> | |||||
<if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if> | <if test="importCode != null and importCode != ''"> and import_code = #{importCode}</if> | ||||
<if test="fid != null "> and fid = #{fid}</if> | |||||
</where> | </where> | ||||
</select> | </select> | ||||
@@ -36,20 +38,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
<if test="XZQDM != null">XZQDM,</if> | <if test="XZQDM != null">XZQDM,</if> | ||||
<if test="XZQMC != null and XZQMC != ''">XZQMC,</if> | <if test="XZQMC != null and XZQMC != ''">XZQMC,</if> | ||||
<if test="theGeom != null and theGeom != ''">the_geom,</if> | |||||
<if test="BSM != null">BSM,</if> | <if test="BSM != null">BSM,</if> | ||||
<if test="YSDM != null">YSDM,</if> | <if test="YSDM != null">YSDM,</if> | ||||
<if test="fid != null">fid,</if> | |||||
<if test="theGeom != null and theGeom != ''">the_geom,</if> | |||||
<if test="importCode != null and importCode != ''">import_code,</if> | <if test="importCode != null and importCode != ''">import_code,</if> | ||||
<if test="fid != null">fid,</if> | |||||
</trim> | </trim> | ||||
<trim prefix="values (" suffix=")" suffixOverrides=","> | <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
<if test="XZQDM != null">#{XZQDM},</if> | <if test="XZQDM != null">#{XZQDM},</if> | ||||
<if test="XZQMC != null and XZQMC != ''">#{XZQMC},</if> | <if test="XZQMC != null and XZQMC != ''">#{XZQMC},</if> | ||||
<if test="theGeom != null and theGeom != ''">#{theGeom},</if> | |||||
<if test="BSM != null">#{BSM},</if> | <if test="BSM != null">#{BSM},</if> | ||||
<if test="YSDM != null">#{YSDM},</if> | <if test="YSDM != null">#{YSDM},</if> | ||||
<if test="fid != null">#{fid},</if> | |||||
<if test="theGeom != null and theGeom != ''">#{theGeom},</if> | |||||
<if test="importCode != null and importCode != ''">#{importCode},</if> | <if test="importCode != null and importCode != ''">#{importCode},</if> | ||||
<if test="fid != null">#{fid},</if> | |||||
</trim> | </trim> | ||||
</insert> | </insert> | ||||
@@ -58,22 +60,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
XZQDM, | XZQDM, | ||||
XZQMC, | XZQMC, | ||||
the_geom, | |||||
BSM, | BSM, | ||||
YSDM, | YSDM, | ||||
fid, | |||||
the_geom, | |||||
import_code, | import_code, | ||||
fid, | |||||
</trim> | </trim> | ||||
values | values | ||||
<foreach item="item" collection="list" separator="," > | <foreach item="item" collection="list" separator="," > | ||||
<trim prefix="(" suffix=")" suffixOverrides=","> | <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
#{item.XZQDM}, | #{item.XZQDM}, | ||||
#{item.XZQMC}, | #{item.XZQMC}, | ||||
#{item.theGeom}, | |||||
#{item.BSM}, | #{item.BSM}, | ||||
#{item.YSDM}, | #{item.YSDM}, | ||||
#{item.fid}, | |||||
#{item.theGeom}, | |||||
#{item.importCode}, | #{item.importCode}, | ||||
#{item.fid}, | |||||
</trim> | </trim> | ||||
</foreach> | </foreach> | ||||
</insert> | </insert> | ||||
@@ -82,11 +84,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
update t_gis_xjxzq | update t_gis_xjxzq | ||||
<trim prefix="SET" suffixOverrides=","> | <trim prefix="SET" suffixOverrides=","> | ||||
<if test="XZQMC != null and XZQMC != ''">XZQMC = #{XZQMC},</if> | <if test="XZQMC != null and XZQMC != ''">XZQMC = #{XZQMC},</if> | ||||
<if test="theGeom != null and theGeom != ''">the_geom = #{theGeom},</if> | |||||
<if test="BSM != null">BSM = #{BSM},</if> | <if test="BSM != null">BSM = #{BSM},</if> | ||||
<if test="YSDM != null">YSDM = #{YSDM},</if> | <if test="YSDM != null">YSDM = #{YSDM},</if> | ||||
<if test="fid != null">fid = #{fid},</if> | |||||
<if test="theGeom != null and theGeom != ''">the_geom = #{theGeom},</if> | |||||
<if test="importCode != null and importCode != ''">import_code = #{importCode},</if> | <if test="importCode != null and importCode != ''">import_code = #{importCode},</if> | ||||
<if test="fid != null">fid = #{fid},</if> | |||||
</trim> | </trim> | ||||
where XZQDM = #{XZQDM} | where XZQDM = #{XZQDM} | ||||
</update> | </update> | ||||
@@ -97,11 +99,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | |||||
update t_gis_xjxzq | update t_gis_xjxzq | ||||
<set> | <set> | ||||
<if test="item.XZQMC != null and item.XZQMC != ''">XZQMC = #{item.XZQMC},</if> | <if test="item.XZQMC != null and item.XZQMC != ''">XZQMC = #{item.XZQMC},</if> | ||||
<if test="item.theGeom != null and item.theGeom != ''">the_geom = #{item.theGeom},</if> | |||||
<if test="item.BSM != null">BSM = #{item.BSM},</if> | <if test="item.BSM != null">BSM = #{item.BSM},</if> | ||||
<if test="item.YSDM != null">YSDM = #{item.YSDM},</if> | <if test="item.YSDM != null">YSDM = #{item.YSDM},</if> | ||||
<if test="item.fid != null">fid = #{item.fid},</if> | |||||
<if test="item.theGeom != null and item.theGeom != ''">the_geom = #{item.theGeom},</if> | |||||
<if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if> | <if test="item.importCode != null and item.importCode != ''">import_code = #{item.importCode},</if> | ||||
<if test="item.fid != null">fid = #{item.fid},</if> | |||||
</set> | </set> | ||||
where XZQDM = #{item.XZQDM} | where XZQDM = #{item.XZQDM} | ||||
</foreach> | </foreach> | ||||