diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesOrderDetailController.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesOrderDetailController.java deleted file mode 100644 index 7ca644f3..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/SalesOrderDetailController.java +++ /dev/null @@ -1,245 +0,0 @@ -package com.ruoyi.sales.controller; - -import com.alibaba.excel.EasyExcel; -import com.alibaba.excel.ExcelWriter; -import com.alibaba.excel.util.MapUtils; -import com.alibaba.excel.write.metadata.WriteSheet; -import com.alibaba.excel.write.metadata.fill.FillConfig; -import com.ruoyi.common.annotation.Log; -import com.ruoyi.common.core.controller.BaseController; -import com.ruoyi.common.core.domain.AjaxResult; -import com.ruoyi.common.core.domain.entity.SysDictData; -import com.ruoyi.common.core.page.TableDataInfo; -import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.common.utils.poi.ExcelUtil; -import com.ruoyi.manufacture.domain.DeliveryGoodsDetail; -import com.ruoyi.manufacture.domain.WorkOrderInfo; -import com.ruoyi.manufacture.service.IDeliveryGoodsDetailService; -import com.ruoyi.manufacture.service.IWorkOrderInfoService; -import com.ruoyi.sales.domain.SalesOrderDetail; -import com.ruoyi.sales.domain.exportDto.SalesOrderDetailDto; -import com.ruoyi.sales.service.ISalesOrderDetailService; -import com.ruoyi.system.service.ISysDictTypeService; -import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.BeanUtils; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Controller; -import org.springframework.ui.ModelMap; -import org.springframework.web.bind.annotation.*; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.net.URLEncoder; -import java.util.ArrayList; -import java.util.Iterator; -import java.util.List; -import java.util.Map; - -import static com.ruoyi.common.config.datasource.DynamicDataSourceContextHolder.log; - -/** - * 销售订单查询Controller - * - * @author ruoyi - * @date 2023-07-05 - */ -@Controller -@RequestMapping("/sales/salesOrderDetail") -public class SalesOrderDetailController extends BaseController -{ - private String prefix = "sales/salesOrderDetail"; - - @Autowired - private ISalesOrderDetailService salesOrderDetailService; - @Autowired - private IDeliveryGoodsDetailService deliveryGoodsDetailService; - @Autowired - private IWorkOrderInfoService workOrderInfoService; - - @Autowired - private ISysDictTypeService sysDictTypeService; - - @RequiresPermissions("sales:salesOrderDetail:view") - @GetMapping() - public String salesOrderDetail() - { - return prefix + "/salesOrderDetail"; - } - - /** - * 查询销售订单查询列表 - */ - @RequiresPermissions("sales:salesOrderDetail:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(SalesOrderDetail salesOrderDetail) - { - startPage(); - List list = salesOrderDetailService.selectSalesOrderDetailList(salesOrderDetail); - return getDataTable(list); - } - - /** - * 导出销售订单查询列表 - */ - @RequiresPermissions("sales:salesOrderDetail:export") - @Log(title = "销售订单查询", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(SalesOrderDetail salesOrderDetail) - { - List list = salesOrderDetailService.selectSalesOrderDetailList(salesOrderDetail); - ExcelUtil util = new ExcelUtil(SalesOrderDetail.class); - return util.exportExcel(list, "销售订单查询数据"); - } - - /** - * 新增销售订单查询 - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存销售订单查询 - */ - @RequiresPermissions("sales:salesOrderDetail:add") - @Log(title = "销售订单查询", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(SalesOrderDetail salesOrderDetail) - { - return toAjax(salesOrderDetailService.insertSalesOrderDetail(salesOrderDetail)); - } - - /** - * 修改销售订单查询 - */ - @GetMapping("/edit/{salesFinishId}") - public String edit(@PathVariable("salesFinishId") Long salesFinishId, ModelMap mmap) - { - SalesOrderDetail salesOrderDetail = salesOrderDetailService.selectSalesOrderDetailById(salesFinishId); - mmap.put("salesOrderDetail", salesOrderDetail); - return prefix + "/edit"; - } - - /** - * 修改保存销售订单查询 - */ - @RequiresPermissions("sales:salesOrderDetail:edit") - @Log(title = "销售订单查询", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(SalesOrderDetail salesOrderDetail) - { - return toAjax(salesOrderDetailService.updateSalesOrderDetail(salesOrderDetail)); - } - - /** - * 删除销售订单查询 - */ - @RequiresPermissions("sales:salesOrderDetail:remove") - @Log(title = "销售订单查询", businessType = BusinessType.DELETE) - @PostMapping( "/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - return toAjax(salesOrderDetailService.deleteSalesOrderDetailByIds(ids)); - } - - - /** - * 导出销售订单查询列表 - */ - @RequiresPermissions("sales:salesOrderDetail:export") - @Log(title = "销售订单查询", businessType = BusinessType.EXPORT) - @PostMapping("/exportDatas/{ids}") - @ResponseBody - public void exportDatas(@PathVariable("ids") String ids, HttpServletResponse response, HttpServletRequest request) throws IOException { - - String startTime = request.getParameter("startTime").trim(); - String endTime = request.getParameter("endTime").trim(); - String salesOrderNumber = request.getParameter("salesOrderNumber").trim(); - String enterpriseName = request.getParameter("enterpriseName").trim(); - String orderReceivingMode = request.getParameter("orderReceivingMode").trim(); - String finishProductCode = request.getParameter("finishProductCode").trim(); - String finishProductName = request.getParameter("finishProductName").trim(); - String commonCurrency = request.getParameter("commonCurrency").trim(); - String[] idsStr = ids.split(","); - List salesOrderDetailDtoList =new ArrayList<>(); - List salesOrderDetailList =new ArrayList<>(); - for (int i = 0; i < idsStr.length; i++) { - SalesOrderDetail salesOrderDetail = salesOrderDetailService.selectSalesOrderDetailById(Long.valueOf(idsStr[i])); - salesOrderDetailList.add(salesOrderDetail); - } - try { - Iterator values = salesOrderDetailList.iterator(); - while (values.hasNext()) { - Object source = values.next(); - SalesOrderDetail salesOrderDetail1 = (SalesOrderDetail) source; - SalesOrderDetailDto target = SalesOrderDetailDto.class.newInstance(); - BeanUtils.copyProperties(source, target); - List sysCommonCurrencyData = sysDictTypeService.selectDictDataByType("sys_common_currency"); - for (int i = 0;i deliveryGoodsDetailList = deliveryGoodsDetailService.selectDeliveryGoodsDetailList(deliveryGoodsDetail); - if (deliveryGoodsDetailList.size() > 0) { - if (deliveryGoodsDetailList.get(0).getProductQuantity().equals("") || deliveryGoodsDetailList.get(0).getProductQuantity().equals(null)) { - target.setDeliveryQuantity(String.valueOf(0)); - target.setUnDeliveryQuantity(String.valueOf(Float.valueOf(productQuantity1)-0)); - } else { - target.setDeliveryQuantity(deliveryGoodsDetailList.get(0).getProductQuantity()); - target.setUnDeliveryQuantity(String.valueOf(Float.valueOf(productQuantity1)-Float.valueOf(deliveryGoodsDetailList.get(0).getProductQuantity()))); - } - } - //制工单 - WorkOrderInfo workOrderInfo = new WorkOrderInfo(); - workOrderInfo.setSalesOrderNumber(salesOrderNumber1); - workOrderInfo.setFinishProductCode(finishProductCode1); - List workOrderInfoList = workOrderInfoService.selectWorkOrderInfoList(workOrderInfo); - if (workOrderInfoList.size() > 0) { - target.setBeginOrderQuantity(workOrderInfoList.get(0).getBeginOrderQuantity()); - target.setNotBeginOrderQuantity(workOrderInfoList.get(0).getNotBeginOrderQuantity()); - } - salesOrderDetailDtoList.add(target); - } - } catch (Exception e) { - log.error(">>>>>>异常<<<<<<", e); - } - response.setCharacterEncoding("utf-8"); - String fileName = URLEncoder.encode("订单查询明细", "UTF-8").replaceAll("\\+", "%20"); - response.setHeader("Content-disposition", "attachment;filename*=utf-8''" + fileName + ".xlsx"); - String templateFileName = "C:\\exportTemplates\\exportSalesOrderDetail.xlsx"; - try (ExcelWriter excelWriter = EasyExcel - .write(response.getOutputStream(), SalesOrderDetailDto.class) - .withTemplate(templateFileName) - .build()) { - WriteSheet writeSheet = EasyExcel.writerSheet().build(); - FillConfig fillConfig = FillConfig.builder().forceNewRow(Boolean.TRUE).build(); - excelWriter.fill(salesOrderDetailDtoList, fillConfig, writeSheet); - Map map = MapUtils.newHashMap(); - map.put("startTime", startTime); - map.put("endTime", endTime); - map.put("salesOrderNumber", salesOrderNumber); - map.put("enterpriseName", enterpriseName); - map.put("orderReceivingMode", orderReceivingMode); - map.put("finishProductCode", finishProductCode); - map.put("finishProductName", finishProductName); - map.put("commonCurrency", commonCurrency); - excelWriter.fill(map, writeSheet); - } - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/SalesOrderDetail.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/SalesOrderDetail.java deleted file mode 100644 index c49b78bf..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/SalesOrderDetail.java +++ /dev/null @@ -1,807 +0,0 @@ -package com.ruoyi.sales.domain; - -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; -import com.ruoyi.common.annotation.Excel; -import com.ruoyi.common.core.domain.BaseEntity; - -/** - * 销售订单查询对象 sales_order_detail - * - * @author ruoyi - * @date 2023-07-05 - */ -public class SalesOrderDetail extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** 订单id */ - private Long salesFinishId; - - /** 订单编号 */ - @Excel(name = "订单编号") - private String salesOrderCode; - - /** 订单号码 */ - @Excel(name = "订单号码") - private String salesOrderNumber; - - /** 客户代码 */ - @Excel(name = "客户代码") - private String enterpriseCode; - - /** 客户名称 */ - @Excel(name = "客户名称") - private String enterpriseName; - - /** 付款条件 */ - @Excel(name = "付款条件") - private String paymentTerms; - - /** 交货条件 */ - @Excel(name = "交货条件") - private String deliveryConditions; - - /** 交货方式 */ - @Excel(name = "交货方式") - private String deliveryMethod; - - /** 接单方式 */ - @Excel(name = "接单方式") - private String orderReceivingMode; - - /** 联系人 */ - @Excel(name = "联系人") - private String customerContact; - - /** 客户厂区 */ - @Excel(name = "客户厂区") - private String customerFactory; - - /** 联系电话 */ - @Excel(name = "联系电话") - private String contactNumber; - - /** 业务人员 */ - @Excel(name = "业务人员") - private String businessMembers; - - /** 传真号码 */ - @Excel(name = "传真号码") - private String customerFax; - - /** 交货地点 */ - @Excel(name = "交货地点") - private String deliveryAddress; - - /** 接单日期 */ - @Excel(name = "接单日期") - private String orderReceivingTime; - - /** 开单日期时间 */ - @Excel(name = "开单日期时间") - private String billingTime; - - /** 备注内容 */ - @Excel(name = "备注内容") - private String customerRemarks; - - /** 当前库存数 */ - @Excel(name = "当前库存数") - private String currentInventory; - - /** 信用额度 */ - @Excel(name = "信用额度") - private String creditLimit; - - /** 未付款数 */ - @Excel(name = "未付款数") - private String unpaidAmount; - - /** 可用额度 */ - @Excel(name = "可用额度") - private String availableCredit; - - /** 是否含税 */ - @Excel(name = "是否含税") - private String confirmTax; - - /** 税率 */ - @Excel(name = "税率") - private String taxRate; - - /** 合计金额 */ - @Excel(name = "合计金额") - private String totalAmount; - - /** 修改日期 */ - @Excel(name = "修改日期") - private String modificationTime; - - /** 确认日期 */ - @Excel(name = "确认日期") - private String confirmTime; - - /** 文件存储 */ - @Excel(name = "文件存储") - private String fileUpload; - - /** 确认否 */ - @Excel(name = "确认否") - private String confirmNo; - - /** 确认人 */ - @Excel(name = "确认人") - private String confirmName; - - /** 结案否 */ - @Excel(name = "结案否") - private String auditNo; - - /** 结案人 */ - @Excel(name = "结案人") - private String auditName; - - /** 结案时间 */ - @Excel(name = "结案时间") - private String auditTime; - - /** 结案备注 */ - @Excel(name = "结案备注") - private String auditRemarks; - - /** 是否开国税发票 */ - @Excel(name = "是否开国税发票") - private String nationalTaxBill; - - /** 成品代码 */ - @Excel(name = "成品代码") - private String finishProductCode; - - /** 成品名称 */ - @Excel(name = "成品名称") - private String finishProductName; - - /** 规格型号 */ - @Excel(name = "规格型号") - private String specificationModel; - - /** 客户料号 */ - @Excel(name = "客户料号") - private String customerNumber; - - /** 机种 */ - @Excel(name = "机种") - private String typeMachine; - - /** 单位 */ - @Excel(name = "单位") - private String inventoryUnit; - - /** 重量 */ - @Excel(name = "重量") - private String stockUnitWeight; - - /** 币别 */ - @Excel(name = "币别") - private String commonCurrency; - - /** 单价 */ - @Excel(name = "单价") - private String processPrice; - - /** 数量 */ - @Excel(name = "数量") - private String productQuantity; - - /** 金额 */ - @Excel(name = "金额") - private String amountMoney; - - /** 交期 */ - @Excel(name = "交期") - private String deliveryTime; - - /** Line# */ - @Excel(name = "Line#") - private String line; - - /** 版本号 */ - @Excel(name = "版本号") - private String versionNumber; - - /** 说明 */ - @Excel(name = "说明") - private String salesExplain; - - /** 客户使用否 */ - @Excel(name = "客户使用否") - private String customerUseOrNot; - - /** 客户使用数量 */ - @Excel(name = "客户使用数量") - private String customerUseQuantity; - - /** 客户使用备注说明 */ - @Excel(name = "客户使用备注说明") - private String customerUseRemarks; - - /** 对账否 */ - @Excel(name = "对账否") - private String accountReconciliationOrNot; - - /** 对账人 */ - @Excel(name = "对账人") - private String accountReconciliationPerson; - - /** 对账时间 */ - @Excel(name = "对账时间") - private String accountReconciliationTime; - - public void setSalesFinishId(Long salesFinishId) - { - this.salesFinishId = salesFinishId; - } - - public Long getSalesFinishId() - { - return salesFinishId; - } - public void setSalesOrderCode(String salesOrderCode) - { - this.salesOrderCode = salesOrderCode; - } - - public String getSalesOrderCode() - { - return salesOrderCode; - } - public void setSalesOrderNumber(String salesOrderNumber) - { - this.salesOrderNumber = salesOrderNumber; - } - - public String getSalesOrderNumber() - { - return salesOrderNumber; - } - public void setEnterpriseCode(String enterpriseCode) - { - this.enterpriseCode = enterpriseCode; - } - - public String getEnterpriseCode() - { - return enterpriseCode; - } - public void setEnterpriseName(String enterpriseName) - { - this.enterpriseName = enterpriseName; - } - - public String getEnterpriseName() - { - return enterpriseName; - } - public void setPaymentTerms(String paymentTerms) - { - this.paymentTerms = paymentTerms; - } - - public String getPaymentTerms() - { - return paymentTerms; - } - public void setDeliveryConditions(String deliveryConditions) - { - this.deliveryConditions = deliveryConditions; - } - - public String getDeliveryConditions() - { - return deliveryConditions; - } - public void setDeliveryMethod(String deliveryMethod) - { - this.deliveryMethod = deliveryMethod; - } - - public String getDeliveryMethod() - { - return deliveryMethod; - } - public void setOrderReceivingMode(String orderReceivingMode) - { - this.orderReceivingMode = orderReceivingMode; - } - - public String getOrderReceivingMode() - { - return orderReceivingMode; - } - public void setCustomerContact(String customerContact) - { - this.customerContact = customerContact; - } - - public String getCustomerContact() - { - return customerContact; - } - public void setCustomerFactory(String customerFactory) - { - this.customerFactory = customerFactory; - } - - public String getCustomerFactory() - { - return customerFactory; - } - public void setContactNumber(String contactNumber) - { - this.contactNumber = contactNumber; - } - - public String getContactNumber() - { - return contactNumber; - } - public void setBusinessMembers(String businessMembers) - { - this.businessMembers = businessMembers; - } - - public String getBusinessMembers() - { - return businessMembers; - } - public void setCustomerFax(String customerFax) - { - this.customerFax = customerFax; - } - - public String getCustomerFax() - { - return customerFax; - } - public void setDeliveryAddress(String deliveryAddress) - { - this.deliveryAddress = deliveryAddress; - } - - public String getDeliveryAddress() - { - return deliveryAddress; - } - public void setOrderReceivingTime(String orderReceivingTime) - { - this.orderReceivingTime = orderReceivingTime; - } - - public String getOrderReceivingTime() - { - return orderReceivingTime; - } - public void setBillingTime(String billingTime) - { - this.billingTime = billingTime; - } - - public String getBillingTime() - { - return billingTime; - } - public void setCustomerRemarks(String customerRemarks) - { - this.customerRemarks = customerRemarks; - } - - public String getCustomerRemarks() - { - return customerRemarks; - } - public void setCurrentInventory(String currentInventory) - { - this.currentInventory = currentInventory; - } - - public String getCurrentInventory() - { - return currentInventory; - } - public void setCreditLimit(String creditLimit) - { - this.creditLimit = creditLimit; - } - - public String getCreditLimit() - { - return creditLimit; - } - public void setUnpaidAmount(String unpaidAmount) - { - this.unpaidAmount = unpaidAmount; - } - - public String getUnpaidAmount() - { - return unpaidAmount; - } - public void setAvailableCredit(String availableCredit) - { - this.availableCredit = availableCredit; - } - - public String getAvailableCredit() - { - return availableCredit; - } - public void setConfirmTax(String confirmTax) - { - this.confirmTax = confirmTax; - } - - public String getConfirmTax() - { - return confirmTax; - } - public void setTaxRate(String taxRate) - { - this.taxRate = taxRate; - } - - public String getTaxRate() - { - return taxRate; - } - public void setTotalAmount(String totalAmount) - { - this.totalAmount = totalAmount; - } - - public String getTotalAmount() - { - return totalAmount; - } - public void setModificationTime(String modificationTime) - { - this.modificationTime = modificationTime; - } - - public String getModificationTime() - { - return modificationTime; - } - public void setConfirmTime(String confirmTime) - { - this.confirmTime = confirmTime; - } - - public String getConfirmTime() - { - return confirmTime; - } - public void setFileUpload(String fileUpload) - { - this.fileUpload = fileUpload; - } - - public String getFileUpload() - { - return fileUpload; - } - public void setConfirmNo(String confirmNo) - { - this.confirmNo = confirmNo; - } - - public String getConfirmNo() - { - return confirmNo; - } - public void setConfirmName(String confirmName) - { - this.confirmName = confirmName; - } - - public String getConfirmName() - { - return confirmName; - } - public void setAuditNo(String auditNo) - { - this.auditNo = auditNo; - } - - public String getAuditNo() - { - return auditNo; - } - public void setAuditName(String auditName) - { - this.auditName = auditName; - } - - public String getAuditName() - { - return auditName; - } - public void setAuditTime(String auditTime) - { - this.auditTime = auditTime; - } - - public String getAuditTime() - { - return auditTime; - } - public void setAuditRemarks(String auditRemarks) - { - this.auditRemarks = auditRemarks; - } - - public String getAuditRemarks() - { - return auditRemarks; - } - public void setNationalTaxBill(String nationalTaxBill) - { - this.nationalTaxBill = nationalTaxBill; - } - - public String getNationalTaxBill() - { - return nationalTaxBill; - } - public void setFinishProductCode(String finishProductCode) - { - this.finishProductCode = finishProductCode; - } - - public String getFinishProductCode() - { - return finishProductCode; - } - public void setFinishProductName(String finishProductName) - { - this.finishProductName = finishProductName; - } - - public String getFinishProductName() - { - return finishProductName; - } - public void setSpecificationModel(String specificationModel) - { - this.specificationModel = specificationModel; - } - - public String getSpecificationModel() - { - return specificationModel; - } - public void setCustomerNumber(String customerNumber) - { - this.customerNumber = customerNumber; - } - - public String getCustomerNumber() - { - return customerNumber; - } - public void setTypeMachine(String typeMachine) - { - this.typeMachine = typeMachine; - } - - public String getTypeMachine() - { - return typeMachine; - } - public void setInventoryUnit(String inventoryUnit) - { - this.inventoryUnit = inventoryUnit; - } - - public String getInventoryUnit() - { - return inventoryUnit; - } - public void setStockUnitWeight(String stockUnitWeight) - { - this.stockUnitWeight = stockUnitWeight; - } - - public String getStockUnitWeight() - { - return stockUnitWeight; - } - public void setCommonCurrency(String commonCurrency) - { - this.commonCurrency = commonCurrency; - } - - public String getCommonCurrency() - { - return commonCurrency; - } - public void setProcessPrice(String processPrice) - { - this.processPrice = processPrice; - } - - public String getProcessPrice() - { - return processPrice; - } - public void setProductQuantity(String productQuantity) - { - this.productQuantity = productQuantity; - } - - public String getProductQuantity() - { - return productQuantity; - } - public void setAmountMoney(String amountMoney) - { - this.amountMoney = amountMoney; - } - - public String getAmountMoney() - { - return amountMoney; - } - public void setDeliveryTime(String deliveryTime) - { - this.deliveryTime = deliveryTime; - } - - public String getDeliveryTime() - { - return deliveryTime; - } - public void setLine(String line) - { - this.line = line; - } - - public String getLine() - { - return line; - } - public void setVersionNumber(String versionNumber) - { - this.versionNumber = versionNumber; - } - - public String getVersionNumber() - { - return versionNumber; - } - public void setSalesExplain(String salesExplain) - { - this.salesExplain = salesExplain; - } - - public String getSalesExplain() - { - return salesExplain; - } - public void setCustomerUseOrNot(String customerUseOrNot) - { - this.customerUseOrNot = customerUseOrNot; - } - - public String getCustomerUseOrNot() - { - return customerUseOrNot; - } - public void setCustomerUseQuantity(String customerUseQuantity) - { - this.customerUseQuantity = customerUseQuantity; - } - - public String getCustomerUseQuantity() - { - return customerUseQuantity; - } - public void setCustomerUseRemarks(String customerUseRemarks) - { - this.customerUseRemarks = customerUseRemarks; - } - - public String getCustomerUseRemarks() - { - return customerUseRemarks; - } - public void setAccountReconciliationOrNot(String accountReconciliationOrNot) - { - this.accountReconciliationOrNot = accountReconciliationOrNot; - } - - public String getAccountReconciliationOrNot() - { - return accountReconciliationOrNot; - } - public void setAccountReconciliationPerson(String accountReconciliationPerson) - { - this.accountReconciliationPerson = accountReconciliationPerson; - } - - public String getAccountReconciliationPerson() - { - return accountReconciliationPerson; - } - public void setAccountReconciliationTime(String accountReconciliationTime) - { - this.accountReconciliationTime = accountReconciliationTime; - } - - public String getAccountReconciliationTime() - { - return accountReconciliationTime; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("salesFinishId", getSalesFinishId()) - .append("salesOrderCode", getSalesOrderCode()) - .append("salesOrderNumber", getSalesOrderNumber()) - .append("enterpriseCode", getEnterpriseCode()) - .append("enterpriseName", getEnterpriseName()) - .append("paymentTerms", getPaymentTerms()) - .append("deliveryConditions", getDeliveryConditions()) - .append("deliveryMethod", getDeliveryMethod()) - .append("orderReceivingMode", getOrderReceivingMode()) - .append("customerContact", getCustomerContact()) - .append("customerFactory", getCustomerFactory()) - .append("contactNumber", getContactNumber()) - .append("businessMembers", getBusinessMembers()) - .append("customerFax", getCustomerFax()) - .append("deliveryAddress", getDeliveryAddress()) - .append("orderReceivingTime", getOrderReceivingTime()) - .append("billingTime", getBillingTime()) - .append("customerRemarks", getCustomerRemarks()) - .append("currentInventory", getCurrentInventory()) - .append("creditLimit", getCreditLimit()) - .append("unpaidAmount", getUnpaidAmount()) - .append("availableCredit", getAvailableCredit()) - .append("confirmTax", getConfirmTax()) - .append("taxRate", getTaxRate()) - .append("totalAmount", getTotalAmount()) - .append("modificationTime", getModificationTime()) - .append("confirmTime", getConfirmTime()) - .append("fileUpload", getFileUpload()) - .append("confirmNo", getConfirmNo()) - .append("confirmName", getConfirmName()) - .append("auditNo", getAuditNo()) - .append("auditName", getAuditName()) - .append("auditTime", getAuditTime()) - .append("auditRemarks", getAuditRemarks()) - .append("nationalTaxBill", getNationalTaxBill()) - .append("finishProductCode", getFinishProductCode()) - .append("finishProductName", getFinishProductName()) - .append("specificationModel", getSpecificationModel()) - .append("customerNumber", getCustomerNumber()) - .append("typeMachine", getTypeMachine()) - .append("inventoryUnit", getInventoryUnit()) - .append("stockUnitWeight", getStockUnitWeight()) - .append("commonCurrency", getCommonCurrency()) - .append("processPrice", getProcessPrice()) - .append("productQuantity", getProductQuantity()) - .append("amountMoney", getAmountMoney()) - .append("deliveryTime", getDeliveryTime()) - .append("line", getLine()) - .append("versionNumber", getVersionNumber()) - .append("salesExplain", getSalesExplain()) - .append("customerUseOrNot", getCustomerUseOrNot()) - .append("customerUseQuantity", getCustomerUseQuantity()) - .append("customerUseRemarks", getCustomerUseRemarks()) - .append("accountReconciliationOrNot", getAccountReconciliationOrNot()) - .append("accountReconciliationPerson", getAccountReconciliationPerson()) - .append("accountReconciliationTime", getAccountReconciliationTime()) - .toString(); - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/SalesOrderDetailMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/SalesOrderDetailMapper.java deleted file mode 100644 index a6625d65..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/SalesOrderDetailMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.sales.mapper; - -import java.util.List; -import com.ruoyi.sales.domain.SalesOrderDetail; - -/** - * 销售订单查询Mapper接口 - * - * @author ruoyi - * @date 2023-07-05 - */ -public interface SalesOrderDetailMapper -{ - /** - * 查询销售订单查询 - * - * @param salesFinishId 销售订单查询ID - * @return 销售订单查询 - */ - public SalesOrderDetail selectSalesOrderDetailById(Long salesFinishId); - - /** - * 查询销售订单查询列表 - * - * @param salesOrderDetail 销售订单查询 - * @return 销售订单查询集合 - */ - public List selectSalesOrderDetailList(SalesOrderDetail salesOrderDetail); - - /** - * 新增销售订单查询 - * - * @param salesOrderDetail 销售订单查询 - * @return 结果 - */ - public int insertSalesOrderDetail(SalesOrderDetail salesOrderDetail); - - /** - * 修改销售订单查询 - * - * @param salesOrderDetail 销售订单查询 - * @return 结果 - */ - public int updateSalesOrderDetail(SalesOrderDetail salesOrderDetail); - - /** - * 删除销售订单查询 - * - * @param salesFinishId 销售订单查询ID - * @return 结果 - */ - public int deleteSalesOrderDetailById(Long salesFinishId); - - /** - * 批量删除销售订单查询 - * - * @param salesFinishIds 需要删除的数据ID - * @return 结果 - */ - public int deleteSalesOrderDetailByIds(String[] salesFinishIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/ISalesOrderDetailService.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/ISalesOrderDetailService.java deleted file mode 100644 index 8457ac6d..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/ISalesOrderDetailService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.sales.service; - -import java.util.List; -import com.ruoyi.sales.domain.SalesOrderDetail; - -/** - * 销售订单查询Service接口 - * - * @author ruoyi - * @date 2023-07-05 - */ -public interface ISalesOrderDetailService -{ - /** - * 查询销售订单查询 - * - * @param salesFinishId 销售订单查询ID - * @return 销售订单查询 - */ - public SalesOrderDetail selectSalesOrderDetailById(Long salesFinishId); - - /** - * 查询销售订单查询列表 - * - * @param salesOrderDetail 销售订单查询 - * @return 销售订单查询集合 - */ - public List selectSalesOrderDetailList(SalesOrderDetail salesOrderDetail); - - /** - * 新增销售订单查询 - * - * @param salesOrderDetail 销售订单查询 - * @return 结果 - */ - public int insertSalesOrderDetail(SalesOrderDetail salesOrderDetail); - - /** - * 修改销售订单查询 - * - * @param salesOrderDetail 销售订单查询 - * @return 结果 - */ - public int updateSalesOrderDetail(SalesOrderDetail salesOrderDetail); - - /** - * 批量删除销售订单查询 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteSalesOrderDetailByIds(String ids); - - /** - * 删除销售订单查询信息 - * - * @param salesFinishId 销售订单查询ID - * @return 结果 - */ - public int deleteSalesOrderDetailById(Long salesFinishId); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/SalesOrderDetailServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/SalesOrderDetailServiceImpl.java deleted file mode 100644 index e61e033c..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/SalesOrderDetailServiceImpl.java +++ /dev/null @@ -1,105 +0,0 @@ -package com.ruoyi.sales.service.impl; - -import com.ruoyi.common.core.redis.RedisCache; -import com.ruoyi.common.core.text.Convert; -import com.ruoyi.common.utils.DateUtils; -import com.ruoyi.common.utils.ShiroUtils; -import com.ruoyi.sales.domain.SalesOrderDetail; -import com.ruoyi.sales.mapper.SalesOrderDetailMapper; -import com.ruoyi.sales.service.ISalesOrderDetailService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -/** - * 销售订单查询Service业务层处理 - * - * @author ruoyi - * @date 2023-07-05 - */ -@Service -public class SalesOrderDetailServiceImpl implements ISalesOrderDetailService -{ - @Autowired - private SalesOrderDetailMapper salesOrderDetailMapper; - @Autowired - private RedisCache redisCache; - - /** - * 查询销售订单查询 - * - * @param salesFinishId 销售订单查询ID - * @return 销售订单查询 - */ - @Override - public SalesOrderDetail selectSalesOrderDetailById(Long salesFinishId) - { - return salesOrderDetailMapper.selectSalesOrderDetailById(salesFinishId); - } - - /** - * 查询销售订单查询列表 - * - * @param salesOrderDetail 销售订单查询 - * @return 销售订单查询 - */ - @Override - public List selectSalesOrderDetailList(SalesOrderDetail salesOrderDetail) - { - return salesOrderDetailMapper.selectSalesOrderDetailList(salesOrderDetail); - } - - /** - * 新增销售订单查询 - * - * @param salesOrderDetail 销售订单查询 - * @return 结果 - */ - @Override - public int insertSalesOrderDetail(SalesOrderDetail salesOrderDetail) - { - String loginName = ShiroUtils.getLoginName(); - salesOrderDetail.setUpdateBy(loginName); - salesOrderDetail.setUpdateTime(DateUtils.getNowDate()); - String saleNo = redisCache.generateBillNo("XS"); - salesOrderDetail.setSalesOrderCode(saleNo); - return salesOrderDetailMapper.insertSalesOrderDetail(salesOrderDetail); - } - - /** - * 修改销售订单查询 - * - * @param salesOrderDetail 销售订单查询 - * @return 结果 - */ - @Override - public int updateSalesOrderDetail(SalesOrderDetail salesOrderDetail) - { - return salesOrderDetailMapper.updateSalesOrderDetail(salesOrderDetail); - } - - /** - * 删除销售订单查询对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteSalesOrderDetailByIds(String ids) - { - return salesOrderDetailMapper.deleteSalesOrderDetailByIds(Convert.toStrArray(ids)); - } - - /** - * 删除销售订单查询信息 - * - * @param salesFinishId 销售订单查询ID - * @return 结果 - */ - @Override - public int deleteSalesOrderDetailById(Long salesFinishId) - { - return salesOrderDetailMapper.deleteSalesOrderDetailById(salesFinishId); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/sales/SalesOrderDetailMapper.xml b/ruoyi-admin/src/main/resources/mapper/sales/SalesOrderDetailMapper.xml deleted file mode 100644 index 00e81f2c..00000000 --- a/ruoyi-admin/src/main/resources/mapper/sales/SalesOrderDetailMapper.xml +++ /dev/null @@ -1,344 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT - ssf.sales_finish_id, - sso.sales_order_code, - sso.sales_order_number, - sso.enterprise_code, - sso.enterprise_name, - sso.payment_terms, - sso.delivery_conditions, - sso.delivery_method, - sso.order_receiving_mode, - sso.customer_contact, - sso.customer_factory, - sso.contact_number, - sso.business_members, - sso.customer_fax, - sso.delivery_address, - sso.order_receiving_time, - sso.billing_time, - sso.customer_remarks, - sso.current_inventory, - sso.credit_limit, - sso.unpaid_amount, - sso.available_credit, - sso.confirm_tax, - sso.tax_rate, - sso.total_amount, - sso.modification_time, - sso.confirm_time, - sso.file_upload, - sso.confirm_no, - sso.confirm_name, - sso.audit_no, - sso.audit_name, - sso.audit_time, - sso.audit_remarks, - sso.national_tax_bill, - ssf.finish_product_code, - ssf.finish_product_name, - ssf.specification_model, - ssf.customer_number, - ssf.type_machine, - ssf.inventory_unit, - ssf.stock_unit_weight, - ssf.common_currency, - ssf.process_price, - ssf.product_quantity, - ssf.amount_money, - ssf.delivery_time, - ssf.line, - ssf.version_number, - ssf.sales_explain, - ssf.customer_use_or_not, - ssf.customer_use_quantity, - ssf.customer_use_remarks, - ssf.account_reconciliation_or_not, - ssf.account_reconciliation_person, - ssf.account_reconciliation_time - FROM - sys_sales_finish AS ssf, - sys_sales_order AS sso - WHERE - ssf.sales_order_code = sso.sales_order_code AND - ssf.sales_order_number = sso.sales_order_number - - - - - - - - insert into sales_order_detail - - sales_order_code, - sales_order_number, - enterprise_code, - enterprise_name, - payment_terms, - delivery_conditions, - delivery_method, - order_receiving_mode, - customer_contact, - customer_factory, - contact_number, - business_members, - customer_fax, - delivery_address, - order_receiving_time, - billing_time, - customer_remarks, - current_inventory, - credit_limit, - unpaid_amount, - available_credit, - confirm_tax, - tax_rate, - total_amount, - modification_time, - confirm_time, - file_upload, - confirm_no, - confirm_name, - audit_no, - audit_name, - audit_time, - audit_remarks, - national_tax_bill, - finish_product_code, - finish_product_name, - specification_model, - customer_number, - type_machine, - inventory_unit, - stock_unit_weight, - common_currency, - process_price, - product_quantity, - amount_money, - delivery_time, - line, - version_number, - sales_explain, - customer_use_or_not, - customer_use_quantity, - customer_use_remarks, - account_reconciliation_or_not, - account_reconciliation_person, - account_reconciliation_time, - - - #{salesOrderCode}, - #{salesOrderNumber}, - #{enterpriseCode}, - #{enterpriseName}, - #{paymentTerms}, - #{deliveryConditions}, - #{deliveryMethod}, - #{orderReceivingMode}, - #{customerContact}, - #{customerFactory}, - #{contactNumber}, - #{businessMembers}, - #{customerFax}, - #{deliveryAddress}, - #{orderReceivingTime}, - #{billingTime}, - #{customerRemarks}, - #{currentInventory}, - #{creditLimit}, - #{unpaidAmount}, - #{availableCredit}, - #{confirmTax}, - #{taxRate}, - #{totalAmount}, - #{modificationTime}, - #{confirmTime}, - #{fileUpload}, - #{confirmNo}, - #{confirmName}, - #{auditNo}, - #{auditName}, - #{auditTime}, - #{auditRemarks}, - #{nationalTaxBill}, - #{finishProductCode}, - #{finishProductName}, - #{specificationModel}, - #{customerNumber}, - #{typeMachine}, - #{inventoryUnit}, - #{stockUnitWeight}, - #{commonCurrency}, - #{processPrice}, - #{productQuantity}, - #{amountMoney}, - #{deliveryTime}, - #{line}, - #{versionNumber}, - #{salesExplain}, - #{customerUseOrNot}, - #{customerUseQuantity}, - #{customerUseRemarks}, - #{accountReconciliationOrNot}, - #{accountReconciliationPerson}, - #{accountReconciliationTime}, - - - - - update sales_order_detail - - sales_order_code = #{salesOrderCode}, - sales_order_number = #{salesOrderNumber}, - enterprise_code = #{enterpriseCode}, - enterprise_name = #{enterpriseName}, - payment_terms = #{paymentTerms}, - delivery_conditions = #{deliveryConditions}, - delivery_method = #{deliveryMethod}, - order_receiving_mode = #{orderReceivingMode}, - customer_contact = #{customerContact}, - customer_factory = #{customerFactory}, - contact_number = #{contactNumber}, - business_members = #{businessMembers}, - customer_fax = #{customerFax}, - delivery_address = #{deliveryAddress}, - order_receiving_time = #{orderReceivingTime}, - billing_time = #{billingTime}, - customer_remarks = #{customerRemarks}, - current_inventory = #{currentInventory}, - credit_limit = #{creditLimit}, - unpaid_amount = #{unpaidAmount}, - available_credit = #{availableCredit}, - confirm_tax = #{confirmTax}, - tax_rate = #{taxRate}, - total_amount = #{totalAmount}, - modification_time = #{modificationTime}, - confirm_time = #{confirmTime}, - file_upload = #{fileUpload}, - confirm_no = #{confirmNo}, - confirm_name = #{confirmName}, - audit_no = #{auditNo}, - audit_name = #{auditName}, - audit_time = #{auditTime}, - audit_remarks = #{auditRemarks}, - national_tax_bill = #{nationalTaxBill}, - finish_product_code = #{finishProductCode}, - finish_product_name = #{finishProductName}, - specification_model = #{specificationModel}, - customer_number = #{customerNumber}, - type_machine = #{typeMachine}, - inventory_unit = #{inventoryUnit}, - stock_unit_weight = #{stockUnitWeight}, - common_currency = #{commonCurrency}, - process_price = #{processPrice}, - product_quantity = #{productQuantity}, - amount_money = #{amountMoney}, - delivery_time = #{deliveryTime}, - line = #{line}, - version_number = #{versionNumber}, - sales_explain = #{salesExplain}, - customer_use_or_not = #{customerUseOrNot}, - customer_use_quantity = #{customerUseQuantity}, - customer_use_remarks = #{customerUseRemarks}, - account_reconciliation_or_not = #{accountReconciliationOrNot}, - account_reconciliation_person = #{accountReconciliationPerson}, - account_reconciliation_time = #{accountReconciliationTime}, - - where sales_finish_id = #{salesFinishId} - - - - delete from sales_order_detail where sales_finish_id = #{salesFinishId} - - - - delete from sales_order_detail where sales_finish_id in - - #{salesFinishId} - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/add.html b/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/add.html deleted file mode 100644 index 65e30805..00000000 --- a/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/add.html +++ /dev/null @@ -1,369 +0,0 @@ - - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - 代码生成请选择字典属性 -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/edit.html b/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/edit.html deleted file mode 100644 index 14aa6d4e..00000000 --- a/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/edit.html +++ /dev/null @@ -1,370 +0,0 @@ - - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- - 代码生成请选择字典属性 -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/salesOrderDetail.html b/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/salesOrderDetail.html deleted file mode 100644 index 541bd136..00000000 --- a/ruoyi-admin/src/main/resources/templates/sales/salesOrderDetail/salesOrderDetail.html +++ /dev/null @@ -1,466 +0,0 @@ - - - - - - - - -
-
-
-
-
-
    -
  • - - - - - -
  • - - - - -
  • - - -
  • - - - - -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
  • - - - -
  • -
  • -  搜索 -  重置 -
  • -
-
-
-
- -
- - - - - - - - - - - 导出 - -
-
-
-
-
-
- - - - \ No newline at end of file