demand: tms/app运单录入、运单修改、运单批量录入、网点费用申请增加录入企业名称、企业税号的功能 tms/app运单录入、运单修改、运单批量录入、网点费用申请录入企业名称、企业税号后自动同步更新/新增到寄件人信息 tms-客户管理-寄件人地址-增加根据企业名称、企业税号模糊查询的功能,查询返回增加企业名称、企业税号,新增接口增加添加企业名称、企业税号的功能
committer: heyu
This commit is contained in:
parent
749a502276
commit
a6472173b8
@ -1,11 +1,11 @@
|
||||
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerAddressController.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 04:47:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户收寄件地址 控制器 </p>
|
||||
*/
|
||||
|
||||
@ -16,6 +16,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.xdadan.erp.common.annotation.filter.jackson.JacksonFilter;
|
||||
import com.xdadan.erp.common.core.domain.entity.SysUser;
|
||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
@ -33,7 +34,7 @@ import com.xdadan.erp.emis.service.IEmisCustomerAddressService;
|
||||
|
||||
/**
|
||||
* 客户收寄件地址Controller
|
||||
*
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-03-01 04:47:51
|
||||
*/
|
||||
@ -60,7 +61,7 @@ public class EmisCustomerAddressController extends EmisBaseController
|
||||
}
|
||||
|
||||
// @PreAuthorize("@ss.hasPermi('emis:emisCustomerAddress:list')")
|
||||
@JacksonFilter(include= {"id","name","phone","country","province","city","county","countryName","provinceName","cityName","countyName","town","townName","address","postCode","email","company","blDefaultFlag","orderNum","createTime","remark"},value= EmisCustomerAddress.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
@JacksonFilter(include= {"id","name","phone","country","province","city","county","countryName","provinceName","cityName","countyName","town","townName","address","postCode","email","company","blDefaultFlag","orderNum","createTime","remark","enterpriseName","enterpriseTaxId"},value= EmisCustomerAddress.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
@GetMapping("/listSimple")
|
||||
public TableDataInfo listSimple(EmisCustomerAddress emisCustomerAddress)
|
||||
{
|
||||
@ -75,7 +76,7 @@ public class EmisCustomerAddressController extends EmisBaseController
|
||||
}
|
||||
|
||||
|
||||
@JacksonFilter(include= {"id","name","phone","country","province","city","county","address","postCode","email","company","countryName","provinceName","cityName","countyName","town","townName","blDefaultFlag","orderNum","createTime","remark"},value= EmisCustomerAddress.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
@JacksonFilter(include= {"id","name","phone","country","province","city","county","address","postCode","email","company","countryName","provinceName","cityName","countyName","town","townName","blDefaultFlag","orderNum","createTime","remark","enterpriseName","enterpriseTaxId"},value= EmisCustomerAddress.class,type= JacksonFilter.JscksonFilterType.RESPONSE)
|
||||
@RequestMapping("/getAddressById")
|
||||
public AjaxResult getAddressById(@RequestParam("id") Long id)
|
||||
{
|
||||
@ -124,16 +125,14 @@ public class EmisCustomerAddressController extends EmisBaseController
|
||||
@PreAuthorize("@ss.hasPermi('emis:emisCustomerAddress:add')")
|
||||
@Log(title = "客户收寄件地址", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody EmisCustomerAddress emisCustomerAddress)
|
||||
{
|
||||
public AjaxResult add(@RequestBody EmisCustomerAddress emisCustomerAddress) throws EmisBizError {
|
||||
|
||||
return toAjax(emisCustomerAddressService.insertEmisCustomerAddress(emisCustomerAddress));
|
||||
}
|
||||
|
||||
@Log(title = "客户收寄件地址", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/addAddress")
|
||||
public AjaxResult addAddress(@RequestBody EmisCustomerAddress emisCustomerAddress)
|
||||
{
|
||||
public AjaxResult addAddress(@RequestBody EmisCustomerAddress emisCustomerAddress) throws EmisBizError {
|
||||
String ownerSiteCode = getLoginUser().getUser().getOwnerSiteCode();
|
||||
emisCustomerAddress.setUseSiteCode(ownerSiteCode);
|
||||
emisCustomerAddress.setUseSite(ownerSiteCode);
|
||||
|
||||
@ -1,16 +1,17 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerAddressService.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 04:47:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户收寄件地址 服务类接口 </p>
|
||||
*/
|
||||
package com.xdadan.erp.emis.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.xdadan.erp.emis.domain.EmisCustomerAddress;
|
||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||
|
||||
/**
|
||||
* @ClassName EmisCustomerAddressService
|
||||
@ -18,18 +19,18 @@ import com.xdadan.erp.emis.domain.EmisCustomerAddress;
|
||||
* @author linfso
|
||||
* @date 2024-03-01 04:47:51
|
||||
*/
|
||||
public interface IEmisCustomerAddressService
|
||||
public interface IEmisCustomerAddressService
|
||||
{
|
||||
/**
|
||||
* 主键查询
|
||||
* @param id
|
||||
* @return
|
||||
* @return
|
||||
*/
|
||||
public EmisCustomerAddress selectEmisCustomerAddressById(Long id);
|
||||
|
||||
/**
|
||||
* 查询客户收寄件地址列表
|
||||
*
|
||||
*
|
||||
* @param emisCustomerAddress 客户收寄件地址
|
||||
* @return 客户收寄件地址集合
|
||||
*/
|
||||
@ -37,15 +38,15 @@ public interface IEmisCustomerAddressService
|
||||
|
||||
/**
|
||||
* 新增客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param emisCustomerAddress 客户收寄件地址
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertEmisCustomerAddress(EmisCustomerAddress emisCustomerAddress);
|
||||
public int insertEmisCustomerAddress(EmisCustomerAddress emisCustomerAddress) throws EmisBizError;
|
||||
|
||||
/**
|
||||
* 修改客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param emisCustomerAddress 客户收寄件地址
|
||||
* @return 结果
|
||||
*/
|
||||
@ -53,7 +54,7 @@ public interface IEmisCustomerAddressService
|
||||
|
||||
/**
|
||||
* 批量删除客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的客户收寄件地址主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
@ -61,7 +62,7 @@ public interface IEmisCustomerAddressService
|
||||
|
||||
/**
|
||||
* 删除客户收寄件地址信息
|
||||
*
|
||||
*
|
||||
* @param id 客户收寄件地址主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
/**
|
||||
/**
|
||||
* @Project: emis
|
||||
* @Title: EmisCustomerAddressServiceImpl.java
|
||||
* @author linfso
|
||||
* @date 2024-03-01 04:47:51
|
||||
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||
* @version v1.0
|
||||
* @version v1.0
|
||||
* @Description: <p> 客户收寄件地址 实体类 </p>
|
||||
*/
|
||||
|
||||
@ -12,6 +12,7 @@ package com.xdadan.erp.emis.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.xdadan.erp.emis.domain.exception.EmisBizError;
|
||||
import com.xdadan.erp.emis.service.EmisBaseService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
@ -21,7 +22,7 @@ import com.xdadan.erp.emis.service.IEmisCustomerAddressService;
|
||||
|
||||
/**
|
||||
* 客户收寄件地址Service业务层处理
|
||||
*
|
||||
*
|
||||
* @author linfso
|
||||
* @date 2024-03-01 04:47:51
|
||||
*/
|
||||
@ -33,7 +34,7 @@ public class EmisCustomerAddressServiceImpl extends EmisBaseService implements I
|
||||
|
||||
/**
|
||||
* 查询客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param id 客户收寄件地址主键
|
||||
* @return 客户收寄件地址
|
||||
*/
|
||||
@ -45,7 +46,7 @@ public class EmisCustomerAddressServiceImpl extends EmisBaseService implements I
|
||||
|
||||
/**
|
||||
* 查询客户收寄件地址列表
|
||||
*
|
||||
*
|
||||
* @param emisCustomerAddress 客户收寄件地址
|
||||
* @return 客户收寄件地址
|
||||
*/
|
||||
@ -57,25 +58,24 @@ public class EmisCustomerAddressServiceImpl extends EmisBaseService implements I
|
||||
|
||||
/**
|
||||
* 新增客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param emisCustomerAddress 客户收寄件地址
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertEmisCustomerAddress(EmisCustomerAddress emisCustomerAddress)
|
||||
{
|
||||
public int insertEmisCustomerAddress(EmisCustomerAddress emisCustomerAddress) throws EmisBizError {
|
||||
// 新增地址
|
||||
emisCustomerAddress.preInsert();
|
||||
emisCustomerAddress.setUseSiteCode(getCurrentUser().getOwnerSiteCode());
|
||||
emisCustomerAddress.setUseSite(getCurrentUser().getOwnerSiteName());
|
||||
|
||||
// 创建用户
|
||||
return emisCustomerAddressMapper.insertEmisCustomerAddress(emisCustomerAddress);
|
||||
return createCustomerAddressNew(emisCustomerAddress);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param emisCustomerAddress 客户收寄件地址
|
||||
* @return 结果
|
||||
*/
|
||||
@ -91,7 +91,7 @@ public class EmisCustomerAddressServiceImpl extends EmisBaseService implements I
|
||||
|
||||
/**
|
||||
* 批量删除客户收寄件地址
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的客户收寄件地址主键
|
||||
* @return 结果
|
||||
*/
|
||||
@ -103,7 +103,7 @@ public class EmisCustomerAddressServiceImpl extends EmisBaseService implements I
|
||||
|
||||
/**
|
||||
* 删除客户收寄件地址信息
|
||||
*
|
||||
*
|
||||
* @param id 客户收寄件地址主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user