tenantId修改类型 + 客户导入+ 供应商导入+产品导入
| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | |
| | | util.exportExcel(response, list, "客户档案数据"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导入客户档案 |
| | | */ |
| | | @Log(title = "客户档案", businessType = BusinessType.IMPORT) |
| | | @PostMapping("/importData") |
| | | public AjaxResult importData(MultipartFile file) throws Exception { |
| | | |
| | | return success(customerService.importData(file)); |
| | | } |
| | | |
| | | /** |
| | | * 获取客户档案详细信息 |
| | | */ |
| | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public IPage<ProductModel> selectModelListPage(Page page, ProductDto productDto) { |
| | | return productModelService.modelListPage(page, productDto); |
| | | } |
| | | |
| | | /** |
| | | * 导入产品 |
| | | */ |
| | | @Log(title = "导入产品",businessType = BusinessType.IMPORT) |
| | | @PostMapping("import") |
| | | public AjaxResult importProduct(MultipartFile file) { |
| | | return AjaxResult.success(productModelService.importProduct(file)); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.basic.dto.SupplierManageDto; |
| | | import com.ruoyi.basic.pojo.SupplierManage; |
| | | import com.ruoyi.basic.service.ISupplierService; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 供应商导入 |
| | | */ |
| | | @PostMapping("/import") |
| | | @Log(title = "供应商导入", businessType = BusinessType.IMPORT) |
| | | public AjaxResult importData(MultipartFile file) { |
| | | return AjaxResult.success(supplierService.importData(file)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 供应商选项接口 |
| | | * @return |
| | | */ |
| | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | |
| | | @Excel(name = "维护人") |
| | | private String maintainUserName; |
| | | |
| | | @Excel(name = "维护时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private LocalDateTime maintainTime; |
| | | // @Excel(name = "维护时间") |
| | | // @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | // @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | // private LocalDateTime maintainTime; |
| | | } |
| | |
| | | private String addressPhone; |
| | | |
| | | @ApiModelProperty(value = "银行基本户") |
| | | @Excel(name = "银行基本户") |
| | | private String basicBankAccount; |
| | | |
| | | @ApiModelProperty(value = "银行账号") |
| | | @Excel(name = "银行账号") |
| | | private String bankAccount; |
| | | |
| | | @ApiModelProperty(value = "开户行号") |
| | | @Excel(name = "开户行号") |
| | | private String bankCode; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | package com.ruoyi.basic.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | |
| | | /** |
| | | * 关联产品id |
| | | */ |
| | | @Excel(name = "关联产品id") |
| | | private Long productId; |
| | | |
| | | @TableField(exist = false) |
| | | @Excel(name = "产品名称") |
| | | private String productName; |
| | | |
| | | /** |
| | | * 规格型号 |
| | | */ |
| | | @Excel(name = "规格型号") |
| | | private String model; |
| | | |
| | | /** |
| | | * 单位 |
| | | */ |
| | | @Excel(name = "单位") |
| | | private String unit; |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "供应商名称") |
| | | |
| | | private String supplierName; |
| | | |
| | | @ApiModelProperty(value = "纳税人识别号") |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.basic.pojo.Customer; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | List customerList(Customer customer); |
| | | |
| | | List<Customer> selectCustomerLists(Customer customer); |
| | | |
| | | Boolean importData(MultipartFile file); |
| | | } |
| | |
| | | import com.ruoyi.basic.dto.ProductDto; |
| | | import com.ruoyi.basic.dto.ProductModelDto; |
| | | import com.ruoyi.basic.pojo.ProductModel; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | IPage<ProductModel> modelListPage(Page page , ProductDto productDto); |
| | | |
| | | Boolean importProduct(MultipartFile file); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.basic.dto.SupplierManageDto; |
| | | import com.ruoyi.basic.pojo.SupplierManage; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | |
| | | * @param supplierManageDto |
| | | */ |
| | | void supplierExport(HttpServletResponse response, SupplierManageDto supplierManageDto); |
| | | |
| | | Boolean importData(MultipartFile file); |
| | | } |
| | |
| | | import com.ruoyi.basic.service.ICustomerService; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.security.LoginUser; |
| | | import com.ruoyi.project.system.domain.SysUser; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | |
| | | @Override |
| | | public int insertCustomer(Customer customer) { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | Integer tenantId = loginUser.getTenantId(); |
| | | customer.setTenantId(Long.valueOf(tenantId)); |
| | | Long tenantId = loginUser.getTenantId(); |
| | | customer.setTenantId(tenantId); |
| | | return customerMapper.insert(customer); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public int updateCustomer(Customer customer) { |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | Integer tenantId = loginUser.getTenantId(); |
| | | customer.setTenantId(Long.valueOf(tenantId)); |
| | | Long tenantId = loginUser.getTenantId(); |
| | | customer.setTenantId(tenantId); |
| | | return customerMapper.updateById(customer); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Boolean importData(MultipartFile file) { |
| | | try { |
| | | ExcelUtil<Customer> util = new ExcelUtil<Customer>(Customer.class); |
| | | List<Customer> userList = util.importExcel(file.getInputStream()); |
| | | |
| | | this.saveOrUpdateBatch(userList); |
| | | return true; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | | public List<Map<String, Object>> customerList(Customer customer) { |
| | | LambdaQueryWrapper<Customer> queryWrapper = Wrappers.lambdaQuery(); |
| | | queryWrapper.select(Customer::getId, Customer::getCustomerName, Customer::getTaxpayerIdentificationNumber); |
| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.basic.dto.ProductDto; |
| | | import com.ruoyi.basic.dto.ProductModelDto; |
| | | import com.ruoyi.basic.mapper.ProductMapper; |
| | | import com.ruoyi.basic.mapper.ProductModelMapper; |
| | | import com.ruoyi.basic.pojo.Product; |
| | | import com.ruoyi.basic.pojo.ProductModel; |
| | | import com.ruoyi.basic.service.IProductModelService; |
| | | import com.ruoyi.common.utils.bean.BeanUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 【请填写功能名称】Service业务层处理 |
| | |
| | | @AllArgsConstructor |
| | | public class ProductModelServiceImpl extends ServiceImpl<ProductModelMapper, ProductModel> implements IProductModelService { |
| | | |
| | | private final ProductMapper productMapper; |
| | | private ProductModelMapper productModelMapper; |
| | | |
| | | @Override |
| | |
| | | queryWrapper.eq(ProductModel::getProductId, productDto.getId()); |
| | | return productModelMapper.selectPage(page, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean importProduct(MultipartFile file) { |
| | | try { |
| | | ExcelUtil<ProductModel> productModelExcelUtil = new ExcelUtil<>(ProductModel.class); |
| | | List<ProductModel> productModelList = productModelExcelUtil.importExcel(file.getInputStream()); |
| | | Map<String, List<ProductModel>> collect = productModelList.stream().collect(Collectors.groupingBy(ProductModel::getProductName)); |
| | | collect.forEach((k,v)->{ |
| | | Product product = productMapper.selectOne(new LambdaQueryWrapper<Product>().eq(Product::getProductName, k).last("LIMIT 1")); |
| | | if (product != null) { |
| | | v.forEach(productModel -> { |
| | | productModel.setProductId(product.getId()); |
| | | }); |
| | | this.saveOrUpdateBatch(v); |
| | | } |
| | | }); |
| | | return true; |
| | | }catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return false; |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.basic.pojo.ProductModel; |
| | | import com.ruoyi.basic.service.IProductService; |
| | | import com.ruoyi.common.utils.bean.BeanUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | |
| | | return tree; |
| | | } |
| | | |
| | | |
| | | |
| | | // 递归构建子节点 |
| | | private List<ProductTreeDto> buildChildrenNodes(Long parentId) { |
| | | // 查询当前父节点的子节点 |
| | |
| | | import com.ruoyi.basic.pojo.Customer; |
| | | import com.ruoyi.basic.pojo.SupplierManage; |
| | | import com.ruoyi.basic.service.ISupplierService; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDate; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | ExcelUtil<SupplierManageExcelDto> util = new ExcelUtil<SupplierManageExcelDto>(SupplierManageExcelDto.class); |
| | | util.exportExcel(response, supplierManageList, "供应商导出"); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean importData(MultipartFile file) { |
| | | |
| | | try { |
| | | ExcelUtil<SupplierManageExcelDto> util = new ExcelUtil<SupplierManageExcelDto>(SupplierManageExcelDto.class); |
| | | List<SupplierManageExcelDto> list = util.importExcel(file.getInputStream()); |
| | | ArrayList<SupplierManage> supplierManages = new ArrayList<>(); |
| | | list.stream().forEach(dto -> { |
| | | SupplierManage supplierManage = new SupplierManage(); |
| | | BeanUtils.copyProperties(dto,supplierManage); |
| | | supplierManage.setMaintainTime(LocalDate.now()); |
| | | Long userId = SecurityUtils.getLoginUser().getUser().getUserId(); |
| | | |
| | | supplierManage.setMaintainUserId(Integer.parseInt(userId+"")); |
| | | supplierManages.add(supplierManage); |
| | | }); |
| | | |
| | | this.saveOrUpdateBatch(supplierManages); |
| | | return true; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | } |
| | | return false; |
| | | } |
| | | } |
| | |
| | | IGNORE_TABLES.add("DepartmentHierarchy"); |
| | | IGNORE_TABLES.add("sys_oper_log"); |
| | | IGNORE_TABLES.add("sys_user_dept"); |
| | | IGNORE_TABLES.add("sys_job_log"); |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public void insertFill(MetaObject metaObject) { |
| | | Integer userId = null; |
| | | Integer tenantId = null; |
| | | Long tenantId = null; |
| | | try { |
| | | userId = SecurityUtils.getUserId().intValue(); |
| | | tenantId = SecurityUtils.getLoginUser().getTenantId(); |
| | |
| | | this.strictInsertFill(metaObject, "updateTime", LocalDateTime.class, LocalDateTime.now()); |
| | | this.strictInsertFill(metaObject, "createUser", Integer.class, userId); |
| | | this.strictInsertFill(metaObject, "updateUser", Integer.class, userId); |
| | | this.strictInsertFill(metaObject, "tenantId", Integer.class, tenantId); |
| | | this.strictInsertFill(metaObject, "tenantId", Long.class, tenantId); |
| | | } |
| | | |
| | | @Override |
| | |
| | | @Override |
| | | public Expression getTenantId() { |
| | | try { |
| | | Integer tenantId = SecurityUtils.getLoginUser().getTenantId(); |
| | | Long tenantId = SecurityUtils.getLoginUser().getTenantId(); |
| | | return new LongValue(tenantId); |
| | | } catch (Exception e) { |
| | | return null; |
| | |
| | | /**
|
| | | * 租户ID
|
| | | */
|
| | | private Integer tenantId;
|
| | | private Long tenantId;
|
| | |
|
| | | /**
|
| | | * 当前部门id
|
| | |
| | | this.permissions = permissions;
|
| | | }
|
| | |
|
| | | public LoginUser(Long userId, Long [] deptIds, SysUser user,Integer tenantId, Set<String> permissions)
|
| | | public LoginUser(Long userId, Long [] deptIds, SysUser user,Long tenantId, Set<String> permissions)
|
| | | {
|
| | | this.userId = userId;
|
| | | this.deptIds = deptIds;
|
| | |
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | | public LoginUser(Long userId, Long [] deptIds, SysUser user,Integer tenantId,Long currentDeptId, Set<String> permissions)
|
| | | public LoginUser(Long userId, Long [] deptIds, SysUser user,Long tenantId,Long currentDeptId, Set<String> permissions)
|
| | | {
|
| | | this.userId = userId;
|
| | | this.deptIds = deptIds;
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | public Integer getTenantId() {
|
| | | public Long getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Integer tenantId) {
|
| | | public void setTenantId(Long tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | |
| | | // 查询租户
|
| | | Long teantId = deptMapper.maxLevelDeptId(factoryId);
|
| | | user.setCurrentDeptId(factoryId);
|
| | | user.setTenantId(teantId.intValue());
|
| | | user.setTenantId(teantId);
|
| | | }
|
| | | }
|
| | | // 获取用户当前登录部门,并查询租户id
|
| | |
| | | LoginUser loginUser = SecurityUtils.getLoginUser();
|
| | | SysUser user = loginUser.getUser();
|
| | | // 获取当前登录公司
|
| | | Integer tenantId = loginUser.getTenantId();
|
| | | Long tenantId = loginUser.getTenantId();
|
| | | if(null != tenantId){
|
| | | user.setTenantId(tenantId);
|
| | | SysDept sysDept = sysDeptMapper.selectDeptById(tenantId.longValue());
|
| | |
| | | private Long roleId;
|
| | |
|
| | | /** 租户ID */
|
| | | private Integer tenantId;
|
| | | private Long tenantId;
|
| | |
|
| | | private Long[] deptIds;
|
| | |
|
| | |
| | | this.roleId = roleId;
|
| | | }
|
| | |
|
| | | public Integer getTenantId() {
|
| | | public Long getTenantId() {
|
| | | return tenantId;
|
| | | }
|
| | |
|
| | | public void setTenantId(Integer tenantId) {
|
| | | public void setTenantId(Long tenantId) {
|
| | | this.tenantId = tenantId;
|
| | | }
|
| | |
|
| | |
| | | return salesLedgerService.getSalesNo(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据销售合同查询产品信息 |
| | | */ |
| | | @GetMapping("/getProductBySalesNo") |
| | | public AjaxResult getProductBySalesNo(Long id) { |
| | | return AjaxResult.success(purchaseLedgerService.getProductBySalesNo(id)); |
| | | } |
| | | |
| | | /** |
| | | * 查询采购合同号 |
| | | */ |
| | |
| | | private Date createdAt; |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.purchase.dto.PurchaseLedgerDto; |
| | | import com.ruoyi.purchase.pojo.PurchaseLedger; |
| | | import com.ruoyi.sales.pojo.InvoiceRegistrationProduct; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | |
| | | PurchaseLedgerDto getPurchaseNoById(Long id); |
| | | |
| | | IPage<PurchaseLedger> selectPurchaseLedgerListPage(IPage ipage, PurchaseLedger purchaseLedger); |
| | | |
| | | List<InvoiceRegistrationProduct> getProductBySalesNo(Long id); |
| | | } |
| | |
| | | } |
| | | |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | Integer tenantId = loginUser.getTenantId(); |
| | | paymentRegistration.setTenantId(tenantId.longValue()); |
| | | Long tenantId = loginUser.getTenantId(); |
| | | paymentRegistration.setTenantId(tenantId); |
| | | paymentRegistration.setRegistrantId(loginUser.getUserId()); |
| | | paymentRegistration.setCreateTime(DateUtils.getNowDate()); |
| | | paymentRegistration.setUpdateTime(DateUtils.getNowDate()); |
| | |
| | | import com.ruoyi.purchase.pojo.PurchaseLedger; |
| | | import com.ruoyi.purchase.pojo.TicketRegistration; |
| | | import com.ruoyi.purchase.service.IPurchaseLedgerService; |
| | | import com.ruoyi.sales.mapper.CommonFileMapper; |
| | | import com.ruoyi.sales.mapper.SalesLedgerMapper; |
| | | import com.ruoyi.sales.mapper.SalesLedgerProductMapper; |
| | | import com.ruoyi.sales.mapper.*; |
| | | import com.ruoyi.sales.pojo.CommonFile; |
| | | import com.ruoyi.sales.pojo.InvoiceRegistrationProduct; |
| | | import com.ruoyi.sales.pojo.SalesLedger; |
| | | import com.ruoyi.sales.pojo.SalesLedgerProduct; |
| | | import lombok.RequiredArgsConstructor; |
| | |
| | | |
| | | private final ProductRecordMapper productRecordMapper; |
| | | |
| | | private final InvoiceRegistrationProductMapper invoiceRegistrationProductMapper; |
| | | |
| | | @Value("${file.upload-dir}") |
| | | private String uploadDir; |
| | | |
| | |
| | | BeanUtils.copyProperties(purchaseLedgerDto, purchaseLedger); |
| | | LoginUser loginUser = SecurityUtils.getLoginUser(); |
| | | if(ObjectUtils.isNotEmpty(loginUser) && null != loginUser.getTenantId()) { |
| | | purchaseLedger.setTenantId(loginUser.getTenantId().longValue()); |
| | | purchaseLedger.setTenantId(loginUser.getTenantId()); |
| | | } |
| | | purchaseLedger.setSalesContractNo(ObjectUtils.isNotEmpty(salesLedger) ? salesLedger.getSalesContractNo() : null); |
| | | purchaseLedger.setSupplierName(supplierManage.getSupplierName()); |
| | |
| | | return purchaseLedgerMapper.selectPage(ipage, queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<InvoiceRegistrationProduct> getProductBySalesNo(Long id) { |
| | | List<InvoiceRegistrationProduct> invoiceRegistrationProducts = invoiceRegistrationProductMapper.selectList(new LambdaQueryWrapper<InvoiceRegistrationProduct>() |
| | | .select(InvoiceRegistrationProduct::getId, InvoiceRegistrationProduct::getProductCategory, InvoiceRegistrationProduct::getSpecificationModel, |
| | | InvoiceRegistrationProduct::getUnit, InvoiceRegistrationProduct::getQuantity) |
| | | .eq(InvoiceRegistrationProduct::getSalesLedgerId, id)); |
| | | if (invoiceRegistrationProducts.isEmpty()) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return invoiceRegistrationProducts; |
| | | } |
| | | |
| | | /** |
| | | * 下划线命名转驼峰命名 |
| | | */ |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "租户ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer tenantId; |
| | | private Long tenantId; |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | // 2. 查询当天/公司已存在的序列号(与原逻辑一致) |
| | | Integer tenantId = SecurityUtils.getLoginUser().getTenantId(); |
| | | Long tenantId = SecurityUtils.getLoginUser().getTenantId(); |
| | | if(null != tenantId){ |
| | | //获取公司编号 |
| | | SysDept sysDept = sysDeptMapper.selectDeptById(tenantId.longValue()); |