md
This commit is contained in:
parent
5b3e76f29f
commit
a742f28a2e
@ -0,0 +1,118 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisDestinationController.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
* @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.EmisDestination;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisDestinationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目的地Controller
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/emis/emisDestination")
|
||||||
|
public class EmisDestinationController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IEmisDestinationService emisDestinationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询目的地列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisDestination:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EmisDestination> list = emisDestinationService.selectEmisDestinationList(emisDestination);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出目的地列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisDestination:export')")
|
||||||
|
@Log(title = "目的地", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
List<EmisDestination> list = emisDestinationService.selectEmisDestinationList(emisDestination);
|
||||||
|
ExcelUtil<EmisDestination> util = new ExcelUtil<EmisDestination>(EmisDestination.class);
|
||||||
|
util.exportExcel(response, list, "目的地数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取目的地详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisDestination:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(emisDestinationService.selectEmisDestinationById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增目的地
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisDestination:add')")
|
||||||
|
@Log(title = "目的地", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
return toAjax(emisDestinationService.insertEmisDestination(emisDestination));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改目的地
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisDestination:edit')")
|
||||||
|
@Log(title = "目的地", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
return toAjax(emisDestinationService.updateEmisDestination(emisDestination));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除目的地
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisDestination:remove')")
|
||||||
|
@Log(title = "目的地", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(emisDestinationService.deleteEmisDestinationByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,118 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisGoodsController.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
* @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.EmisGoods;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisGoodsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 货物信息Controller
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/emis/emisGoods")
|
||||||
|
public class EmisGoodsController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IEmisGoodsService emisGoodsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询货物信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisGoods:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EmisGoods> list = emisGoodsService.selectEmisGoodsList(emisGoods);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出货物信息列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisGoods:export')")
|
||||||
|
@Log(title = "货物信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
List<EmisGoods> list = emisGoodsService.selectEmisGoodsList(emisGoods);
|
||||||
|
ExcelUtil<EmisGoods> util = new ExcelUtil<EmisGoods>(EmisGoods.class);
|
||||||
|
util.exportExcel(response, list, "货物信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取货物信息详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisGoods:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(emisGoodsService.selectEmisGoodsById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增货物信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisGoods:add')")
|
||||||
|
@Log(title = "货物信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
return toAjax(emisGoodsService.insertEmisGoods(emisGoods));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改货物信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisGoods:edit')")
|
||||||
|
@Log(title = "货物信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
return toAjax(emisGoodsService.updateEmisGoods(emisGoods));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除货物信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisGoods:remove')")
|
||||||
|
@Log(title = "货物信息", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(emisGoodsService.deleteEmisGoodsByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,118 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisTransProductController.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
* @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.EmisTransProduct;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisTransProductService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运输产品类型Controller
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/emis/emisTransProduct")
|
||||||
|
public class EmisTransProductController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IEmisTransProductService emisTransProductService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询运输产品类型列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisTransProduct:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<EmisTransProduct> list = emisTransProductService.selectEmisTransProductList(emisTransProduct);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出运输产品类型列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisTransProduct:export')")
|
||||||
|
@Log(title = "运输产品类型", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
List<EmisTransProduct> list = emisTransProductService.selectEmisTransProductList(emisTransProduct);
|
||||||
|
ExcelUtil<EmisTransProduct> util = new ExcelUtil<EmisTransProduct>(EmisTransProduct.class);
|
||||||
|
util.exportExcel(response, list, "运输产品类型数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取运输产品类型详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisTransProduct:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return AjaxResult.success(emisTransProductService.selectEmisTransProductById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增运输产品类型
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisTransProduct:add')")
|
||||||
|
@Log(title = "运输产品类型", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
return toAjax(emisTransProductService.insertEmisTransProduct(emisTransProduct));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改运输产品类型
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisTransProduct:edit')")
|
||||||
|
@Log(title = "运输产品类型", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
return toAjax(emisTransProductService.updateEmisTransProduct(emisTransProduct));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除运输产品类型
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('emis:emisTransProduct:remove')")
|
||||||
|
@Log(title = "运输产品类型", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(emisTransProductService.deleteEmisTransProductByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisDestination.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 目的地 实体类 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.emis.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.xdadan.erp.common.annotation.Excel;
|
||||||
|
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||||
|
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName EmisDestination
|
||||||
|
* @Description 目的地
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class EmisDestination extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/* 序号 */
|
||||||
|
private Long id;
|
||||||
|
/* 目的地编码 */
|
||||||
|
private String destCode;
|
||||||
|
/* 目的地名称 */
|
||||||
|
private String destName;
|
||||||
|
/* 英文名称 */
|
||||||
|
private String destNameEn;
|
||||||
|
/* 启用状态 0-启用 1-停用 */
|
||||||
|
private Integer status;
|
||||||
|
/* 所属国家 */
|
||||||
|
private String country;
|
||||||
|
/* 所属线路 */
|
||||||
|
private String transLineCode;
|
||||||
|
/* 所属线路名称 */
|
||||||
|
private String transLine;
|
||||||
|
/* 服务网点编号 */
|
||||||
|
private String siteCode;
|
||||||
|
/* 服务网点名称 */
|
||||||
|
private String siteName;
|
||||||
|
/* 省 */
|
||||||
|
private String province;
|
||||||
|
/* 市 */
|
||||||
|
private String city;
|
||||||
|
/* 区 */
|
||||||
|
private String county;
|
||||||
|
/* 乡镇 */
|
||||||
|
private String town;
|
||||||
|
|
||||||
|
}
|
||||||
148
emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisGoods.java
Normal file
148
emis-biz/src/main/java/com/xdadan/erp/emis/domain/EmisGoods.java
Normal file
@ -0,0 +1,148 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisGoods.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 货物信息 实体类 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.emis.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.xdadan.erp.common.annotation.Excel;
|
||||||
|
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||||
|
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName EmisGoods
|
||||||
|
* @Description 货物信息
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class EmisGoods extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/* 序号 */
|
||||||
|
private Long id;
|
||||||
|
/* 货物编号 */
|
||||||
|
private String goodsSn;
|
||||||
|
/* 货物名称 */
|
||||||
|
private String goodsName;
|
||||||
|
/* 货物英文名称 */
|
||||||
|
private String goodsNameEn;
|
||||||
|
/* 货物类别 */
|
||||||
|
private String goodsCat;
|
||||||
|
/* 型号 */
|
||||||
|
private String goodsType;
|
||||||
|
/* 规格 */
|
||||||
|
private String goodsModel;
|
||||||
|
/* 条码 */
|
||||||
|
private String barcode;
|
||||||
|
/* 原产国 */
|
||||||
|
private String orginalNation;
|
||||||
|
/* 是否实物 0-否 1-是 */
|
||||||
|
private Integer isRealGoods;
|
||||||
|
/* 是否大类 0-否 1-是 */
|
||||||
|
private Integer isBigCat;
|
||||||
|
/* 品牌编号 */
|
||||||
|
private String brandId;
|
||||||
|
/* 品牌名称 */
|
||||||
|
private String brand;
|
||||||
|
/* 单净重 */
|
||||||
|
private String netWeight;
|
||||||
|
/* 单毛重 */
|
||||||
|
private String grossWeight;
|
||||||
|
/* 单件体积 */
|
||||||
|
private String singleVolume;
|
||||||
|
/* 单件长 */
|
||||||
|
private Double singleLength;
|
||||||
|
/* 单件宽 */
|
||||||
|
private Double singleWidth;
|
||||||
|
/* 单件高 */
|
||||||
|
private Double singleHeight;
|
||||||
|
/* 箱件数 */
|
||||||
|
private Integer pkgPcs;
|
||||||
|
/* 箱体积 */
|
||||||
|
private String pkgVolume;
|
||||||
|
/* 箱长 */
|
||||||
|
private Double pkgLength;
|
||||||
|
/* 箱宽 */
|
||||||
|
private Double pkgWidth;
|
||||||
|
/* 箱高 */
|
||||||
|
private Double pkgHeight;
|
||||||
|
/* 海关编码 */
|
||||||
|
private String hsCode;
|
||||||
|
/* 商检编号 */
|
||||||
|
private String isCode;
|
||||||
|
/* 计量单位 */
|
||||||
|
private String unit;
|
||||||
|
/* 法1 */
|
||||||
|
private String unit1;
|
||||||
|
/* 法2 */
|
||||||
|
private String unit2;
|
||||||
|
/* 价格 */
|
||||||
|
private String price;
|
||||||
|
/* 币种 */
|
||||||
|
private String currencyType;
|
||||||
|
/* 适用标准国别 */
|
||||||
|
private String ruleNation;
|
||||||
|
/* 生产企业 */
|
||||||
|
private String manufEnterprise;
|
||||||
|
/* 电商企业海关编码 */
|
||||||
|
private String ebcCode;
|
||||||
|
/* 电商企业商检编码 */
|
||||||
|
private String ciqCode;
|
||||||
|
/* 功能 */
|
||||||
|
private String function;
|
||||||
|
/* 主要成分 */
|
||||||
|
private String ingredients;
|
||||||
|
/* 用途 */
|
||||||
|
private String purpose;
|
||||||
|
/* 产品有效期 */
|
||||||
|
private String productValidity;
|
||||||
|
/* 进口模式 */
|
||||||
|
private String cebpMode;
|
||||||
|
/* 供应商 */
|
||||||
|
private String supplier;
|
||||||
|
/* 申报序列号 */
|
||||||
|
private String serialNumber;
|
||||||
|
/* 状态:0-初始 1-提交审核 2-审核通过 3-审核未通过 */
|
||||||
|
private Integer status;
|
||||||
|
/* 海关回执信息 */
|
||||||
|
private String statusMessage;
|
||||||
|
/* 原货物备件号 */
|
||||||
|
private String goodsSn2;
|
||||||
|
/* 物资序号 */
|
||||||
|
private String goodsNo2;
|
||||||
|
/* 许可证号 */
|
||||||
|
private String licNo;
|
||||||
|
/* 材料地址 */
|
||||||
|
private String materialPath;
|
||||||
|
/* 出厂日期 */
|
||||||
|
private String pd;
|
||||||
|
/* 销售链接地址 */
|
||||||
|
private String saleUrl;
|
||||||
|
/* 口岸编码 */
|
||||||
|
private String portCode;
|
||||||
|
/* ext1 */
|
||||||
|
private String ext1;
|
||||||
|
/* ext2 */
|
||||||
|
private String ext2;
|
||||||
|
/* ext3 */
|
||||||
|
private String ext3;
|
||||||
|
/* ext4 */
|
||||||
|
private String ext4;
|
||||||
|
/* ext5 */
|
||||||
|
private String ext5;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,62 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisTransProduct.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 运输产品类型 实体类 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.emis.domain;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.xdadan.erp.common.annotation.Excel;
|
||||||
|
import com.xdadan.erp.common.core.domain.BaseEntity;
|
||||||
|
import com.xdadan.erp.common.core.domain.TreeEntity;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName EmisTransProduct
|
||||||
|
* @Description 运输产品类型
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class EmisTransProduct extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/* 序号 */
|
||||||
|
private Long id;
|
||||||
|
/* 产品代码 */
|
||||||
|
private String prodCode;
|
||||||
|
/* 名称 */
|
||||||
|
private String prodName;
|
||||||
|
/* 英文名称 */
|
||||||
|
private String prodNameEn;
|
||||||
|
/* 启用状态 1-启用 0-禁用 */
|
||||||
|
private Integer status;
|
||||||
|
/* 所属国家 */
|
||||||
|
private String country;
|
||||||
|
/* 所属线路 */
|
||||||
|
private String transLineCode;
|
||||||
|
/* 所属线路名称 */
|
||||||
|
private String transLine;
|
||||||
|
/* 取重方式 */
|
||||||
|
private String carryType;
|
||||||
|
/* 承运方式 字典 */
|
||||||
|
private String transType;
|
||||||
|
/* 时效描述 */
|
||||||
|
private String agingDesc;
|
||||||
|
/* 最小时效 */
|
||||||
|
private Integer minAging;
|
||||||
|
/* 最大时效 */
|
||||||
|
private Integer maxAging;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,70 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisDestinationMapper.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 目的地 Mapper 接口 </p>
|
||||||
|
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||||
|
*/
|
||||||
|
package com.xdadan.erp.emis.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisDestination;
|
||||||
|
/**
|
||||||
|
* @ClassName EmisDestinationMapper
|
||||||
|
* @Description <p> 目的地 Mapper 接口 </p>
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
*/
|
||||||
|
public interface EmisDestinationMapper extends BaseMapper<EmisDestination>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 主键查询
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public EmisDestination selectEmisDestinationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询列表
|
||||||
|
*
|
||||||
|
* @param emisDestination
|
||||||
|
* @return 集合
|
||||||
|
*/
|
||||||
|
public List<EmisDestination> selectEmisDestinationList(EmisDestination emisDestination);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*
|
||||||
|
* @param emisDestination
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int insertEmisDestination(EmisDestination emisDestination);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*
|
||||||
|
* @param emisDestination
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int updateEmisDestination(EmisDestination emisDestination);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisDestinationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisDestinationByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,70 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisGoodsMapper.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 货物信息 Mapper 接口 </p>
|
||||||
|
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||||
|
*/
|
||||||
|
package com.xdadan.erp.emis.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisGoods;
|
||||||
|
/**
|
||||||
|
* @ClassName EmisGoodsMapper
|
||||||
|
* @Description <p> 货物信息 Mapper 接口 </p>
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
*/
|
||||||
|
public interface EmisGoodsMapper extends BaseMapper<EmisGoods>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 主键查询
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public EmisGoods selectEmisGoodsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询列表
|
||||||
|
*
|
||||||
|
* @param emisGoods
|
||||||
|
* @return 集合
|
||||||
|
*/
|
||||||
|
public List<EmisGoods> selectEmisGoodsList(EmisGoods emisGoods);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*
|
||||||
|
* @param emisGoods
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int insertEmisGoods(EmisGoods emisGoods);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*
|
||||||
|
* @param emisGoods
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int updateEmisGoods(EmisGoods emisGoods);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisGoodsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisGoodsByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,70 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisTransProductMapper.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
* @Copyright: ShangHai Doitinfo 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 运输产品类型 Mapper 接口 </p>
|
||||||
|
* <span style='color:red'> Warning : This file is generate by ai tools,don't edit!!! </span>
|
||||||
|
*/
|
||||||
|
package com.xdadan.erp.emis.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisTransProduct;
|
||||||
|
/**
|
||||||
|
* @ClassName EmisTransProductMapper
|
||||||
|
* @Description <p> 运输产品类型 Mapper 接口 </p>
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
*/
|
||||||
|
public interface EmisTransProductMapper extends BaseMapper<EmisTransProduct>
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 主键查询
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public EmisTransProduct selectEmisTransProductById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询列表
|
||||||
|
*
|
||||||
|
* @param emisTransProduct
|
||||||
|
* @return 集合
|
||||||
|
*/
|
||||||
|
public List<EmisTransProduct> selectEmisTransProductList(EmisTransProduct emisTransProduct);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增
|
||||||
|
*
|
||||||
|
* @param emisTransProduct
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int insertEmisTransProduct(EmisTransProduct emisTransProduct);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*
|
||||||
|
* @param emisTransProduct
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public int updateEmisTransProduct(EmisTransProduct emisTransProduct);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisTransProductById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisTransProductByIds(Long[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,69 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisDestinationService.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 目的地 服务类接口 </p>
|
||||||
|
*/
|
||||||
|
package com.xdadan.erp.emis.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisDestination;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName EmisDestinationService
|
||||||
|
* @Description 目的地
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
*/
|
||||||
|
public interface IEmisDestinationService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 主键查询
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public EmisDestination selectEmisDestinationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询目的地列表
|
||||||
|
*
|
||||||
|
* @param emisDestination 目的地
|
||||||
|
* @return 目的地集合
|
||||||
|
*/
|
||||||
|
public List<EmisDestination> selectEmisDestinationList(EmisDestination emisDestination);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增目的地
|
||||||
|
*
|
||||||
|
* @param emisDestination 目的地
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEmisDestination(EmisDestination emisDestination);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改目的地
|
||||||
|
*
|
||||||
|
* @param emisDestination 目的地
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEmisDestination(EmisDestination emisDestination);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除目的地
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的目的地主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisDestinationByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除目的地信息
|
||||||
|
*
|
||||||
|
* @param id 目的地主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisDestinationById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,69 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisGoodsService.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 货物信息 服务类接口 </p>
|
||||||
|
*/
|
||||||
|
package com.xdadan.erp.emis.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisGoods;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName EmisGoodsService
|
||||||
|
* @Description 货物信息
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
*/
|
||||||
|
public interface IEmisGoodsService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 主键查询
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public EmisGoods selectEmisGoodsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询货物信息列表
|
||||||
|
*
|
||||||
|
* @param emisGoods 货物信息
|
||||||
|
* @return 货物信息集合
|
||||||
|
*/
|
||||||
|
public List<EmisGoods> selectEmisGoodsList(EmisGoods emisGoods);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增货物信息
|
||||||
|
*
|
||||||
|
* @param emisGoods 货物信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEmisGoods(EmisGoods emisGoods);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改货物信息
|
||||||
|
*
|
||||||
|
* @param emisGoods 货物信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEmisGoods(EmisGoods emisGoods);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除货物信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的货物信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisGoodsByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除货物信息信息
|
||||||
|
*
|
||||||
|
* @param id 货物信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisGoodsById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,69 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisTransProductService.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 运输产品类型 服务类接口 </p>
|
||||||
|
*/
|
||||||
|
package com.xdadan.erp.emis.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisTransProduct;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ClassName EmisTransProductService
|
||||||
|
* @Description 运输产品类型
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
*/
|
||||||
|
public interface IEmisTransProductService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 主键查询
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public EmisTransProduct selectEmisTransProductById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询运输产品类型列表
|
||||||
|
*
|
||||||
|
* @param emisTransProduct 运输产品类型
|
||||||
|
* @return 运输产品类型集合
|
||||||
|
*/
|
||||||
|
public List<EmisTransProduct> selectEmisTransProductList(EmisTransProduct emisTransProduct);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增运输产品类型
|
||||||
|
*
|
||||||
|
* @param emisTransProduct 运输产品类型
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertEmisTransProduct(EmisTransProduct emisTransProduct);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改运输产品类型
|
||||||
|
*
|
||||||
|
* @param emisTransProduct 运输产品类型
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateEmisTransProduct(EmisTransProduct emisTransProduct);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除运输产品类型
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的运输产品类型主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisTransProductByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除运输产品类型信息
|
||||||
|
*
|
||||||
|
* @param id 运输产品类型主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteEmisTransProductById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisDestinationServiceImpl.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 目的地 实体类 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.emis.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisDestination;
|
||||||
|
import com.xdadan.erp.emis.mapper.EmisDestinationMapper;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisDestinationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 目的地Service业务层处理
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 02:53:35
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EmisDestinationServiceImpl implements IEmisDestinationService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EmisDestinationMapper emisDestinationMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询目的地
|
||||||
|
*
|
||||||
|
* @param id 目的地主键
|
||||||
|
* @return 目的地
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EmisDestination selectEmisDestinationById(Long id)
|
||||||
|
{
|
||||||
|
return emisDestinationMapper.selectEmisDestinationById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询目的地列表
|
||||||
|
*
|
||||||
|
* @param emisDestination 目的地
|
||||||
|
* @return 目的地
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EmisDestination> selectEmisDestinationList(EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
return emisDestinationMapper.selectEmisDestinationList(emisDestination);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增目的地
|
||||||
|
*
|
||||||
|
* @param emisDestination 目的地
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEmisDestination(EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
return emisDestinationMapper.insertEmisDestination(emisDestination);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改目的地
|
||||||
|
*
|
||||||
|
* @param emisDestination 目的地
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEmisDestination(EmisDestination emisDestination)
|
||||||
|
{
|
||||||
|
return emisDestinationMapper.updateEmisDestination(emisDestination);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除目的地
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的目的地主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEmisDestinationByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return emisDestinationMapper.deleteEmisDestinationByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除目的地信息
|
||||||
|
*
|
||||||
|
* @param id 目的地主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEmisDestinationById(Long id)
|
||||||
|
{
|
||||||
|
return emisDestinationMapper.deleteEmisDestinationById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisGoodsServiceImpl.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 货物信息 实体类 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.emis.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisGoods;
|
||||||
|
import com.xdadan.erp.emis.mapper.EmisGoodsMapper;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisGoodsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 货物信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-10 03:59:32
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EmisGoodsServiceImpl implements IEmisGoodsService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EmisGoodsMapper emisGoodsMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询货物信息
|
||||||
|
*
|
||||||
|
* @param id 货物信息主键
|
||||||
|
* @return 货物信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EmisGoods selectEmisGoodsById(Long id)
|
||||||
|
{
|
||||||
|
return emisGoodsMapper.selectEmisGoodsById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询货物信息列表
|
||||||
|
*
|
||||||
|
* @param emisGoods 货物信息
|
||||||
|
* @return 货物信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EmisGoods> selectEmisGoodsList(EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
return emisGoodsMapper.selectEmisGoodsList(emisGoods);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增货物信息
|
||||||
|
*
|
||||||
|
* @param emisGoods 货物信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEmisGoods(EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
return emisGoodsMapper.insertEmisGoods(emisGoods);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改货物信息
|
||||||
|
*
|
||||||
|
* @param emisGoods 货物信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEmisGoods(EmisGoods emisGoods)
|
||||||
|
{
|
||||||
|
return emisGoodsMapper.updateEmisGoods(emisGoods);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除货物信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的货物信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEmisGoodsByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return emisGoodsMapper.deleteEmisGoodsByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除货物信息信息
|
||||||
|
*
|
||||||
|
* @param id 货物信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEmisGoodsById(Long id)
|
||||||
|
{
|
||||||
|
return emisGoodsMapper.deleteEmisGoodsById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,104 @@
|
|||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisTransProductServiceImpl.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 运输产品类型 实体类 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.emis.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.xdadan.erp.emis.domain.EmisTransProduct;
|
||||||
|
import com.xdadan.erp.emis.mapper.EmisTransProductMapper;
|
||||||
|
import com.xdadan.erp.emis.service.IEmisTransProductService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 运输产品类型Service业务层处理
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-01-09 11:50:34
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class EmisTransProductServiceImpl implements IEmisTransProductService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private EmisTransProductMapper emisTransProductMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询运输产品类型
|
||||||
|
*
|
||||||
|
* @param id 运输产品类型主键
|
||||||
|
* @return 运输产品类型
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public EmisTransProduct selectEmisTransProductById(Long id)
|
||||||
|
{
|
||||||
|
return emisTransProductMapper.selectEmisTransProductById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询运输产品类型列表
|
||||||
|
*
|
||||||
|
* @param emisTransProduct 运输产品类型
|
||||||
|
* @return 运输产品类型
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<EmisTransProduct> selectEmisTransProductList(EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
return emisTransProductMapper.selectEmisTransProductList(emisTransProduct);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增运输产品类型
|
||||||
|
*
|
||||||
|
* @param emisTransProduct 运输产品类型
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertEmisTransProduct(EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
return emisTransProductMapper.insertEmisTransProduct(emisTransProduct);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改运输产品类型
|
||||||
|
*
|
||||||
|
* @param emisTransProduct 运输产品类型
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateEmisTransProduct(EmisTransProduct emisTransProduct)
|
||||||
|
{
|
||||||
|
return emisTransProductMapper.updateEmisTransProduct(emisTransProduct);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除运输产品类型
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的运输产品类型主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEmisTransProductByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return emisTransProductMapper.deleteEmisTransProductByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除运输产品类型信息
|
||||||
|
*
|
||||||
|
* @param id 运输产品类型主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteEmisTransProductById(Long id)
|
||||||
|
{
|
||||||
|
return emisTransProductMapper.deleteEmisTransProductById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
156
emis-biz/src/main/resources/mapper/EmisDestinationMapper.xml
Normal file
156
emis-biz/src/main/resources/mapper/EmisDestinationMapper.xml
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
<?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">
|
||||||
|
<mapper namespace="com.xdadan.erp.emis.mapper.EmisDestinationMapper">
|
||||||
|
|
||||||
|
<resultMap type="EmisDestination" id="EmisDestinationResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="destCode" column="dest_code" />
|
||||||
|
<result property="destName" column="dest_name" />
|
||||||
|
<result property="destNameEn" column="dest_name_en" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="country" column="country" />
|
||||||
|
<result property="transLineCode" column="trans_line_code" />
|
||||||
|
<result property="transLine" column="trans_line" />
|
||||||
|
<result property="siteCode" column="site_code" />
|
||||||
|
<result property="siteName" column="site_name" />
|
||||||
|
<result property="province" column="province" />
|
||||||
|
<result property="city" column="city" />
|
||||||
|
<result property="county" column="county" />
|
||||||
|
<result property="town" column="town" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="tenantId" column="tenant_id" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEmisDestinationVo">
|
||||||
|
select id, dest_code, dest_name, dest_name_en, status, country, trans_line_code, trans_line, site_code, site_name, province, city, county, town, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_destination
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEmisDestinationList" parameterType="EmisDestination" resultMap="EmisDestinationResult">
|
||||||
|
<include refid="selectEmisDestinationVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="id != null "> and id = #{id}</if>
|
||||||
|
<if test="destCode != null and destCode != ''"> and dest_code like concat('%', #{destCode}, '%')</if>
|
||||||
|
<if test="destName != null and destName != ''"> and dest_name like concat('%', #{destName}, '%')</if>
|
||||||
|
<if test="destNameEn != null and destNameEn != ''"> and dest_name_en like concat('%', #{destNameEn}, '%')</if>
|
||||||
|
<if test="status != null "> and status = #{status}</if>
|
||||||
|
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code like concat('%', #{transLineCode}, '%')</if>
|
||||||
|
<if test="transLine != null and transLine != ''"> and trans_line like concat('%', #{transLine}, '%')</if>
|
||||||
|
<if test="siteCode != null and siteCode != ''"> and site_code like concat('%', #{siteCode}, '%')</if>
|
||||||
|
<if test="siteName != null and siteName != ''"> and site_name like concat('%', #{siteName}, '%')</if>
|
||||||
|
<if test="province != null and province != ''"> and province like concat('%', #{province}, '%')</if>
|
||||||
|
<if test="city != null and city != ''"> and city like concat('%', #{city}, '%')</if>
|
||||||
|
<if test="county != null and county != ''"> and county like concat('%', #{county}, '%')</if>
|
||||||
|
<if test="town != null and town != ''"> and town like concat('%', #{town}, '%')</if>
|
||||||
|
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||||
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||||
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||||
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||||
|
</where>
|
||||||
|
order by create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEmisDestinationById" parameterType="Long" resultMap="EmisDestinationResult">
|
||||||
|
select id, dest_code, dest_name, dest_name_en, status, country, trans_line_code, trans_line, site_code, site_name, province, city, county, town, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||||
|
from emis_destination a
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEmisDestination" parameterType="EmisDestination">
|
||||||
|
insert into emis_destination
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="destCode != null and destCode != ''">dest_code,</if>
|
||||||
|
<if test="destName != null and destName != ''">dest_name,</if>
|
||||||
|
<if test="destNameEn != null and destNameEn != ''">dest_name_en,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="country != null and country != ''">country,</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''">trans_line_code,</if>
|
||||||
|
<if test="transLine != null and transLine != ''">trans_line,</if>
|
||||||
|
<if test="siteCode != null and siteCode != ''">site_code,</if>
|
||||||
|
<if test="siteName != null and siteName != ''">site_name,</if>
|
||||||
|
<if test="province != null and province != ''">province,</if>
|
||||||
|
<if test="city != null and city != ''">city,</if>
|
||||||
|
<if test="county != null and county != ''">county,</if>
|
||||||
|
<if test="town != null and town != ''">town,</if>
|
||||||
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<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 prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="destCode != null and destCode != ''">#{destCode},</if>
|
||||||
|
<if test="destName != null and destName != ''">#{destName},</if>
|
||||||
|
<if test="destNameEn != null and destNameEn != ''">#{destNameEn},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="country != null and country != ''">#{country},</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''">#{transLineCode},</if>
|
||||||
|
<if test="transLine != null and transLine != ''">#{transLine},</if>
|
||||||
|
<if test="siteCode != null and siteCode != ''">#{siteCode},</if>
|
||||||
|
<if test="siteName != null and siteName != ''">#{siteName},</if>
|
||||||
|
<if test="province != null and province != ''">#{province},</if>
|
||||||
|
<if test="city != null and city != ''">#{city},</if>
|
||||||
|
<if test="county != null and county != ''">#{county},</if>
|
||||||
|
<if test="town != null and town != ''">#{town},</if>
|
||||||
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEmisDestination" parameterType="EmisDestination">
|
||||||
|
update emis_destination
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="destCode != null and destCode != ''">dest_code = #{destCode},</if>
|
||||||
|
<if test="destName != null and destName != ''">dest_name = #{destName},</if>
|
||||||
|
<if test="destNameEn != null and destNameEn != ''">dest_name_en = #{destNameEn},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="country != null and country != ''">country = #{country},</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''">trans_line_code = #{transLineCode},</if>
|
||||||
|
<if test="transLine != null and transLine != ''">trans_line = #{transLine},</if>
|
||||||
|
<if test="siteCode != null and siteCode != ''">site_code = #{siteCode},</if>
|
||||||
|
<if test="siteName != null and siteName != ''">site_name = #{siteName},</if>
|
||||||
|
<if test="province != null and province != ''">province = #{province},</if>
|
||||||
|
<if test="city != null and city != ''">city = #{city},</if>
|
||||||
|
<if test="county != null and county != ''">county = #{county},</if>
|
||||||
|
<if test="town != null and town != ''">town = #{town},</if>
|
||||||
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEmisDestinationById" parameterType="Long">
|
||||||
|
delete from emis_destination where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEmisDestinationByIds" parameterType="String">
|
||||||
|
delete from emis_destination where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
366
emis-biz/src/main/resources/mapper/EmisGoodsMapper.xml
Normal file
366
emis-biz/src/main/resources/mapper/EmisGoodsMapper.xml
Normal file
@ -0,0 +1,366 @@
|
|||||||
|
<?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">
|
||||||
|
<mapper namespace="com.xdadan.erp.emis.mapper.EmisGoodsMapper">
|
||||||
|
|
||||||
|
<resultMap type="EmisGoods" id="EmisGoodsResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="goodsSn" column="goods_sn" />
|
||||||
|
<result property="goodsName" column="goods_name" />
|
||||||
|
<result property="goodsNameEn" column="goods_name_en" />
|
||||||
|
<result property="goodsCat" column="goods_cat" />
|
||||||
|
<result property="goodsType" column="goods_type" />
|
||||||
|
<result property="goodsModel" column="goods_model" />
|
||||||
|
<result property="barcode" column="barcode" />
|
||||||
|
<result property="orginalNation" column="orginal_nation" />
|
||||||
|
<result property="isRealGoods" column="is_real_goods" />
|
||||||
|
<result property="isBigCat" column="is_big_cat" />
|
||||||
|
<result property="brandId" column="brand_id" />
|
||||||
|
<result property="brand" column="brand" />
|
||||||
|
<result property="netWeight" column="net_weight" />
|
||||||
|
<result property="grossWeight" column="gross_weight" />
|
||||||
|
<result property="singleVolume" column="single_volume" />
|
||||||
|
<result property="singleLength" column="single_length" />
|
||||||
|
<result property="singleWidth" column="single_width" />
|
||||||
|
<result property="singleHeight" column="single_height" />
|
||||||
|
<result property="pkgPcs" column="pkg_pcs" />
|
||||||
|
<result property="pkgVolume" column="pkg_volume" />
|
||||||
|
<result property="pkgLength" column="pkg_length" />
|
||||||
|
<result property="pkgWidth" column="pkg_width" />
|
||||||
|
<result property="pkgHeight" column="pkg_height" />
|
||||||
|
<result property="hsCode" column="hs_code" />
|
||||||
|
<result property="isCode" column="is_code" />
|
||||||
|
<result property="unit" column="unit" />
|
||||||
|
<result property="unit1" column="unit1" />
|
||||||
|
<result property="unit2" column="unit2" />
|
||||||
|
<result property="price" column="price" />
|
||||||
|
<result property="currencyType" column="currency_type" />
|
||||||
|
<result property="ruleNation" column="rule_nation" />
|
||||||
|
<result property="manufEnterprise" column="manuf_enterprise" />
|
||||||
|
<result property="ebcCode" column="ebc_code" />
|
||||||
|
<result property="ciqCode" column="ciq_code" />
|
||||||
|
<result property="function" column="function" />
|
||||||
|
<result property="ingredients" column="ingredients" />
|
||||||
|
<result property="purpose" column="purpose" />
|
||||||
|
<result property="productValidity" column="product_validity" />
|
||||||
|
<result property="cebpMode" column="cebp_mode" />
|
||||||
|
<result property="supplier" column="supplier" />
|
||||||
|
<result property="serialNumber" column="serial_number" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="statusMessage" column="status_message" />
|
||||||
|
<result property="goodsSn2" column="goods_sn2" />
|
||||||
|
<result property="goodsNo2" column="goods_no2" />
|
||||||
|
<result property="licNo" column="lic_no" />
|
||||||
|
<result property="materialPath" column="material_path" />
|
||||||
|
<result property="pd" column="pd" />
|
||||||
|
<result property="saleUrl" column="sale_url" />
|
||||||
|
<result property="portCode" column="port_code" />
|
||||||
|
<result property="ext1" column="ext1" />
|
||||||
|
<result property="ext2" column="ext2" />
|
||||||
|
<result property="ext3" column="ext3" />
|
||||||
|
<result property="ext4" column="ext4" />
|
||||||
|
<result property="ext5" column="ext5" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="tenantId" column="tenant_id" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEmisGoodsVo">
|
||||||
|
select id, goods_sn, goods_name, goods_name_en, goods_cat, goods_type, goods_model, barcode, orginal_nation, is_real_goods, is_big_cat, brand_id, brand, net_weight, gross_weight, single_volume, single_length, single_width, single_height, pkg_pcs, pkg_volume, pkg_length, pkg_width, pkg_height, hs_code, is_code, unit, unit1, unit2, price, currency_type, rule_nation, manuf_enterprise, ebc_code, ciq_code, function, ingredients, purpose, product_validity, cebp_mode, supplier, serial_number, status, status_message, goods_sn2, goods_no2, lic_no, material_path, pd, sale_url, port_code, ext1, ext2, ext3, ext4, ext5, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_goods
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEmisGoodsList" parameterType="EmisGoods" resultMap="EmisGoodsResult">
|
||||||
|
<include refid="selectEmisGoodsVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="id != null "> and id = #{id}</if>
|
||||||
|
<if test="goodsSn != null and goodsSn != ''"> and goods_sn like concat('%', #{goodsSn}, '%')</if>
|
||||||
|
<if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if>
|
||||||
|
<if test="goodsNameEn != null and goodsNameEn != ''"> and goods_name_en like concat('%', #{goodsNameEn}, '%')</if>
|
||||||
|
<if test="goodsCat != null and goodsCat != ''"> and goods_cat like concat('%', #{goodsCat}, '%')</if>
|
||||||
|
<if test="goodsType != null and goodsType != ''"> and goods_type like concat('%', #{goodsType}, '%')</if>
|
||||||
|
<if test="goodsModel != null and goodsModel != ''"> and goods_model like concat('%', #{goodsModel}, '%')</if>
|
||||||
|
<if test="barcode != null and barcode != ''"> and barcode like concat('%', #{barcode}, '%')</if>
|
||||||
|
<if test="orginalNation != null and orginalNation != ''"> and orginal_nation like concat('%', #{orginalNation}, '%')</if>
|
||||||
|
<if test="isRealGoods != null "> and is_real_goods = #{isRealGoods}</if>
|
||||||
|
<if test="isBigCat != null "> and is_big_cat = #{isBigCat}</if>
|
||||||
|
<if test="brandId != null and brandId != ''"> and brand_id like concat('%', #{brandId}, '%')</if>
|
||||||
|
<if test="brand != null and brand != ''"> and brand like concat('%', #{brand}, '%')</if>
|
||||||
|
<if test="netWeight != null and netWeight != ''"> and net_weight like concat('%', #{netWeight}, '%')</if>
|
||||||
|
<if test="grossWeight != null and grossWeight != ''"> and gross_weight like concat('%', #{grossWeight}, '%')</if>
|
||||||
|
<if test="singleVolume != null and singleVolume != ''"> and single_volume like concat('%', #{singleVolume}, '%')</if>
|
||||||
|
<if test="singleLength != null "> and single_length = #{singleLength}</if>
|
||||||
|
<if test="singleWidth != null "> and single_width = #{singleWidth}</if>
|
||||||
|
<if test="singleHeight != null "> and single_height = #{singleHeight}</if>
|
||||||
|
<if test="pkgPcs != null "> and pkg_pcs = #{pkgPcs}</if>
|
||||||
|
<if test="pkgVolume != null and pkgVolume != ''"> and pkg_volume like concat('%', #{pkgVolume}, '%')</if>
|
||||||
|
<if test="pkgLength != null "> and pkg_length = #{pkgLength}</if>
|
||||||
|
<if test="pkgWidth != null "> and pkg_width = #{pkgWidth}</if>
|
||||||
|
<if test="pkgHeight != null "> and pkg_height = #{pkgHeight}</if>
|
||||||
|
<if test="hsCode != null and hsCode != ''"> and hs_code like concat('%', #{hsCode}, '%')</if>
|
||||||
|
<if test="isCode != null and isCode != ''"> and is_code like concat('%', #{isCode}, '%')</if>
|
||||||
|
<if test="unit != null and unit != ''"> and unit like concat('%', #{unit}, '%')</if>
|
||||||
|
<if test="unit1 != null and unit1 != ''"> and unit1 like concat('%', #{unit1}, '%')</if>
|
||||||
|
<if test="unit2 != null and unit2 != ''"> and unit2 like concat('%', #{unit2}, '%')</if>
|
||||||
|
<if test="price != null and price != ''"> and price like concat('%', #{price}, '%')</if>
|
||||||
|
<if test="currencyType != null and currencyType != ''"> and currency_type like concat('%', #{currencyType}, '%')</if>
|
||||||
|
<if test="ruleNation != null and ruleNation != ''"> and rule_nation like concat('%', #{ruleNation}, '%')</if>
|
||||||
|
<if test="manufEnterprise != null and manufEnterprise != ''"> and manuf_enterprise like concat('%', #{manufEnterprise}, '%')</if>
|
||||||
|
<if test="ebcCode != null and ebcCode != ''"> and ebc_code like concat('%', #{ebcCode}, '%')</if>
|
||||||
|
<if test="ciqCode != null and ciqCode != ''"> and ciq_code like concat('%', #{ciqCode}, '%')</if>
|
||||||
|
<if test="function != null and function != ''"> and function like concat('%', #{function}, '%')</if>
|
||||||
|
<if test="ingredients != null and ingredients != ''"> and ingredients like concat('%', #{ingredients}, '%')</if>
|
||||||
|
<if test="purpose != null and purpose != ''"> and purpose like concat('%', #{purpose}, '%')</if>
|
||||||
|
<if test="productValidity != null and productValidity != ''"> and product_validity like concat('%', #{productValidity}, '%')</if>
|
||||||
|
<if test="cebpMode != null and cebpMode != ''"> and cebp_mode like concat('%', #{cebpMode}, '%')</if>
|
||||||
|
<if test="supplier != null and supplier != ''"> and supplier like concat('%', #{supplier}, '%')</if>
|
||||||
|
<if test="serialNumber != null and serialNumber != ''"> and serial_number like concat('%', #{serialNumber}, '%')</if>
|
||||||
|
<if test="status != null "> and status = #{status}</if>
|
||||||
|
<if test="statusMessage != null and statusMessage != ''"> and status_message like concat('%', #{statusMessage}, '%')</if>
|
||||||
|
<if test="goodsSn2 != null and goodsSn2 != ''"> and goods_sn2 like concat('%', #{goodsSn2}, '%')</if>
|
||||||
|
<if test="goodsNo2 != null and goodsNo2 != ''"> and goods_no2 like concat('%', #{goodsNo2}, '%')</if>
|
||||||
|
<if test="licNo != null and licNo != ''"> and lic_no like concat('%', #{licNo}, '%')</if>
|
||||||
|
<if test="materialPath != null and materialPath != ''"> and material_path like concat('%', #{materialPath}, '%')</if>
|
||||||
|
<if test="pd != null and pd != ''"> and pd like concat('%', #{pd}, '%')</if>
|
||||||
|
<if test="saleUrl != null and saleUrl != ''"> and sale_url like concat('%', #{saleUrl}, '%')</if>
|
||||||
|
<if test="portCode != null and portCode != ''"> and port_code like concat('%', #{portCode}, '%')</if>
|
||||||
|
<if test="ext1 != null and ext1 != ''"> and ext1 like concat('%', #{ext1}, '%')</if>
|
||||||
|
<if test="ext2 != null and ext2 != ''"> and ext2 like concat('%', #{ext2}, '%')</if>
|
||||||
|
<if test="ext3 != null and ext3 != ''"> and ext3 like concat('%', #{ext3}, '%')</if>
|
||||||
|
<if test="ext4 != null and ext4 != ''"> and ext4 like concat('%', #{ext4}, '%')</if>
|
||||||
|
<if test="ext5 != null and ext5 != ''"> and ext5 like concat('%', #{ext5}, '%')</if>
|
||||||
|
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||||
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||||
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||||
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||||
|
</where>
|
||||||
|
order by create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEmisGoodsById" parameterType="Long" resultMap="EmisGoodsResult">
|
||||||
|
select id, goods_sn, goods_name, goods_name_en, goods_cat, goods_type, goods_model, barcode, orginal_nation, is_real_goods, is_big_cat, brand_id, brand, net_weight, gross_weight, single_volume, single_length, single_width, single_height, pkg_pcs, pkg_volume, pkg_length, pkg_width, pkg_height, hs_code, is_code, unit, unit1, unit2, price, currency_type, rule_nation, manuf_enterprise, ebc_code, ciq_code, function, ingredients, purpose, product_validity, cebp_mode, supplier, serial_number, status, status_message, goods_sn2, goods_no2, lic_no, material_path, pd, sale_url, port_code, ext1, ext2, ext3, ext4, ext5, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||||
|
from emis_goods a
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEmisGoods" parameterType="EmisGoods">
|
||||||
|
insert into emis_goods
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="goodsSn != null and goodsSn != ''">goods_sn,</if>
|
||||||
|
<if test="goodsName != null and goodsName != ''">goods_name,</if>
|
||||||
|
<if test="goodsNameEn != null and goodsNameEn != ''">goods_name_en,</if>
|
||||||
|
<if test="goodsCat != null and goodsCat != ''">goods_cat,</if>
|
||||||
|
<if test="goodsType != null and goodsType != ''">goods_type,</if>
|
||||||
|
<if test="goodsModel != null and goodsModel != ''">goods_model,</if>
|
||||||
|
<if test="barcode != null and barcode != ''">barcode,</if>
|
||||||
|
<if test="orginalNation != null and orginalNation != ''">orginal_nation,</if>
|
||||||
|
<if test="isRealGoods != null">is_real_goods,</if>
|
||||||
|
<if test="isBigCat != null">is_big_cat,</if>
|
||||||
|
<if test="brandId != null and brandId != ''">brand_id,</if>
|
||||||
|
<if test="brand != null and brand != ''">brand,</if>
|
||||||
|
<if test="netWeight != null and netWeight != ''">net_weight,</if>
|
||||||
|
<if test="grossWeight != null and grossWeight != ''">gross_weight,</if>
|
||||||
|
<if test="singleVolume != null and singleVolume != ''">single_volume,</if>
|
||||||
|
<if test="singleLength != null">single_length,</if>
|
||||||
|
<if test="singleWidth != null">single_width,</if>
|
||||||
|
<if test="singleHeight != null">single_height,</if>
|
||||||
|
<if test="pkgPcs != null">pkg_pcs,</if>
|
||||||
|
<if test="pkgVolume != null and pkgVolume != ''">pkg_volume,</if>
|
||||||
|
<if test="pkgLength != null">pkg_length,</if>
|
||||||
|
<if test="pkgWidth != null">pkg_width,</if>
|
||||||
|
<if test="pkgHeight != null">pkg_height,</if>
|
||||||
|
<if test="hsCode != null and hsCode != ''">hs_code,</if>
|
||||||
|
<if test="isCode != null and isCode != ''">is_code,</if>
|
||||||
|
<if test="unit != null and unit != ''">unit,</if>
|
||||||
|
<if test="unit1 != null and unit1 != ''">unit1,</if>
|
||||||
|
<if test="unit2 != null and unit2 != ''">unit2,</if>
|
||||||
|
<if test="price != null and price != ''">price,</if>
|
||||||
|
<if test="currencyType != null and currencyType != ''">currency_type,</if>
|
||||||
|
<if test="ruleNation != null and ruleNation != ''">rule_nation,</if>
|
||||||
|
<if test="manufEnterprise != null and manufEnterprise != ''">manuf_enterprise,</if>
|
||||||
|
<if test="ebcCode != null and ebcCode != ''">ebc_code,</if>
|
||||||
|
<if test="ciqCode != null and ciqCode != ''">ciq_code,</if>
|
||||||
|
<if test="function != null and function != ''">function,</if>
|
||||||
|
<if test="ingredients != null and ingredients != ''">ingredients,</if>
|
||||||
|
<if test="purpose != null and purpose != ''">purpose,</if>
|
||||||
|
<if test="productValidity != null and productValidity != ''">product_validity,</if>
|
||||||
|
<if test="cebpMode != null and cebpMode != ''">cebp_mode,</if>
|
||||||
|
<if test="supplier != null and supplier != ''">supplier,</if>
|
||||||
|
<if test="serialNumber != null and serialNumber != ''">serial_number,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="statusMessage != null and statusMessage != ''">status_message,</if>
|
||||||
|
<if test="goodsSn2 != null and goodsSn2 != ''">goods_sn2,</if>
|
||||||
|
<if test="goodsNo2 != null and goodsNo2 != ''">goods_no2,</if>
|
||||||
|
<if test="licNo != null and licNo != ''">lic_no,</if>
|
||||||
|
<if test="materialPath != null and materialPath != ''">material_path,</if>
|
||||||
|
<if test="pd != null and pd != ''">pd,</if>
|
||||||
|
<if test="saleUrl != null and saleUrl != ''">sale_url,</if>
|
||||||
|
<if test="portCode != null and portCode != ''">port_code,</if>
|
||||||
|
<if test="ext1 != null and ext1 != ''">ext1,</if>
|
||||||
|
<if test="ext2 != null and ext2 != ''">ext2,</if>
|
||||||
|
<if test="ext3 != null and ext3 != ''">ext3,</if>
|
||||||
|
<if test="ext4 != null and ext4 != ''">ext4,</if>
|
||||||
|
<if test="ext5 != null and ext5 != ''">ext5,</if>
|
||||||
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<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 prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="goodsSn != null and goodsSn != ''">#{goodsSn},</if>
|
||||||
|
<if test="goodsName != null and goodsName != ''">#{goodsName},</if>
|
||||||
|
<if test="goodsNameEn != null and goodsNameEn != ''">#{goodsNameEn},</if>
|
||||||
|
<if test="goodsCat != null and goodsCat != ''">#{goodsCat},</if>
|
||||||
|
<if test="goodsType != null and goodsType != ''">#{goodsType},</if>
|
||||||
|
<if test="goodsModel != null and goodsModel != ''">#{goodsModel},</if>
|
||||||
|
<if test="barcode != null and barcode != ''">#{barcode},</if>
|
||||||
|
<if test="orginalNation != null and orginalNation != ''">#{orginalNation},</if>
|
||||||
|
<if test="isRealGoods != null">#{isRealGoods},</if>
|
||||||
|
<if test="isBigCat != null">#{isBigCat},</if>
|
||||||
|
<if test="brandId != null and brandId != ''">#{brandId},</if>
|
||||||
|
<if test="brand != null and brand != ''">#{brand},</if>
|
||||||
|
<if test="netWeight != null and netWeight != ''">#{netWeight},</if>
|
||||||
|
<if test="grossWeight != null and grossWeight != ''">#{grossWeight},</if>
|
||||||
|
<if test="singleVolume != null and singleVolume != ''">#{singleVolume},</if>
|
||||||
|
<if test="singleLength != null">#{singleLength},</if>
|
||||||
|
<if test="singleWidth != null">#{singleWidth},</if>
|
||||||
|
<if test="singleHeight != null">#{singleHeight},</if>
|
||||||
|
<if test="pkgPcs != null">#{pkgPcs},</if>
|
||||||
|
<if test="pkgVolume != null and pkgVolume != ''">#{pkgVolume},</if>
|
||||||
|
<if test="pkgLength != null">#{pkgLength},</if>
|
||||||
|
<if test="pkgWidth != null">#{pkgWidth},</if>
|
||||||
|
<if test="pkgHeight != null">#{pkgHeight},</if>
|
||||||
|
<if test="hsCode != null and hsCode != ''">#{hsCode},</if>
|
||||||
|
<if test="isCode != null and isCode != ''">#{isCode},</if>
|
||||||
|
<if test="unit != null and unit != ''">#{unit},</if>
|
||||||
|
<if test="unit1 != null and unit1 != ''">#{unit1},</if>
|
||||||
|
<if test="unit2 != null and unit2 != ''">#{unit2},</if>
|
||||||
|
<if test="price != null and price != ''">#{price},</if>
|
||||||
|
<if test="currencyType != null and currencyType != ''">#{currencyType},</if>
|
||||||
|
<if test="ruleNation != null and ruleNation != ''">#{ruleNation},</if>
|
||||||
|
<if test="manufEnterprise != null and manufEnterprise != ''">#{manufEnterprise},</if>
|
||||||
|
<if test="ebcCode != null and ebcCode != ''">#{ebcCode},</if>
|
||||||
|
<if test="ciqCode != null and ciqCode != ''">#{ciqCode},</if>
|
||||||
|
<if test="function != null and function != ''">#{function},</if>
|
||||||
|
<if test="ingredients != null and ingredients != ''">#{ingredients},</if>
|
||||||
|
<if test="purpose != null and purpose != ''">#{purpose},</if>
|
||||||
|
<if test="productValidity != null and productValidity != ''">#{productValidity},</if>
|
||||||
|
<if test="cebpMode != null and cebpMode != ''">#{cebpMode},</if>
|
||||||
|
<if test="supplier != null and supplier != ''">#{supplier},</if>
|
||||||
|
<if test="serialNumber != null and serialNumber != ''">#{serialNumber},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="statusMessage != null and statusMessage != ''">#{statusMessage},</if>
|
||||||
|
<if test="goodsSn2 != null and goodsSn2 != ''">#{goodsSn2},</if>
|
||||||
|
<if test="goodsNo2 != null and goodsNo2 != ''">#{goodsNo2},</if>
|
||||||
|
<if test="licNo != null and licNo != ''">#{licNo},</if>
|
||||||
|
<if test="materialPath != null and materialPath != ''">#{materialPath},</if>
|
||||||
|
<if test="pd != null and pd != ''">#{pd},</if>
|
||||||
|
<if test="saleUrl != null and saleUrl != ''">#{saleUrl},</if>
|
||||||
|
<if test="portCode != null and portCode != ''">#{portCode},</if>
|
||||||
|
<if test="ext1 != null and ext1 != ''">#{ext1},</if>
|
||||||
|
<if test="ext2 != null and ext2 != ''">#{ext2},</if>
|
||||||
|
<if test="ext3 != null and ext3 != ''">#{ext3},</if>
|
||||||
|
<if test="ext4 != null and ext4 != ''">#{ext4},</if>
|
||||||
|
<if test="ext5 != null and ext5 != ''">#{ext5},</if>
|
||||||
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEmisGoods" parameterType="EmisGoods">
|
||||||
|
update emis_goods
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="goodsSn != null and goodsSn != ''">goods_sn = #{goodsSn},</if>
|
||||||
|
<if test="goodsName != null and goodsName != ''">goods_name = #{goodsName},</if>
|
||||||
|
<if test="goodsNameEn != null and goodsNameEn != ''">goods_name_en = #{goodsNameEn},</if>
|
||||||
|
<if test="goodsCat != null and goodsCat != ''">goods_cat = #{goodsCat},</if>
|
||||||
|
<if test="goodsType != null and goodsType != ''">goods_type = #{goodsType},</if>
|
||||||
|
<if test="goodsModel != null and goodsModel != ''">goods_model = #{goodsModel},</if>
|
||||||
|
<if test="barcode != null and barcode != ''">barcode = #{barcode},</if>
|
||||||
|
<if test="orginalNation != null and orginalNation != ''">orginal_nation = #{orginalNation},</if>
|
||||||
|
<if test="isRealGoods != null">is_real_goods = #{isRealGoods},</if>
|
||||||
|
<if test="isBigCat != null">is_big_cat = #{isBigCat},</if>
|
||||||
|
<if test="brandId != null and brandId != ''">brand_id = #{brandId},</if>
|
||||||
|
<if test="brand != null and brand != ''">brand = #{brand},</if>
|
||||||
|
<if test="netWeight != null and netWeight != ''">net_weight = #{netWeight},</if>
|
||||||
|
<if test="grossWeight != null and grossWeight != ''">gross_weight = #{grossWeight},</if>
|
||||||
|
<if test="singleVolume != null and singleVolume != ''">single_volume = #{singleVolume},</if>
|
||||||
|
<if test="singleLength != null">single_length = #{singleLength},</if>
|
||||||
|
<if test="singleWidth != null">single_width = #{singleWidth},</if>
|
||||||
|
<if test="singleHeight != null">single_height = #{singleHeight},</if>
|
||||||
|
<if test="pkgPcs != null">pkg_pcs = #{pkgPcs},</if>
|
||||||
|
<if test="pkgVolume != null and pkgVolume != ''">pkg_volume = #{pkgVolume},</if>
|
||||||
|
<if test="pkgLength != null">pkg_length = #{pkgLength},</if>
|
||||||
|
<if test="pkgWidth != null">pkg_width = #{pkgWidth},</if>
|
||||||
|
<if test="pkgHeight != null">pkg_height = #{pkgHeight},</if>
|
||||||
|
<if test="hsCode != null and hsCode != ''">hs_code = #{hsCode},</if>
|
||||||
|
<if test="isCode != null and isCode != ''">is_code = #{isCode},</if>
|
||||||
|
<if test="unit != null and unit != ''">unit = #{unit},</if>
|
||||||
|
<if test="unit1 != null and unit1 != ''">unit1 = #{unit1},</if>
|
||||||
|
<if test="unit2 != null and unit2 != ''">unit2 = #{unit2},</if>
|
||||||
|
<if test="price != null and price != ''">price = #{price},</if>
|
||||||
|
<if test="currencyType != null and currencyType != ''">currency_type = #{currencyType},</if>
|
||||||
|
<if test="ruleNation != null and ruleNation != ''">rule_nation = #{ruleNation},</if>
|
||||||
|
<if test="manufEnterprise != null and manufEnterprise != ''">manuf_enterprise = #{manufEnterprise},</if>
|
||||||
|
<if test="ebcCode != null and ebcCode != ''">ebc_code = #{ebcCode},</if>
|
||||||
|
<if test="ciqCode != null and ciqCode != ''">ciq_code = #{ciqCode},</if>
|
||||||
|
<if test="function != null and function != ''">function = #{function},</if>
|
||||||
|
<if test="ingredients != null and ingredients != ''">ingredients = #{ingredients},</if>
|
||||||
|
<if test="purpose != null and purpose != ''">purpose = #{purpose},</if>
|
||||||
|
<if test="productValidity != null and productValidity != ''">product_validity = #{productValidity},</if>
|
||||||
|
<if test="cebpMode != null and cebpMode != ''">cebp_mode = #{cebpMode},</if>
|
||||||
|
<if test="supplier != null and supplier != ''">supplier = #{supplier},</if>
|
||||||
|
<if test="serialNumber != null and serialNumber != ''">serial_number = #{serialNumber},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="statusMessage != null and statusMessage != ''">status_message = #{statusMessage},</if>
|
||||||
|
<if test="goodsSn2 != null and goodsSn2 != ''">goods_sn2 = #{goodsSn2},</if>
|
||||||
|
<if test="goodsNo2 != null and goodsNo2 != ''">goods_no2 = #{goodsNo2},</if>
|
||||||
|
<if test="licNo != null and licNo != ''">lic_no = #{licNo},</if>
|
||||||
|
<if test="materialPath != null and materialPath != ''">material_path = #{materialPath},</if>
|
||||||
|
<if test="pd != null and pd != ''">pd = #{pd},</if>
|
||||||
|
<if test="saleUrl != null and saleUrl != ''">sale_url = #{saleUrl},</if>
|
||||||
|
<if test="portCode != null and portCode != ''">port_code = #{portCode},</if>
|
||||||
|
<if test="ext1 != null and ext1 != ''">ext1 = #{ext1},</if>
|
||||||
|
<if test="ext2 != null and ext2 != ''">ext2 = #{ext2},</if>
|
||||||
|
<if test="ext3 != null and ext3 != ''">ext3 = #{ext3},</if>
|
||||||
|
<if test="ext4 != null and ext4 != ''">ext4 = #{ext4},</if>
|
||||||
|
<if test="ext5 != null and ext5 != ''">ext5 = #{ext5},</if>
|
||||||
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEmisGoodsById" parameterType="Long">
|
||||||
|
delete from emis_goods where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEmisGoodsByIds" parameterType="String">
|
||||||
|
delete from emis_goods where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
151
emis-biz/src/main/resources/mapper/EmisTransProductMapper.xml
Normal file
151
emis-biz/src/main/resources/mapper/EmisTransProductMapper.xml
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
<?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">
|
||||||
|
<mapper namespace="com.xdadan.erp.emis.mapper.EmisTransProductMapper">
|
||||||
|
|
||||||
|
<resultMap type="EmisTransProduct" id="EmisTransProductResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="prodCode" column="prod_code" />
|
||||||
|
<result property="prodName" column="prod_name" />
|
||||||
|
<result property="prodNameEn" column="prod_name_en" />
|
||||||
|
<result property="status" column="status" />
|
||||||
|
<result property="country" column="country" />
|
||||||
|
<result property="transLineCode" column="trans_line_code" />
|
||||||
|
<result property="transLine" column="trans_line" />
|
||||||
|
<result property="carryType" column="carry_type" />
|
||||||
|
<result property="transType" column="trans_type" />
|
||||||
|
<result property="agingDesc" column="aging_desc" />
|
||||||
|
<result property="minAging" column="min_aging" />
|
||||||
|
<result property="maxAging" column="max_aging" />
|
||||||
|
<result property="remark" column="remark" />
|
||||||
|
<result property="tenantId" column="tenant_id" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectEmisTransProductVo">
|
||||||
|
select id, prod_code, prod_name, prod_name_en, status, country, trans_line_code, trans_line, carry_type, trans_type, aging_desc, min_aging, max_aging, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_trans_product
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectEmisTransProductList" parameterType="EmisTransProduct" resultMap="EmisTransProductResult">
|
||||||
|
<include refid="selectEmisTransProductVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="id != null "> and id = #{id}</if>
|
||||||
|
<if test="prodCode != null and prodCode != ''"> and prod_code like concat('%', #{prodCode}, '%')</if>
|
||||||
|
<if test="prodName != null and prodName != ''"> and prod_name like concat('%', #{prodName}, '%')</if>
|
||||||
|
<if test="prodNameEn != null and prodNameEn != ''"> and prod_name_en like concat('%', #{prodNameEn}, '%')</if>
|
||||||
|
<if test="status != null "> and status = #{status}</if>
|
||||||
|
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''"> and trans_line_code like concat('%', #{transLineCode}, '%')</if>
|
||||||
|
<if test="transLine != null and transLine != ''"> and trans_line like concat('%', #{transLine}, '%')</if>
|
||||||
|
<if test="carryType != null and carryType != ''"> and carry_type like concat('%', #{carryType}, '%')</if>
|
||||||
|
<if test="transType != null and transType != ''"> and trans_type like concat('%', #{transType}, '%')</if>
|
||||||
|
<if test="agingDesc != null and agingDesc != ''"> and aging_desc like concat('%', #{agingDesc}, '%')</if>
|
||||||
|
<if test="minAging != null "> and min_aging = #{minAging}</if>
|
||||||
|
<if test="maxAging != null "> and max_aging = #{maxAging}</if>
|
||||||
|
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''"> and del_flag like concat('%', #{delFlag}, '%')</if>
|
||||||
|
<if test="createBy != null and createBy != ''"> and create_by like concat('%', #{createBy}, '%')</if>
|
||||||
|
<if test="createTime != null "> and create_time = #{createTime}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and update_by like concat('%', #{updateBy}, '%')</if>
|
||||||
|
<if test="updateTime != null "> and update_time = #{updateTime}</if>
|
||||||
|
</where>
|
||||||
|
order by create_time desc
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectEmisTransProductById" parameterType="Long" resultMap="EmisTransProductResult">
|
||||||
|
select id, prod_code, prod_name, prod_name_en, status, country, trans_line_code, trans_line, carry_type, trans_type, aging_desc, min_aging, max_aging, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
|
||||||
|
from emis_trans_product a
|
||||||
|
where a.id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertEmisTransProduct" parameterType="EmisTransProduct">
|
||||||
|
insert into emis_trans_product
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="prodCode != null and prodCode != ''">prod_code,</if>
|
||||||
|
<if test="prodName != null and prodName != ''">prod_name,</if>
|
||||||
|
<if test="prodNameEn != null and prodNameEn != ''">prod_name_en,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="country != null and country != ''">country,</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''">trans_line_code,</if>
|
||||||
|
<if test="transLine != null and transLine != ''">trans_line,</if>
|
||||||
|
<if test="carryType != null and carryType != ''">carry_type,</if>
|
||||||
|
<if test="transType != null and transType != ''">trans_type,</if>
|
||||||
|
<if test="agingDesc != null and agingDesc != ''">aging_desc,</if>
|
||||||
|
<if test="minAging != null">min_aging,</if>
|
||||||
|
<if test="maxAging != null">max_aging,</if>
|
||||||
|
<if test="remark != null and remark != ''">remark,</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">tenant_id,</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<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 prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="prodCode != null and prodCode != ''">#{prodCode},</if>
|
||||||
|
<if test="prodName != null and prodName != ''">#{prodName},</if>
|
||||||
|
<if test="prodNameEn != null and prodNameEn != ''">#{prodNameEn},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="country != null and country != ''">#{country},</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''">#{transLineCode},</if>
|
||||||
|
<if test="transLine != null and transLine != ''">#{transLine},</if>
|
||||||
|
<if test="carryType != null and carryType != ''">#{carryType},</if>
|
||||||
|
<if test="transType != null and transType != ''">#{transType},</if>
|
||||||
|
<if test="agingDesc != null and agingDesc != ''">#{agingDesc},</if>
|
||||||
|
<if test="minAging != null">#{minAging},</if>
|
||||||
|
<if test="maxAging != null">#{maxAging},</if>
|
||||||
|
<if test="remark != null and remark != ''">#{remark},</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">#{tenantId},</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateEmisTransProduct" parameterType="EmisTransProduct">
|
||||||
|
update emis_trans_product
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="prodCode != null and prodCode != ''">prod_code = #{prodCode},</if>
|
||||||
|
<if test="prodName != null and prodName != ''">prod_name = #{prodName},</if>
|
||||||
|
<if test="prodNameEn != null and prodNameEn != ''">prod_name_en = #{prodNameEn},</if>
|
||||||
|
<if test="status != null">status = #{status},</if>
|
||||||
|
<if test="country != null and country != ''">country = #{country},</if>
|
||||||
|
<if test="transLineCode != null and transLineCode != ''">trans_line_code = #{transLineCode},</if>
|
||||||
|
<if test="transLine != null and transLine != ''">trans_line = #{transLine},</if>
|
||||||
|
<if test="carryType != null and carryType != ''">carry_type = #{carryType},</if>
|
||||||
|
<if test="transType != null and transType != ''">trans_type = #{transType},</if>
|
||||||
|
<if test="agingDesc != null and agingDesc != ''">aging_desc = #{agingDesc},</if>
|
||||||
|
<if test="minAging != null">min_aging = #{minAging},</if>
|
||||||
|
<if test="maxAging != null">max_aging = #{maxAging},</if>
|
||||||
|
<if test="remark != null and remark != ''">remark = #{remark},</if>
|
||||||
|
<if test="tenantId != null and tenantId != ''">tenant_id = #{tenantId},</if>
|
||||||
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteEmisTransProductById" parameterType="Long">
|
||||||
|
delete from emis_trans_product where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteEmisTransProductByIds" parameterType="String">
|
||||||
|
delete from emis_trans_product where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
Loading…
Reference in New Issue
Block a user