客户信息 供应商信息 修改 提交 编码无重复校验修改 导出内容修改 页面显示内容修改
This commit is contained in:
@@ -23,7 +23,7 @@ public class BasCustomer extends BaseEntity
|
||||
private String customerNo;
|
||||
|
||||
/** 客户基本分类 */
|
||||
@Excel(name = "客户基本分类")
|
||||
// @Excel(name = "客户基本分类")
|
||||
private String customerGroupNo;
|
||||
|
||||
/** 客户名称 */
|
||||
@@ -38,62 +38,86 @@ public class BasCustomer extends BaseEntity
|
||||
@Excel(name = "是否可用",dictType = "is_available")
|
||||
private String useable;
|
||||
|
||||
/** 备注 */
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
|
||||
/** 业务部门 */
|
||||
@Excel(name = "业务部门")
|
||||
//@Excel(name = "业务部门")
|
||||
private String businessDepartment;
|
||||
|
||||
/** 业务员 */
|
||||
@Excel(name = "业务员")
|
||||
//@Excel(name = "业务员")
|
||||
private String salesman;
|
||||
|
||||
/** 助忆码 */
|
||||
@Excel(name = "助忆码")
|
||||
//@Excel(name = "助忆码")
|
||||
private String mnemonicCode;
|
||||
|
||||
/** 客户类型 */
|
||||
@Excel(name = "客户类型")
|
||||
//@Excel(name = "客户类型")
|
||||
private String type;
|
||||
|
||||
/** 纳税人登记号 */
|
||||
@Excel(name = "纳税人登记号")
|
||||
//@Excel(name = "纳税人登记号")
|
||||
private String taxpayerRegistrationNumber;
|
||||
|
||||
/** 对应财务组织 */
|
||||
@Excel(name = "对应财务组织")
|
||||
//@Excel(name = "对应财务组织")
|
||||
private String organization;
|
||||
|
||||
/** 上级客户 */
|
||||
@Excel(name = "上级客户")
|
||||
//@Excel(name = "上级客户")
|
||||
private String supCustomer;
|
||||
|
||||
/** 散户 */
|
||||
@Excel(name = "散户")
|
||||
//@Excel(name = "散户")
|
||||
private String retailInvestor;
|
||||
|
||||
/** 国家/地区 */
|
||||
@Excel(name = "国家/地区")
|
||||
//@Excel(name = "国家/地区")
|
||||
private String country;
|
||||
|
||||
/** 时区 */
|
||||
@Excel(name = "时区")
|
||||
//@Excel(name = "时区")
|
||||
private String timeZone;
|
||||
|
||||
/** 数据格式 */
|
||||
@Excel(name = "数据格式")
|
||||
//@Excel(name = "数据格式")
|
||||
private String dataFormat;
|
||||
|
||||
/** 联系人姓名 */
|
||||
@Excel(name = "联系人姓名")
|
||||
//@Excel(name = "联系人姓名")
|
||||
private String contactName;
|
||||
|
||||
/** 发货国家 */
|
||||
@Excel(name = "发货国家")
|
||||
//@Excel(name = "发货国家")
|
||||
private String shipment;
|
||||
|
||||
/** 税类 */
|
||||
@Excel(name = "税类")
|
||||
//@Excel(name = "税类")
|
||||
private String taxCategory;
|
||||
|
||||
private String updateId;
|
||||
|
||||
@Override
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getUpdateId() {
|
||||
return updateId;
|
||||
}
|
||||
|
||||
public void setUpdateId(String updateId) {
|
||||
this.updateId = updateId;
|
||||
}
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.bas.BasCustomer.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.ruoyi.bas.BasCustomer.domain.BasCustomer;
|
||||
import com.ruoyi.bas.BasCustomer.mapper.BasCustomerMapper;
|
||||
import com.ruoyi.bas.BasCustomer.service.IBasCustomerService;
|
||||
@@ -53,6 +54,12 @@ public class BasCustomerServiceImpl implements IBasCustomerService
|
||||
@Override
|
||||
public int insertBasCustomer(BasCustomer basCustomer)
|
||||
{
|
||||
BasCustomer basCustomerParam = new BasCustomer();
|
||||
basCustomerParam.setCustomerNo(basCustomer.getCustomerNo());
|
||||
List<BasCustomer> basCustomers = basCustomerMapper.selectBasCustomerList(basCustomerParam);
|
||||
if (CollUtil.isNotEmpty(basCustomers)){
|
||||
throw new RuntimeException("客户编号已存在");
|
||||
}
|
||||
return basCustomerMapper.insertBasCustomer(basCustomer);
|
||||
}
|
||||
|
||||
@@ -65,6 +72,13 @@ public class BasCustomerServiceImpl implements IBasCustomerService
|
||||
@Override
|
||||
public int updateBasCustomer(BasCustomer basCustomer)
|
||||
{
|
||||
BasCustomer basCustomerParam = new BasCustomer();
|
||||
basCustomerParam.setCustomerNo(basCustomer.getCustomerNo());
|
||||
basCustomerParam.setUpdateId(basCustomer.getId());
|
||||
List<BasCustomer> basCustomers = basCustomerMapper.selectBasCustomerList(basCustomerParam);
|
||||
if (CollUtil.isNotEmpty(basCustomers)){
|
||||
throw new RuntimeException("客户编号已存在");
|
||||
}
|
||||
return basCustomerMapper.updateBasCustomer(basCustomer);
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@ public class BasSupplier extends BaseEntity
|
||||
private String supplierNo;
|
||||
|
||||
/** 供应商名称 */
|
||||
@Excel(name = "供应商名称")
|
||||
private String supplierGroupNo;
|
||||
|
||||
/** 供应商名称 */
|
||||
@@ -38,54 +37,79 @@ public class BasSupplier extends BaseEntity
|
||||
@Excel(name = "是否可用",dictType = "is_available")
|
||||
private String useable;
|
||||
|
||||
@Excel(name = "备注")
|
||||
private String remark;
|
||||
|
||||
|
||||
/** 地区分类 */
|
||||
@Excel(name = "地区分类")
|
||||
//@Excel(name = "地区分类")
|
||||
private String supplierArae;
|
||||
|
||||
/** 纳税人登记号 */
|
||||
@Excel(name = "纳税人登记号")
|
||||
//@Excel(name = "纳税人登记号")
|
||||
private String taxpayerRegistrationNumber;
|
||||
|
||||
/** 国家 */
|
||||
@Excel(name = "国家")
|
||||
//@Excel(name = "国家")
|
||||
private String country;
|
||||
|
||||
/** 时区 */
|
||||
@Excel(name = "时区")
|
||||
//@Excel(name = "时区")
|
||||
private String timeZone;
|
||||
|
||||
/** 数据格式 */
|
||||
@Excel(name = "数据格式")
|
||||
//@Excel(name = "数据格式")
|
||||
private String dataFormat;
|
||||
|
||||
/** 收货国家 */
|
||||
@Excel(name = "收货国家")
|
||||
//@Excel(name = "收货国家")
|
||||
private String receivingCountry;
|
||||
|
||||
/** 税类 */
|
||||
@Excel(name = "税类")
|
||||
//@Excel(name = "税类")
|
||||
private String taxCategory;
|
||||
|
||||
/** 法人 */
|
||||
@Excel(name = "法人")
|
||||
//@Excel(name = "法人")
|
||||
private String legalPerson;
|
||||
|
||||
/** 注册资金 */
|
||||
@Excel(name = "注册资金")
|
||||
//@Excel(name = "注册资金")
|
||||
private String registeredCapital;
|
||||
|
||||
/** 企业地址 */
|
||||
@Excel(name = "企业地址")
|
||||
//@Excel(name = "企业地址")
|
||||
private String address;
|
||||
|
||||
/** 联系人姓名 */
|
||||
@Excel(name = "联系人姓名")
|
||||
//@Excel(name = "联系人姓名")
|
||||
private String contactName;
|
||||
|
||||
/** 联系电话 */
|
||||
@Excel(name = "联系电话")
|
||||
//@Excel(name = "联系电话")
|
||||
private String contactNumber;
|
||||
|
||||
private String updateId;
|
||||
|
||||
|
||||
@Override
|
||||
public String getRemark() {
|
||||
return remark;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setRemark(String remark) {
|
||||
this.remark = remark;
|
||||
}
|
||||
|
||||
public String getUpdateId() {
|
||||
return updateId;
|
||||
}
|
||||
|
||||
public void setUpdateId(String updateId) {
|
||||
this.updateId = updateId;
|
||||
}
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.ruoyi.bas.BasSupplier.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import com.ruoyi.bas.BasSupplier.domain.BasSupplier;
|
||||
import com.ruoyi.bas.BasSupplier.mapper.BasSupplierMapper;
|
||||
import com.ruoyi.bas.BasSupplier.service.IBasSupplierService;
|
||||
@@ -53,6 +54,12 @@ public class BasSupplierServiceImpl implements IBasSupplierService
|
||||
@Override
|
||||
public int insertBasSupplier(BasSupplier basSupplier)
|
||||
{
|
||||
BasSupplier basSupplierParam = new BasSupplier();
|
||||
basSupplierParam.setSupplierNo(basSupplier.getSupplierNo());
|
||||
List<BasSupplier> basSuppliers = basSupplierMapper.selectBasSupplierList(basSupplierParam);
|
||||
if (CollUtil.isNotEmpty(basSuppliers)) {
|
||||
throw new RuntimeException("供应商编码已存在");
|
||||
}
|
||||
return basSupplierMapper.insertBasSupplier(basSupplier);
|
||||
}
|
||||
|
||||
@@ -65,6 +72,13 @@ public class BasSupplierServiceImpl implements IBasSupplierService
|
||||
@Override
|
||||
public int updateBasSupplier(BasSupplier basSupplier)
|
||||
{
|
||||
BasSupplier basSupplierParam = new BasSupplier();
|
||||
basSupplierParam.setSupplierNo(basSupplier.getSupplierNo());
|
||||
basSupplierParam.setUpdateId(basSupplier.getId());
|
||||
List<BasSupplier> basSuppliers = basSupplierMapper.selectBasSupplierList(basSupplierParam);
|
||||
if (CollUtil.isNotEmpty(basSuppliers)) {
|
||||
throw new RuntimeException("供应商编码已存在");
|
||||
}
|
||||
return basSupplierMapper.updateBasSupplier(basSupplier);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user