diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java new file mode 100644 index 00000000..7b18ba4d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/controller/SysSalesShippingInformController.java @@ -0,0 +1,151 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.ResponseBody; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.SysSalesShippingInform; +import com.ruoyi.system.service.ISysSalesShippingInformService; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 销售出货通知Controller + * + * @author 刘晓旭 + * @date 2024-07-09 + */ +@Controller +@RequestMapping("/system/salesShippingInform") +public class SysSalesShippingInformController extends BaseController +{ + private String prefix = "system/salesShippingInform"; + + @Autowired + private ISysSalesShippingInformService sysSalesShippingInformService; + + @RequiresPermissions("system:salesShippingInform:view") + @GetMapping() + public String salesShippingInform() + { + return prefix + "/salesShippingInform"; + } + + /** + * 查询销售出货通知列表 + */ + @RequiresPermissions("system:salesShippingInform:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(SysSalesShippingInform sysSalesShippingInform) + { + startPage(); + List list = sysSalesShippingInformService.selectSysSalesShippingInformList(sysSalesShippingInform); + return getDataTable(list); + } + + /** + * 导出销售出货通知列表 + */ + @RequiresPermissions("system:salesShippingInform:export") + @Log(title = "销售出货通知", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(SysSalesShippingInform sysSalesShippingInform) + { + List list = sysSalesShippingInformService.selectSysSalesShippingInformList(sysSalesShippingInform); + ExcelUtil util = new ExcelUtil(SysSalesShippingInform.class); + return util.exportExcel(list, "销售出货通知数据"); + } + + /** + * 新增销售出货通知 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存销售出货通知 + */ + @RequiresPermissions("system:salesShippingInform:add") + @Log(title = "销售出货通知", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(SysSalesShippingInform sysSalesShippingInform) + { + return toAjax(sysSalesShippingInformService.insertSysSalesShippingInform(sysSalesShippingInform)); + } + + /** + * 修改销售出货通知 + */ + @GetMapping("/edit/{shippingInformId}") + public String edit(@PathVariable("shippingInformId") Long shippingInformId, ModelMap mmap) + { + SysSalesShippingInform sysSalesShippingInform = sysSalesShippingInformService.selectSysSalesShippingInformById(shippingInformId); + mmap.put("sysSalesShippingInform", sysSalesShippingInform); + return prefix + "/edit"; + } + + /** + * 修改保存销售出货通知 + */ + @RequiresPermissions("system:salesShippingInform:edit") + @Log(title = "销售出货通知", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(SysSalesShippingInform sysSalesShippingInform) + { + return toAjax(sysSalesShippingInformService.updateSysSalesShippingInform(sysSalesShippingInform)); + } + + /** + * 删除销售出货通知 + */ + @RequiresPermissions("system:salesShippingInform:remove") + @Log(title = "销售出货通知", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(sysSalesShippingInformService.deleteSysSalesShippingInformByIds(ids)); + } + + /** + * 作废销售出货通知 + */ + @RequiresPermissions("system:salesShippingInform:cancel") + @Log(title = "销售出货通知", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(sysSalesShippingInformService.cancelSysSalesShippingInformById(id)); + } + + /** + * 恢复销售出货通知 + */ + @RequiresPermissions("system:salesShippingInform:restore") + @Log(title = "销售出货通知", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(sysSalesShippingInformService.restoreSysSalesShippingInformById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesShippingInform.java b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesShippingInform.java new file mode 100644 index 00000000..538865a8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/domain/SysSalesShippingInform.java @@ -0,0 +1,356 @@ +package com.ruoyi.system.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +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; + +/** + * 销售出货通知对象 sys_sales_shipping_inform + * + * @author 刘晓旭 + * @date 2024-07-09 + */ +public class SysSalesShippingInform extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 出货通知单id */ + private Long shippingInformId; + + /** 出库单号 */ + @Excel(name = "出库单号") + private String outOrderCode; + + /** 出库状态(0待仓库准备物料、1待售后维护设备1、2待业务确认发货、3待售后维护设备2、4待出库、5部分出库、6全部出库、7已出库、8已取消) */ + @Excel(name = "出库状态", readConverterExp = "0=待仓库准备物料、1待售后维护设备1、2待业务确认发货、3待售后维护设备2、4待出库、5部分出库、6全部出库、7已出库、8已取消") + private String warehouseOutStatus; + + /** 关联销售订单号 */ + @Excel(name = "关联销售订单号") + private String salesOrderCode; + + /** 出库类型(0销售出库、1生产领料、2员工领料、3委外领料、4公司退货、5工程领料) */ + @Excel(name = "出库类型", readConverterExp = "0=销售出库、1生产领料、2员工领料、3委外领料、4公司退货、5工程领料") + private String warehouseOutType; + + /** 出库订单类型(0销售订单、1生产订单、2请购订单、3委外订单、4退换货订单、5开发修改单) */ + @Excel(name = "出库订单类型", readConverterExp = "0=销售订单、1生产订单、2请购订单、3委外订单、4退换货订单、5开发修改单") + private String warehouseOrderType; + + /** 客户代码/id */ + @Excel(name = "客户代码/id") + private String customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 业务员 */ + @Excel(name = "业务员") + private String businessMembers; + + /** 客户订单号 */ + @Excel(name = "客户订单号") + private String salesOrderNumber; + + /** 物料合计 */ + @Excel(name = "物料合计") + private Integer materialSum; + + /** 数量合计 */ + @Excel(name = "数量合计") + private Integer enterpriseSum; + + /** 收货联系人 */ + @Excel(name = "收货联系人") + private String customerContact; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String contactNumber; + + /** 收货地址 */ + @Excel(name = "收货地址") + private String customerContactAddress; + + /** 不含税总价(RMB) */ + @Excel(name = "不含税总价", readConverterExp = "R=MB") + private BigDecimal allPriceExcludingTaxRmb; + + /** 不含税总价(美元) */ + @Excel(name = "不含税总价", readConverterExp = "美=元") + private BigDecimal allPriceExcludingTaxDollar; + + /** 含税总价(RMB) */ + @Excel(name = "含税总价", readConverterExp = "R=MB") + private BigDecimal allPriceIncludesTax; + + /** 计划交付时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "计划交付时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date plannedDeliveryTime; + + /** 客户验收时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "客户验收时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date acceptanceTime; + + /** 付款条件 */ + @Excel(name = "付款条件") + private String paymentCondition; + + /** 交付条件 */ + @Excel(name = "交付条件") + private String deliveryCondition; + + /** 送货日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "送货日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date deliverTime; + + public void setShippingInformId(Long shippingInformId) + { + this.shippingInformId = shippingInformId; + } + + public Long getShippingInformId() + { + return shippingInformId; + } + public void setOutOrderCode(String outOrderCode) + { + this.outOrderCode = outOrderCode; + } + + public String getOutOrderCode() + { + return outOrderCode; + } + public void setWarehouseOutStatus(String warehouseOutStatus) + { + this.warehouseOutStatus = warehouseOutStatus; + } + + public String getWarehouseOutStatus() + { + return warehouseOutStatus; + } + public void setSalesOrderCode(String salesOrderCode) + { + this.salesOrderCode = salesOrderCode; + } + + public String getSalesOrderCode() + { + return salesOrderCode; + } + public void setWarehouseOutType(String warehouseOutType) + { + this.warehouseOutType = warehouseOutType; + } + + public String getWarehouseOutType() + { + return warehouseOutType; + } + public void setWarehouseOrderType(String warehouseOrderType) + { + this.warehouseOrderType = warehouseOrderType; + } + + public String getWarehouseOrderType() + { + return warehouseOrderType; + } + public void setCustomerId(String customerId) + { + this.customerId = customerId; + } + + public String getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setBusinessMembers(String businessMembers) + { + this.businessMembers = businessMembers; + } + + public String getBusinessMembers() + { + return businessMembers; + } + public void setSalesOrderNumber(String salesOrderNumber) + { + this.salesOrderNumber = salesOrderNumber; + } + + public String getSalesOrderNumber() + { + return salesOrderNumber; + } + public void setMaterialSum(Integer materialSum) + { + this.materialSum = materialSum; + } + + public Integer getMaterialSum() + { + return materialSum; + } + public void setEnterpriseSum(Integer enterpriseSum) + { + this.enterpriseSum = enterpriseSum; + } + + public Integer getEnterpriseSum() + { + return enterpriseSum; + } + public void setCustomerContact(String customerContact) + { + this.customerContact = customerContact; + } + + public String getCustomerContact() + { + return customerContact; + } + public void setContactNumber(String contactNumber) + { + this.contactNumber = contactNumber; + } + + public String getContactNumber() + { + return contactNumber; + } + public void setCustomerContactAddress(String customerContactAddress) + { + this.customerContactAddress = customerContactAddress; + } + + public String getCustomerContactAddress() + { + return customerContactAddress; + } + public void setAllPriceExcludingTaxRmb(BigDecimal allPriceExcludingTaxRmb) + { + this.allPriceExcludingTaxRmb = allPriceExcludingTaxRmb; + } + + public BigDecimal getAllPriceExcludingTaxRmb() + { + return allPriceExcludingTaxRmb; + } + public void setAllPriceExcludingTaxDollar(BigDecimal allPriceExcludingTaxDollar) + { + this.allPriceExcludingTaxDollar = allPriceExcludingTaxDollar; + } + + public BigDecimal getAllPriceExcludingTaxDollar() + { + return allPriceExcludingTaxDollar; + } + public void setAllPriceIncludesTax(BigDecimal allPriceIncludesTax) + { + this.allPriceIncludesTax = allPriceIncludesTax; + } + + public BigDecimal getAllPriceIncludesTax() + { + return allPriceIncludesTax; + } + public void setPlannedDeliveryTime(Date plannedDeliveryTime) + { + this.plannedDeliveryTime = plannedDeliveryTime; + } + + public Date getPlannedDeliveryTime() + { + return plannedDeliveryTime; + } + public void setAcceptanceTime(Date acceptanceTime) + { + this.acceptanceTime = acceptanceTime; + } + + public Date getAcceptanceTime() + { + return acceptanceTime; + } + public void setPaymentCondition(String paymentCondition) + { + this.paymentCondition = paymentCondition; + } + + public String getPaymentCondition() + { + return paymentCondition; + } + public void setDeliveryCondition(String deliveryCondition) + { + this.deliveryCondition = deliveryCondition; + } + + public String getDeliveryCondition() + { + return deliveryCondition; + } + public void setDeliverTime(Date deliverTime) + { + this.deliverTime = deliverTime; + } + + public Date getDeliverTime() + { + return deliverTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("shippingInformId", getShippingInformId()) + .append("outOrderCode", getOutOrderCode()) + .append("warehouseOutStatus", getWarehouseOutStatus()) + .append("salesOrderCode", getSalesOrderCode()) + .append("warehouseOutType", getWarehouseOutType()) + .append("warehouseOrderType", getWarehouseOrderType()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("businessMembers", getBusinessMembers()) + .append("salesOrderNumber", getSalesOrderNumber()) + .append("materialSum", getMaterialSum()) + .append("enterpriseSum", getEnterpriseSum()) + .append("customerContact", getCustomerContact()) + .append("contactNumber", getContactNumber()) + .append("customerContactAddress", getCustomerContactAddress()) + .append("createTime", getCreateTime()) + .append("createBy", getCreateBy()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("allPriceExcludingTaxRmb", getAllPriceExcludingTaxRmb()) + .append("allPriceExcludingTaxDollar", getAllPriceExcludingTaxDollar()) + .append("allPriceIncludesTax", getAllPriceIncludesTax()) + .append("plannedDeliveryTime", getPlannedDeliveryTime()) + .append("acceptanceTime", getAcceptanceTime()) + .append("paymentCondition", getPaymentCondition()) + .append("deliveryCondition", getDeliveryCondition()) + .append("deliverTime", getDeliverTime()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesShippingInformMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesShippingInformMapper.java new file mode 100644 index 00000000..3aae2e63 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/mapper/SysSalesShippingInformMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.SysSalesShippingInform; + +/** + * 销售出货通知Mapper接口 + * + * @author 刘晓旭 + * @date 2024-07-09 + */ +public interface SysSalesShippingInformMapper +{ + /** + * 查询销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 销售出货通知 + */ + public SysSalesShippingInform selectSysSalesShippingInformById(Long shippingInformId); + + /** + * 查询销售出货通知列表 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 销售出货通知集合 + */ + public List selectSysSalesShippingInformList(SysSalesShippingInform sysSalesShippingInform); + + /** + * 新增销售出货通知 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 结果 + */ + public int insertSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); + + /** + * 修改销售出货通知 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 结果 + */ + public int updateSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); + + /** + * 删除销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + public int deleteSysSalesShippingInformById(Long shippingInformId); + + /** + * 批量删除销售出货通知 + * + * @param shippingInformIds 需要删除的数据ID + * @return 结果 + */ + public int deleteSysSalesShippingInformByIds(String[] shippingInformIds); + + /** + * 作废销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + public int cancelSysSalesShippingInformById(Long shippingInformId); + + /** + * 恢复销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + public int restoreSysSalesShippingInformById(Long shippingInformId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java new file mode 100644 index 00000000..3cd18bc3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/ISysSalesShippingInformService.java @@ -0,0 +1,75 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.SysSalesShippingInform; + +/** + * 销售出货通知Service接口 + * + * @author 刘晓旭 + * @date 2024-07-09 + */ +public interface ISysSalesShippingInformService +{ + /** + * 查询销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 销售出货通知 + */ + public SysSalesShippingInform selectSysSalesShippingInformById(Long shippingInformId); + + /** + * 查询销售出货通知列表 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 销售出货通知集合 + */ + public List selectSysSalesShippingInformList(SysSalesShippingInform sysSalesShippingInform); + + /** + * 新增销售出货通知 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 结果 + */ + public int insertSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); + + /** + * 修改销售出货通知 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 结果 + */ + public int updateSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform); + + /** + * 批量删除销售出货通知 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteSysSalesShippingInformByIds(String ids); + + /** + * 删除销售出货通知信息 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + public int deleteSysSalesShippingInformById(Long shippingInformId); + + /** + * 作废销售出货通知 + * @param shippingInformId 销售出货通知ID + * @return + */ + int cancelSysSalesShippingInformById(Long shippingInformId); + + /** + * 恢复销售出货通知 + * @param shippingInformId 销售出货通知ID + * @return + */ + int restoreSysSalesShippingInformById(Long shippingInformId); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java new file mode 100644 index 00000000..44056899 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/system/service/impl/SysSalesShippingInformServiceImpl.java @@ -0,0 +1,126 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import com.ruoyi.common.utils.ShiroUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.SysSalesShippingInformMapper; +import com.ruoyi.system.domain.SysSalesShippingInform; +import com.ruoyi.system.service.ISysSalesShippingInformService; +import com.ruoyi.common.core.text.Convert; + +/** + * 销售出货通知Service业务层处理 + * + * @author 刘晓旭 + * @date 2024-07-09 + */ +@Service +public class SysSalesShippingInformServiceImpl implements ISysSalesShippingInformService +{ + @Autowired + private SysSalesShippingInformMapper sysSalesShippingInformMapper; + + /** + * 查询销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 销售出货通知 + */ + @Override + public SysSalesShippingInform selectSysSalesShippingInformById(Long shippingInformId) + { + return sysSalesShippingInformMapper.selectSysSalesShippingInformById(shippingInformId); + } + + /** + * 查询销售出货通知列表 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 销售出货通知 + */ + @Override + public List selectSysSalesShippingInformList(SysSalesShippingInform sysSalesShippingInform) + { + return sysSalesShippingInformMapper.selectSysSalesShippingInformList(sysSalesShippingInform); + } + + /** + * 新增销售出货通知 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 结果 + */ + @Override + public int insertSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform) + { + sysSalesShippingInform.setCreateTime(DateUtils.getNowDate()); + String loginName = ShiroUtils.getLoginName(); + sysSalesShippingInform.setCreateBy(loginName); + return sysSalesShippingInformMapper.insertSysSalesShippingInform(sysSalesShippingInform); + } + + /** + * 修改销售出货通知 + * + * @param sysSalesShippingInform 销售出货通知 + * @return 结果 + */ + @Override + public int updateSysSalesShippingInform(SysSalesShippingInform sysSalesShippingInform) + { + String loginName = ShiroUtils.getLoginName(); + sysSalesShippingInform.setUpdateBy(loginName); + sysSalesShippingInform.setUpdateTime(DateUtils.getNowDate()); + return sysSalesShippingInformMapper.updateSysSalesShippingInform(sysSalesShippingInform); + } + + /** + * 删除销售出货通知对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteSysSalesShippingInformByIds(String ids) + { + return sysSalesShippingInformMapper.deleteSysSalesShippingInformByIds(Convert.toStrArray(ids)); + } + + /** + * 删除销售出货通知信息 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + @Override + public int deleteSysSalesShippingInformById(Long shippingInformId) + { + return sysSalesShippingInformMapper.deleteSysSalesShippingInformById(shippingInformId); + } + + /** + * 作废销售出货通知 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + @Override + public int cancelSysSalesShippingInformById(Long shippingInformId) + { + return sysSalesShippingInformMapper.cancelSysSalesShippingInformById(shippingInformId); + } + + /** + * 恢复销售出货通知信息 + * + * @param shippingInformId 销售出货通知ID + * @return 结果 + */ + @Override + public int restoreSysSalesShippingInformById(Long shippingInformId) + { + return sysSalesShippingInformMapper.restoreSysSalesShippingInformById(shippingInformId); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformMapper.xml b/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformMapper.xml new file mode 100644 index 00000000..05686663 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformMapper.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select shipping_inform_id, out_order_code, warehouse_out_status, sales_order_code, warehouse_out_type, warehouse_order_type, customer_id, customer_name, business_members, sales_order_number, material_sum, enterprise_sum, customer_contact, contact_number, customer_contact_address, create_time, create_by, update_by, update_time, remark, all_price_excluding_tax_rmb, all_price_excluding_tax_dollar, all_price_includes_tax, planned_delivery_time, acceptance_time, payment_condition, delivery_condition, deliver_time from sys_sales_shipping_inform + + + + + + + + insert into sys_sales_shipping_inform + + out_order_code, + warehouse_out_status, + sales_order_code, + warehouse_out_type, + warehouse_order_type, + customer_id, + customer_name, + business_members, + sales_order_number, + material_sum, + enterprise_sum, + customer_contact, + contact_number, + customer_contact_address, + create_time, + create_by, + update_by, + update_time, + remark, + all_price_excluding_tax_rmb, + all_price_excluding_tax_dollar, + all_price_includes_tax, + planned_delivery_time, + acceptance_time, + payment_condition, + delivery_condition, + deliver_time, + + + #{outOrderCode}, + #{warehouseOutStatus}, + #{salesOrderCode}, + #{warehouseOutType}, + #{warehouseOrderType}, + #{customerId}, + #{customerName}, + #{businessMembers}, + #{salesOrderNumber}, + #{materialSum}, + #{enterpriseSum}, + #{customerContact}, + #{contactNumber}, + #{customerContactAddress}, + #{createTime}, + #{createBy}, + #{updateBy}, + #{updateTime}, + #{remark}, + #{allPriceExcludingTaxRmb}, + #{allPriceExcludingTaxDollar}, + #{allPriceIncludesTax}, + #{plannedDeliveryTime}, + #{acceptanceTime}, + #{paymentCondition}, + #{deliveryCondition}, + #{deliverTime}, + + + + + update sys_sales_shipping_inform + + out_order_code = #{outOrderCode}, + warehouse_out_status = #{warehouseOutStatus}, + sales_order_code = #{salesOrderCode}, + warehouse_out_type = #{warehouseOutType}, + warehouse_order_type = #{warehouseOrderType}, + customer_id = #{customerId}, + customer_name = #{customerName}, + business_members = #{businessMembers}, + sales_order_number = #{salesOrderNumber}, + material_sum = #{materialSum}, + enterprise_sum = #{enterpriseSum}, + customer_contact = #{customerContact}, + contact_number = #{contactNumber}, + customer_contact_address = #{customerContactAddress}, + create_time = #{createTime}, + create_by = #{createBy}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + all_price_excluding_tax_rmb = #{allPriceExcludingTaxRmb}, + all_price_excluding_tax_dollar = #{allPriceExcludingTaxDollar}, + all_price_includes_tax = #{allPriceIncludesTax}, + planned_delivery_time = #{plannedDeliveryTime}, + acceptance_time = #{acceptanceTime}, + payment_condition = #{paymentCondition}, + delivery_condition = #{deliveryCondition}, + deliver_time = #{deliverTime}, + + where shipping_inform_id = #{shippingInformId} + + + + delete from sys_sales_shipping_inform where shipping_inform_id = #{shippingInformId} + + + + delete from sys_sales_shipping_inform where shipping_inform_id in + + #{shippingInformId} + + + + + update sys_sales_shipping_inform set del_flag = '1' where shipping_inform_id = #{shippingInformId} + + + + update sys_sales_shipping_inform set del_flag = '0' where shipping_inform_id = #{shippingInformId} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/add.html b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/add.html new file mode 100644 index 00000000..09499928 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/add.html @@ -0,0 +1,198 @@ + + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/edit.html b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/edit.html new file mode 100644 index 00000000..a69e93a9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/edit.html @@ -0,0 +1,199 @@ + + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + +
+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html new file mode 100644 index 00000000..20a1664d --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html @@ -0,0 +1,234 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file