diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/DemoSalesServiceInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/DemoSalesServiceInfoController.java deleted file mode 100644 index 598e5b6e..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/controller/DemoSalesServiceInfoController.java +++ /dev/null @@ -1,126 +0,0 @@ -package com.ruoyi.sales.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.sales.domain.DemoSalesServiceInfo; -import com.ruoyi.sales.service.IDemoSalesServiceInfoService; -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; - -/** - * 销售服务主表demoController - * - * @author ruoyi - * @date 2023-07-18 - */ -@Controller -@RequestMapping("/sales/demoSalesServiceInfo") -public class DemoSalesServiceInfoController extends BaseController -{ - private String prefix = "sales/demoSalesServiceInfo"; - - @Autowired - private IDemoSalesServiceInfoService demoSalesServiceInfoService; - - @RequiresPermissions("sales:demoSalesServiceInfo:view") - @GetMapping() - public String demoSalesServiceInfo() - { - return prefix + "/demoSalesServiceInfo"; - } - - /** - * 查询销售服务主表demo列表 - */ - @RequiresPermissions("sales:demoSalesServiceInfo:list") - @PostMapping("/list") - @ResponseBody - public TableDataInfo list(DemoSalesServiceInfo demoSalesServiceInfo) - { - startPage(); - List list = demoSalesServiceInfoService.selectDemoSalesServiceInfoList(demoSalesServiceInfo); - return getDataTable(list); - } - - /** - * 导出销售服务主表demo列表 - */ - @RequiresPermissions("sales:demoSalesServiceInfo:export") - @Log(title = "销售服务主表demo", businessType = BusinessType.EXPORT) - @PostMapping("/export") - @ResponseBody - public AjaxResult export(DemoSalesServiceInfo demoSalesServiceInfo) - { - List list = demoSalesServiceInfoService.selectDemoSalesServiceInfoList(demoSalesServiceInfo); - ExcelUtil util = new ExcelUtil(DemoSalesServiceInfo.class); - return util.exportExcel(list, "销售服务主表demo数据"); - } - - /** - * 新增销售服务主表demo - */ - @GetMapping("/add") - public String add() - { - return prefix + "/add"; - } - - /** - * 新增保存销售服务主表demo - */ - @RequiresPermissions("sales:demoSalesServiceInfo:add") - @Log(title = "销售服务主表demo", businessType = BusinessType.INSERT) - @PostMapping("/add") - @ResponseBody - public AjaxResult addSave(DemoSalesServiceInfo demoSalesServiceInfo) - { - return toAjax(demoSalesServiceInfoService.insertDemoSalesServiceInfo(demoSalesServiceInfo)); - } - - /** - * 修改销售服务主表demo - */ - @GetMapping("/edit/{salesServiceInfoId}") - public String edit(@PathVariable("salesServiceInfoId") Long salesServiceInfoId, ModelMap mmap) - { - DemoSalesServiceInfo demoSalesServiceInfo = demoSalesServiceInfoService.selectDemoSalesServiceInfoById(salesServiceInfoId); - mmap.put("demoSalesServiceInfo", demoSalesServiceInfo); - return prefix + "/edit"; - } - - /** - * 修改保存销售服务主表demo - */ - @RequiresPermissions("sales:demoSalesServiceInfo:edit") - @Log(title = "销售服务主表demo", businessType = BusinessType.UPDATE) - @PostMapping("/edit") - @ResponseBody - public AjaxResult editSave(DemoSalesServiceInfo demoSalesServiceInfo) - { - return toAjax(demoSalesServiceInfoService.updateDemoSalesServiceInfo(demoSalesServiceInfo)); - } - - /** - * 删除销售服务主表demo - */ - @RequiresPermissions("sales:demoSalesServiceInfo:remove") - @Log(title = "销售服务主表demo", businessType = BusinessType.DELETE) - @PostMapping( "/remove") - @ResponseBody - public AjaxResult remove(String ids) - { - return toAjax(demoSalesServiceInfoService.deleteDemoSalesServiceInfoByIds(ids)); - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/DemoSalesServiceInfo.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/DemoSalesServiceInfo.java deleted file mode 100644 index cdab221d..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/domain/DemoSalesServiceInfo.java +++ /dev/null @@ -1,233 +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; - -/** - * 销售服务主表demo对象 demo_sales_service_info - * - * @author ruoyi - * @date 2023-07-18 - */ -public class DemoSalesServiceInfo extends BaseEntity -{ - private static final long serialVersionUID = 1L; - - /** */ - private Long salesServiceInfoId; - - /** 产品序列号 */ - @Excel(name = "产品序列号") - private String productId; - - /** 产品型号 */ - @Excel(name = "产品型号") - private String model; - - /** 版本号 */ - @Excel(name = "版本号") - private String version; - - /** 入库日期 */ - @Excel(name = "入库日期") - private String warehousingTime; - - /** 出库日期 */ - @Excel(name = "出库日期") - private String deliveryTime; - - /** 客户收货日期 */ - @Excel(name = "客户收货日期") - private String receivingTime; - - /** 内部订单号 */ - @Excel(name = "内部订单号") - private String internalOrderNumber; - - /** 客户订单号 */ - @Excel(name = "客户订单号") - private String customerOrderNumber; - - /** 送货地址 */ - @Excel(name = "送货地址") - private String shippingAddress; - - /** 出货地址 */ - @Excel(name = "出货地址") - private String deliveryAddress; - - /** 单据日期 */ - @Excel(name = "单据日期") - private String documentDate; - - /** 审批状态 */ - @Excel(name = "审批状态") - private String approvalStatus; - - /** 订单状态 */ - @Excel(name = "订单状态") - private String orderStatus; - - /** 是否含税 */ - @Excel(name = "是否含税") - private String isTax; - - public void setSalesServiceInfoId(Long salesServiceInfoId) - { - this.salesServiceInfoId = salesServiceInfoId; - } - - public Long getSalesServiceInfoId() - { - return salesServiceInfoId; - } - public void setProductId(String productId) - { - this.productId = productId; - } - - public String getProductId() - { - return productId; - } - public void setModel(String model) - { - this.model = model; - } - - public String getModel() - { - return model; - } - public void setVersion(String version) - { - this.version = version; - } - - public String getVersion() - { - return version; - } - public void setWarehousingTime(String warehousingTime) - { - this.warehousingTime = warehousingTime; - } - - public String getWarehousingTime() - { - return warehousingTime; - } - public void setDeliveryTime(String deliveryTime) - { - this.deliveryTime = deliveryTime; - } - - public String getDeliveryTime() - { - return deliveryTime; - } - public void setReceivingTime(String receivingTime) - { - this.receivingTime = receivingTime; - } - - public String getReceivingTime() - { - return receivingTime; - } - public void setInternalOrderNumber(String internalOrderNumber) - { - this.internalOrderNumber = internalOrderNumber; - } - - public String getInternalOrderNumber() - { - return internalOrderNumber; - } - public void setCustomerOrderNumber(String customerOrderNumber) - { - this.customerOrderNumber = customerOrderNumber; - } - - public String getCustomerOrderNumber() - { - return customerOrderNumber; - } - public void setShippingAddress(String shippingAddress) - { - this.shippingAddress = shippingAddress; - } - - public String getShippingAddress() - { - return shippingAddress; - } - public void setDeliveryAddress(String deliveryAddress) - { - this.deliveryAddress = deliveryAddress; - } - - public String getDeliveryAddress() - { - return deliveryAddress; - } - public void setDocumentDate(String documentDate) - { - this.documentDate = documentDate; - } - - public String getDocumentDate() - { - return documentDate; - } - public void setApprovalStatus(String approvalStatus) - { - this.approvalStatus = approvalStatus; - } - - public String getApprovalStatus() - { - return approvalStatus; - } - public void setOrderStatus(String orderStatus) - { - this.orderStatus = orderStatus; - } - - public String getOrderStatus() - { - return orderStatus; - } - public void setIsTax(String isTax) - { - this.isTax = isTax; - } - - public String getIsTax() - { - return isTax; - } - - @Override - public String toString() { - return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) - .append("salesServiceInfoId", getSalesServiceInfoId()) - .append("productId", getProductId()) - .append("model", getModel()) - .append("version", getVersion()) - .append("warehousingTime", getWarehousingTime()) - .append("deliveryTime", getDeliveryTime()) - .append("receivingTime", getReceivingTime()) - .append("internalOrderNumber", getInternalOrderNumber()) - .append("customerOrderNumber", getCustomerOrderNumber()) - .append("shippingAddress", getShippingAddress()) - .append("deliveryAddress", getDeliveryAddress()) - .append("documentDate", getDocumentDate()) - .append("approvalStatus", getApprovalStatus()) - .append("orderStatus", getOrderStatus()) - .append("isTax", getIsTax()) - .toString(); - } -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/DemoSalesServiceInfoMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/DemoSalesServiceInfoMapper.java deleted file mode 100644 index 7b7b716c..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/mapper/DemoSalesServiceInfoMapper.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.sales.mapper; - -import java.util.List; -import com.ruoyi.sales.domain.DemoSalesServiceInfo; - -/** - * 销售服务主表demoMapper接口 - * - * @author ruoyi - * @date 2023-07-18 - */ -public interface DemoSalesServiceInfoMapper -{ - /** - * 查询销售服务主表demo - * - * @param salesServiceInfoId 销售服务主表demoID - * @return 销售服务主表demo - */ - public DemoSalesServiceInfo selectDemoSalesServiceInfoById(Long salesServiceInfoId); - - /** - * 查询销售服务主表demo列表 - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 销售服务主表demo集合 - */ - public List selectDemoSalesServiceInfoList(DemoSalesServiceInfo demoSalesServiceInfo); - - /** - * 新增销售服务主表demo - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 结果 - */ - public int insertDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); - - /** - * 修改销售服务主表demo - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 结果 - */ - public int updateDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); - - /** - * 删除销售服务主表demo - * - * @param salesServiceInfoId 销售服务主表demoID - * @return 结果 - */ - public int deleteDemoSalesServiceInfoById(Long salesServiceInfoId); - - /** - * 批量删除销售服务主表demo - * - * @param salesServiceInfoIds 需要删除的数据ID - * @return 结果 - */ - public int deleteDemoSalesServiceInfoByIds(String[] salesServiceInfoIds); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/IDemoSalesServiceInfoService.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/IDemoSalesServiceInfoService.java deleted file mode 100644 index 0bcf19ea..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/IDemoSalesServiceInfoService.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.ruoyi.sales.service; - -import java.util.List; -import com.ruoyi.sales.domain.DemoSalesServiceInfo; - -/** - * 销售服务主表demoService接口 - * - * @author ruoyi - * @date 2023-07-18 - */ -public interface IDemoSalesServiceInfoService -{ - /** - * 查询销售服务主表demo - * - * @param salesServiceInfoId 销售服务主表demoID - * @return 销售服务主表demo - */ - public DemoSalesServiceInfo selectDemoSalesServiceInfoById(Long salesServiceInfoId); - - /** - * 查询销售服务主表demo列表 - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 销售服务主表demo集合 - */ - public List selectDemoSalesServiceInfoList(DemoSalesServiceInfo demoSalesServiceInfo); - - /** - * 新增销售服务主表demo - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 结果 - */ - public int insertDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); - - /** - * 修改销售服务主表demo - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 结果 - */ - public int updateDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo); - - /** - * 批量删除销售服务主表demo - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - public int deleteDemoSalesServiceInfoByIds(String ids); - - /** - * 删除销售服务主表demo信息 - * - * @param salesServiceInfoId 销售服务主表demoID - * @return 结果 - */ - public int deleteDemoSalesServiceInfoById(Long salesServiceInfoId); -} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/DemoSalesServiceInfoServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/DemoSalesServiceInfoServiceImpl.java deleted file mode 100644 index bcd560df..00000000 --- a/ruoyi-admin/src/main/java/com/ruoyi/sales/service/impl/DemoSalesServiceInfoServiceImpl.java +++ /dev/null @@ -1,94 +0,0 @@ -package com.ruoyi.sales.service.impl; - -import java.util.List; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; -import com.ruoyi.sales.mapper.DemoSalesServiceInfoMapper; -import com.ruoyi.sales.domain.DemoSalesServiceInfo; -import com.ruoyi.sales.service.IDemoSalesServiceInfoService; -import com.ruoyi.common.core.text.Convert; - -/** - * 销售服务主表demoService业务层处理 - * - * @author ruoyi - * @date 2023-07-18 - */ -@Service -public class DemoSalesServiceInfoServiceImpl implements IDemoSalesServiceInfoService -{ - @Autowired - private DemoSalesServiceInfoMapper demoSalesServiceInfoMapper; - - /** - * 查询销售服务主表demo - * - * @param salesServiceInfoId 销售服务主表demoID - * @return 销售服务主表demo - */ - @Override - public DemoSalesServiceInfo selectDemoSalesServiceInfoById(Long salesServiceInfoId) - { - return demoSalesServiceInfoMapper.selectDemoSalesServiceInfoById(salesServiceInfoId); - } - - /** - * 查询销售服务主表demo列表 - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 销售服务主表demo - */ - @Override - public List selectDemoSalesServiceInfoList(DemoSalesServiceInfo demoSalesServiceInfo) - { - return demoSalesServiceInfoMapper.selectDemoSalesServiceInfoList(demoSalesServiceInfo); - } - - /** - * 新增销售服务主表demo - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 结果 - */ - @Override - public int insertDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo) - { - return demoSalesServiceInfoMapper.insertDemoSalesServiceInfo(demoSalesServiceInfo); - } - - /** - * 修改销售服务主表demo - * - * @param demoSalesServiceInfo 销售服务主表demo - * @return 结果 - */ - @Override - public int updateDemoSalesServiceInfo(DemoSalesServiceInfo demoSalesServiceInfo) - { - return demoSalesServiceInfoMapper.updateDemoSalesServiceInfo(demoSalesServiceInfo); - } - - /** - * 删除销售服务主表demo对象 - * - * @param ids 需要删除的数据ID - * @return 结果 - */ - @Override - public int deleteDemoSalesServiceInfoByIds(String ids) - { - return demoSalesServiceInfoMapper.deleteDemoSalesServiceInfoByIds(Convert.toStrArray(ids)); - } - - /** - * 删除销售服务主表demo信息 - * - * @param salesServiceInfoId 销售服务主表demoID - * @return 结果 - */ - @Override - public int deleteDemoSalesServiceInfoById(Long salesServiceInfoId) - { - return demoSalesServiceInfoMapper.deleteDemoSalesServiceInfoById(salesServiceInfoId); - } -} diff --git a/ruoyi-admin/src/main/resources/mapper/sales/DemoSalesServiceInfoMapper.xml b/ruoyi-admin/src/main/resources/mapper/sales/DemoSalesServiceInfoMapper.xml deleted file mode 100644 index cdf689ff..00000000 --- a/ruoyi-admin/src/main/resources/mapper/sales/DemoSalesServiceInfoMapper.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - select sales_service_info_id, product_id, model, version, warehousing_time, delivery_time, receiving_time, internal_order_number, customer_order_number, shipping_address, delivery_address, document_date, approval_status, order_status, is_tax from demo_sales_service_info - - - - - - - - insert into demo_sales_service_info - - product_id, - model, - version, - warehousing_time, - delivery_time, - receiving_time, - internal_order_number, - customer_order_number, - shipping_address, - delivery_address, - document_date, - approval_status, - order_status, - is_tax, - - - #{productId}, - #{model}, - #{version}, - #{warehousingTime}, - #{deliveryTime}, - #{receivingTime}, - #{internalOrderNumber}, - #{customerOrderNumber}, - #{shippingAddress}, - #{deliveryAddress}, - #{documentDate}, - #{approvalStatus}, - #{orderStatus}, - #{isTax}, - - - - - update demo_sales_service_info - - product_id = #{productId}, - model = #{model}, - version = #{version}, - warehousing_time = #{warehousingTime}, - delivery_time = #{deliveryTime}, - receiving_time = #{receivingTime}, - internal_order_number = #{internalOrderNumber}, - customer_order_number = #{customerOrderNumber}, - shipping_address = #{shippingAddress}, - delivery_address = #{deliveryAddress}, - document_date = #{documentDate}, - approval_status = #{approvalStatus}, - order_status = #{orderStatus}, - is_tax = #{isTax}, - - where sales_service_info_id = #{salesServiceInfoId} - - - - delete from demo_sales_service_info where sales_service_info_id = #{salesServiceInfoId} - - - - delete from demo_sales_service_info where sales_service_info_id in - - #{salesServiceInfoId} - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/add.html b/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/add.html deleted file mode 100644 index 16536d7a..00000000 --- a/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/add.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
-
- - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/demoSalesServiceInfo.html b/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/demoSalesServiceInfo.html deleted file mode 100644 index b3a08f2d..00000000 --- a/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/demoSalesServiceInfo.html +++ /dev/null @@ -1,491 +0,0 @@ - - - - - - - - - - -
-
-
销售管理
- -
- - - - - -
-
-
-
-
- - -
-
-
-
- - -
-
- - - - -
-
-
-
- - - - - 搜索 -
-
-
-
-
-
-
-
-
- - - - - - - \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/edit.html b/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/edit.html deleted file mode 100644 index ccf5018b..00000000 --- a/ruoyi-admin/src/main/resources/templates/sales/demoSalesServiceInfo/edit.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - -
-
- -
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
- -
-
- - -
-
-
-
-
- - - - - \ No newline at end of file