md
This commit is contained in:
parent
4a56b7557a
commit
fa7e67866a
@ -1,11 +1,11 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisContinent.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:39
|
||||
* @date 2023-12-12 06:35:06
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 地球洲 实体类 </p>
|
||||
* @version v1.0
|
||||
* @Description: <p> 全球大区 实体类 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.emis.domain;
|
||||
@ -23,11 +23,11 @@ import lombok.Data;
|
||||
|
||||
/**
|
||||
* @ClassName EmisContinent
|
||||
* @Description 地球洲
|
||||
* @Description 全球大区
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:39
|
||||
* @date 2023-12-12 06:35:06
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisContinent extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
@ -38,6 +38,8 @@ public class EmisContinent extends BaseEntity
|
||||
private String name;
|
||||
/* 英文名称 */
|
||||
private String nameEn;
|
||||
/* 父ID */
|
||||
private Integer parentId;
|
||||
/* 洲代码(段码使用) */
|
||||
private String code;
|
||||
/* 二字码 */
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCountry.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @date 2023-12-12 06:35:32
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 国家 实体类 </p>
|
||||
*/
|
||||
|
||||
@ -25,9 +25,9 @@ import lombok.Data;
|
||||
* @ClassName EmisCountry
|
||||
* @Description 国家
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @date 2023-12-12 06:35:32
|
||||
*/
|
||||
@Data
|
||||
@Data
|
||||
public class EmisCountry extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ -1,118 +0,0 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisContinentController.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 地球洲 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisContinent;
|
||||
import com.xdadan.erp.emis.service.IEmisContinentService;
|
||||
|
||||
/**
|
||||
* 地球洲Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisContinent")
|
||||
public class EmisContinentController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisContinentService emisContinentService;
|
||||
|
||||
/**
|
||||
* 查询地球洲列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisContinent:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisContinent emisContinent)
|
||||
{
|
||||
startPage();
|
||||
List<EmisContinent> list = emisContinentService.selectEmisContinentList(emisContinent);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出地球洲列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisContinent:export')")
|
||||
@Log(title = "地球洲", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisContinent emisContinent)
|
||||
{
|
||||
List<EmisContinent> list = emisContinentService.selectEmisContinentList(emisContinent);
|
||||
ExcelUtil<EmisContinent> util = new ExcelUtil<EmisContinent>(EmisContinent.class);
|
||||
util.exportExcel(response, list, "地球洲数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取地球洲详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisContinent:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
||||
{
|
||||
return AjaxResult.success(emisContinentService.selectEmisContinentById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增地球洲
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisContinent:add')")
|
||||
@Log(title = "地球洲", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisContinent emisContinent)
|
||||
{
|
||||
return toAjax(emisContinentService.insertEmisContinent(emisContinent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改地球洲
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisContinent:edit')")
|
||||
@Log(title = "地球洲", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisContinent emisContinent)
|
||||
{
|
||||
return toAjax(emisContinentService.updateEmisContinent(emisContinent));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除地球洲
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisContinent:remove')")
|
||||
@Log(title = "地球洲", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Integer[] ids)
|
||||
{
|
||||
return toAjax(emisContinentService.deleteEmisContinentByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -1,118 +0,0 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCountryAreaController.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 国家大区表 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisCountryArea;
|
||||
import com.xdadan.erp.emis.service.IEmisCountryAreaService;
|
||||
|
||||
/**
|
||||
* 国家大区表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCountryArea")
|
||||
public class EmisCountryAreaController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCountryAreaService emisCountryAreaService;
|
||||
|
||||
/**
|
||||
* 查询国家大区表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountryArea:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCountryArea emisCountryArea)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCountryArea> list = emisCountryAreaService.selectEmisCountryAreaList(emisCountryArea);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出国家大区表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountryArea:export')")
|
||||
@Log(title = "国家大区表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCountryArea emisCountryArea)
|
||||
{
|
||||
List<EmisCountryArea> list = emisCountryAreaService.selectEmisCountryAreaList(emisCountryArea);
|
||||
ExcelUtil<EmisCountryArea> util = new ExcelUtil<EmisCountryArea>(EmisCountryArea.class);
|
||||
util.exportExcel(response, list, "国家大区表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取国家大区表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountryArea:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return AjaxResult.success(emisCountryAreaService.selectEmisCountryAreaById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增国家大区表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountryArea:add')")
|
||||
@Log(title = "国家大区表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCountryArea emisCountryArea)
|
||||
{
|
||||
return toAjax(emisCountryAreaService.insertEmisCountryArea(emisCountryArea));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改国家大区表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountryArea:edit')")
|
||||
@Log(title = "国家大区表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCountryArea emisCountryArea)
|
||||
{
|
||||
return toAjax(emisCountryAreaService.updateEmisCountryArea(emisCountryArea));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除国家大区表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountryArea:remove')")
|
||||
@Log(title = "国家大区表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(emisCountryAreaService.deleteEmisCountryAreaByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -1,118 +0,0 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCountryController.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 国家 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisCountry;
|
||||
import com.xdadan.erp.emis.service.IEmisCountryService;
|
||||
|
||||
/**
|
||||
* 国家Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisCountry")
|
||||
public class EmisCountryController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisCountryService emisCountryService;
|
||||
|
||||
/**
|
||||
* 查询国家列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountry:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisCountry emisCountry)
|
||||
{
|
||||
startPage();
|
||||
List<EmisCountry> list = emisCountryService.selectEmisCountryList(emisCountry);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出国家列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountry:export')")
|
||||
@Log(title = "国家", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisCountry emisCountry)
|
||||
{
|
||||
List<EmisCountry> list = emisCountryService.selectEmisCountryList(emisCountry);
|
||||
ExcelUtil<EmisCountry> util = new ExcelUtil<EmisCountry>(EmisCountry.class);
|
||||
util.exportExcel(response, list, "国家数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取国家详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountry:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
||||
{
|
||||
return AjaxResult.success(emisCountryService.selectEmisCountryById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增国家
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountry:add')")
|
||||
@Log(title = "国家", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCountry emisCountry)
|
||||
{
|
||||
return toAjax(emisCountryService.insertEmisCountry(emisCountry));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改国家
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountry:edit')")
|
||||
@Log(title = "国家", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisCountry emisCountry)
|
||||
{
|
||||
return toAjax(emisCountryService.updateEmisCountry(emisCountry));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除国家
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCountry:remove')")
|
||||
@Log(title = "国家", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Integer[] ids)
|
||||
{
|
||||
return toAjax(emisCountryService.deleteEmisCountryByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -1,118 +0,0 @@
|
||||
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisRegionController.java
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @Description: <p> 四级省市区镇表 控制器 </p>
|
||||
*/
|
||||
|
||||
package com.xdadan.erp.web.emis;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.xdadan.erp.common.annotation.Log;
|
||||
import com.xdadan.erp.common.core.controller.BaseController;
|
||||
import com.xdadan.erp.common.core.domain.AjaxResult;
|
||||
import com.xdadan.erp.common.core.page.TableDataInfo;
|
||||
import com.xdadan.erp.common.enums.BusinessType;
|
||||
import com.xdadan.erp.common.utils.StringUtils;
|
||||
import com.xdadan.erp.common.utils.poi.ExcelUtil;
|
||||
|
||||
import com.xdadan.erp.emis.domain.EmisRegion;
|
||||
import com.xdadan.erp.emis.service.IEmisRegionService;
|
||||
|
||||
/**
|
||||
* 四级省市区镇表Controller
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2023-11-16 16:18:40
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/emis/emisRegion")
|
||||
public class EmisRegionController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IEmisRegionService emisRegionService;
|
||||
|
||||
/**
|
||||
* 查询四级省市区镇表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisRegion:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(EmisRegion emisRegion)
|
||||
{
|
||||
startPage();
|
||||
List<EmisRegion> list = emisRegionService.selectEmisRegionList(emisRegion);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出四级省市区镇表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisRegion:export')")
|
||||
@Log(title = "四级省市区镇表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, EmisRegion emisRegion)
|
||||
{
|
||||
List<EmisRegion> list = emisRegionService.selectEmisRegionList(emisRegion);
|
||||
ExcelUtil<EmisRegion> util = new ExcelUtil<EmisRegion>(EmisRegion.class);
|
||||
util.exportExcel(response, list, "四级省市区镇表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取四级省市区镇表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisRegion:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Integer id)
|
||||
{
|
||||
return AjaxResult.success(emisRegionService.selectEmisRegionById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增四级省市区镇表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisRegion:add')")
|
||||
@Log(title = "四级省市区镇表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisRegion emisRegion)
|
||||
{
|
||||
return toAjax(emisRegionService.insertEmisRegion(emisRegion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改四级省市区镇表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisRegion:edit')")
|
||||
@Log(title = "四级省市区镇表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody EmisRegion emisRegion)
|
||||
{
|
||||
return toAjax(emisRegionService.updateEmisRegion(emisRegion));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除四级省市区镇表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisRegion:remove')")
|
||||
@Log(title = "四级省市区镇表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Integer[] ids)
|
||||
{
|
||||
return toAjax(emisRegionService.deleteEmisRegionByIds(ids));
|
||||
}
|
||||
}
|
||||
@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisContinentMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisContinent" id="EmisContinentResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
<result property="nameEn" column="name_en" />
|
||||
<result property="parentId" column="parent_id" />
|
||||
<result property="code" column="code" />
|
||||
<result property="twoCode" column="two_code" />
|
||||
<result property="threeCode" column="three_code" />
|
||||
@ -21,15 +22,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectEmisContinentVo">
|
||||
select id, name, name_en, code, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_continent
|
||||
select id, name, name_en, parent_id, code, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_continent
|
||||
</sql>
|
||||
|
||||
<select id="selectEmisContinentList" parameterType="EmisContinent" resultMap="EmisContinentResult">
|
||||
<include refid="selectEmisContinentVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and name_en like concat('%', #{nameEn}, '%')</if>
|
||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||
<if test="code != null and code != ''"> and code like concat('%', #{code}, '%')</if>
|
||||
<if test="twoCode != null and twoCode != ''"> and two_code like concat('%', #{twoCode}, '%')</if>
|
||||
<if test="threeCode != null and threeCode != ''"> and three_code like concat('%', #{threeCode}, '%')</if>
|
||||
@ -43,19 +45,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEmisContinentById" parameterType="Integer" resultMap="EmisContinentResult">
|
||||
select id, name, name_en, code, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
select id, name, name_en, parent_id, code, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_continent a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisContinent" parameterType="EmisContinent">
|
||||
insert into emis_continent
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en,</if>
|
||||
<if test="parentId != null">parent_id,</if>
|
||||
<if test="code != null and code != ''">code,</if>
|
||||
<if test="twoCode != null and twoCode != ''">two_code,</if>
|
||||
<if test="threeCode != null and threeCode != ''">three_code,</if>
|
||||
@ -66,11 +69,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
<if test="nameEn != null and nameEn != ''">#{nameEn},</if>
|
||||
<if test="parentId != null">#{parentId},</if>
|
||||
<if test="code != null and code != ''">#{code},</if>
|
||||
<if test="twoCode != null and twoCode != ''">#{twoCode},</if>
|
||||
<if test="threeCode != null and threeCode != ''">#{threeCode},</if>
|
||||
@ -81,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisContinent" parameterType="EmisContinent">
|
||||
@ -89,6 +93,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null and name != ''">name = #{name},</if>
|
||||
<if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if>
|
||||
<if test="parentId != null">parent_id = #{parentId},</if>
|
||||
<if test="code != null and code != ''">code = #{code},</if>
|
||||
<if test="twoCode != null and twoCode != ''">two_code = #{twoCode},</if>
|
||||
<if test="threeCode != null and threeCode != ''">three_code = #{threeCode},</if>
|
||||
@ -108,7 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisContinentByIds" parameterType="String">
|
||||
delete from emis_continent where id in
|
||||
delete from emis_continent where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.xdadan.erp.emis.mapper.EmisCountryMapper">
|
||||
|
||||
|
||||
<resultMap type="EmisCountry" id="EmisCountryResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="name" column="name" />
|
||||
@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectEmisCountryList" parameterType="EmisCountry" resultMap="EmisCountryResult">
|
||||
<include refid="selectEmisCountryVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="id != null "> and id = #{id}</if>
|
||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||
<if test="nameEn != null and nameEn != ''"> and name_en like concat('%', #{nameEn}, '%')</if>
|
||||
@ -45,13 +45,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectEmisCountryById" parameterType="Integer" resultMap="EmisCountryResult">
|
||||
select id, name, name_en, code, continent_id, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
select id, name, name_en, code, continent_id, two_code, three_code, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||
from emis_country a
|
||||
where a.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertEmisCountry" parameterType="EmisCountry">
|
||||
insert into emis_country
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null and name != ''">#{name},</if>
|
||||
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateEmisCountry" parameterType="EmisCountry">
|
||||
@ -113,7 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteEmisCountryByIds" parameterType="String">
|
||||
delete from emis_country where id in
|
||||
delete from emis_country where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user