zhangsiqi
12 months ago
8 changed files with 1124 additions and 0 deletions
@ -0,0 +1,124 @@ |
|||||
|
package com.ruoyi.system.controller; |
||||
|
|
||||
|
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.page.TableDataInfo; |
||||
|
import com.ruoyi.common.enums.BusinessType; |
||||
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
|
import com.ruoyi.system.domain.SysCustomerQuoteChild; |
||||
|
import com.ruoyi.system.service.ISysCustomerQuoteChildService; |
||||
|
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.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 客户报价子Controller |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2023-12-01 |
||||
|
*/ |
||||
|
@Controller |
||||
|
@RequestMapping("/system/quoteChild") |
||||
|
public class SysCustomerQuoteChildController extends BaseController |
||||
|
{ |
||||
|
private String prefix = "system/quoteChild"; |
||||
|
|
||||
|
@Autowired |
||||
|
private ISysCustomerQuoteChildService sysCustomerQuoteChildService; |
||||
|
|
||||
|
@RequiresPermissions("system:quoteChild:view") |
||||
|
@GetMapping() |
||||
|
public String quoteChild() |
||||
|
{ |
||||
|
return prefix + "/quoteChild"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询客户报价子列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:quoteChild:list") |
||||
|
@PostMapping("/list") |
||||
|
@ResponseBody |
||||
|
public TableDataInfo list(SysCustomerQuoteChild sysCustomerQuoteChild) |
||||
|
{ |
||||
|
startPage(); |
||||
|
List<SysCustomerQuoteChild> list = sysCustomerQuoteChildService.selectSysCustomerQuoteChildList(sysCustomerQuoteChild); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出客户报价子列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:quoteChild:export") |
||||
|
@Log(title = "客户报价子", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ResponseBody |
||||
|
public AjaxResult export(SysCustomerQuoteChild sysCustomerQuoteChild) |
||||
|
{ |
||||
|
List<SysCustomerQuoteChild> list = sysCustomerQuoteChildService.selectSysCustomerQuoteChildList(sysCustomerQuoteChild); |
||||
|
ExcelUtil<SysCustomerQuoteChild> util = new ExcelUtil<SysCustomerQuoteChild>(SysCustomerQuoteChild.class); |
||||
|
return util.exportExcel(list, "客户报价子数据"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增客户报价子 |
||||
|
*/ |
||||
|
@GetMapping("/add") |
||||
|
public String add() |
||||
|
{ |
||||
|
return prefix + "/add"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增保存客户报价子 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:quoteChild:add") |
||||
|
@Log(title = "客户报价子", businessType = BusinessType.INSERT) |
||||
|
@PostMapping("/add") |
||||
|
@ResponseBody |
||||
|
public AjaxResult addSave(SysCustomerQuoteChild sysCustomerQuoteChild) |
||||
|
{ |
||||
|
return toAjax(sysCustomerQuoteChildService.insertSysCustomerQuoteChild(sysCustomerQuoteChild)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改客户报价子 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:quoteChild:edit") |
||||
|
@GetMapping("/edit/{id}") |
||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap) |
||||
|
{ |
||||
|
SysCustomerQuoteChild sysCustomerQuoteChild = sysCustomerQuoteChildService.selectSysCustomerQuoteChildById(id); |
||||
|
mmap.put("sysCustomerQuoteChild", sysCustomerQuoteChild); |
||||
|
return prefix + "/edit"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改保存客户报价子 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:quoteChild:edit") |
||||
|
@Log(title = "客户报价子", businessType = BusinessType.UPDATE) |
||||
|
@PostMapping("/edit") |
||||
|
@ResponseBody |
||||
|
public AjaxResult editSave(SysCustomerQuoteChild sysCustomerQuoteChild) |
||||
|
{ |
||||
|
return toAjax(sysCustomerQuoteChildService.updateSysCustomerQuoteChild(sysCustomerQuoteChild)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除客户报价子 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:quoteChild:remove") |
||||
|
@Log(title = "客户报价子", businessType = BusinessType.DELETE) |
||||
|
@PostMapping( "/remove") |
||||
|
@ResponseBody |
||||
|
public AjaxResult remove(String[] ids) |
||||
|
{ |
||||
|
return toAjax(sysCustomerQuoteChildService.deleteSysCustomerQuoteChildByIds(ids)); |
||||
|
} |
||||
|
} |
@ -0,0 +1,146 @@ |
|||||
|
package com.ruoyi.system.controller; |
||||
|
|
||||
|
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.page.TableDataInfo; |
||||
|
import com.ruoyi.common.enums.BusinessType; |
||||
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
|
import com.ruoyi.system.domain.SysItemOper; |
||||
|
import com.ruoyi.system.service.ISysItemOperService; |
||||
|
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.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 技术团队配置Controller |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2023-12-07 |
||||
|
*/ |
||||
|
@Controller |
||||
|
@RequestMapping("/system/oper") |
||||
|
public class SysItemOperController extends BaseController |
||||
|
{ |
||||
|
private String prefix = "system/oper"; |
||||
|
|
||||
|
@Autowired |
||||
|
private ISysItemOperService sysItemOperService; |
||||
|
|
||||
|
@RequiresPermissions("system:oper:view") |
||||
|
@GetMapping() |
||||
|
public String oper() |
||||
|
{ |
||||
|
return prefix + "/oper"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询技术团队配置列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:list") |
||||
|
@PostMapping("/list") |
||||
|
@ResponseBody |
||||
|
public TableDataInfo list(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
startPage(); |
||||
|
List<SysItemOper> list = sysItemOperService.selectSysItemOperList(sysItemOper); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出技术团队配置列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:export") |
||||
|
@Log(title = "技术团队配置", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ResponseBody |
||||
|
public AjaxResult export(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
List<SysItemOper> list = sysItemOperService.selectSysItemOperList(sysItemOper); |
||||
|
ExcelUtil<SysItemOper> util = new ExcelUtil<SysItemOper>(SysItemOper.class); |
||||
|
return util.exportExcel(list, "技术团队配置数据"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增技术团队配置 |
||||
|
*/ |
||||
|
@GetMapping("/add") |
||||
|
public String add() |
||||
|
{ |
||||
|
return prefix + "/add"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增保存技术团队配置 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:add") |
||||
|
@Log(title = "技术团队配置", businessType = BusinessType.INSERT) |
||||
|
@PostMapping("/add") |
||||
|
@ResponseBody |
||||
|
public AjaxResult addSave(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
return toAjax(sysItemOperService.insertSysItemOper(sysItemOper)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改技术团队配置 |
||||
|
*/ |
||||
|
@GetMapping("/edit/{hid}") |
||||
|
public String edit(@PathVariable("hid") String hid, ModelMap mmap) |
||||
|
{ |
||||
|
SysItemOper sysItemOper = sysItemOperService.selectSysItemOperById(hid); |
||||
|
mmap.put("sysItemOper", sysItemOper); |
||||
|
return prefix + "/edit"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改保存技术团队配置 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:edit") |
||||
|
@Log(title = "技术团队配置", businessType = BusinessType.UPDATE) |
||||
|
@PostMapping("/edit") |
||||
|
@ResponseBody |
||||
|
public AjaxResult editSave(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
return toAjax(sysItemOperService.updateSysItemOper(sysItemOper)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除技术团队配置 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:remove") |
||||
|
@Log(title = "技术团队配置", businessType = BusinessType.DELETE) |
||||
|
@PostMapping( "/remove") |
||||
|
@ResponseBody |
||||
|
public AjaxResult remove(String ids) |
||||
|
{ |
||||
|
return toAjax(sysItemOperService.deleteSysItemOperByIds(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废技术团队配置 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:cancel") |
||||
|
@Log(title = "技术团队配置", businessType = BusinessType.CANCEL) |
||||
|
@GetMapping( "/cancel/{id}") |
||||
|
@ResponseBody |
||||
|
public AjaxResult cancel(@PathVariable("id") Long id){ |
||||
|
return toAjax(sysItemOperService.cancelSysItemOperById(String.valueOf(id))); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复技术团队配置 |
||||
|
*/ |
||||
|
@RequiresPermissions("system:oper:restore") |
||||
|
@Log(title = "技术团队配置", businessType = BusinessType.RESTORE) |
||||
|
@GetMapping( "/restore/{id}") |
||||
|
@ResponseBody |
||||
|
public AjaxResult restore(@PathVariable("id")Long id) |
||||
|
{ |
||||
|
return toAjax(sysItemOperService.restoreSysItemOperById(String.valueOf(id))); |
||||
|
} |
||||
|
} |
@ -0,0 +1,148 @@ |
|||||
|
package com.ruoyi.system.controller; |
||||
|
|
||||
|
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.page.TableDataInfo; |
||||
|
import com.ruoyi.common.enums.BusinessType; |
||||
|
import com.ruoyi.common.utils.poi.ExcelUtil; |
||||
|
import com.ruoyi.system.domain.SysProductItem; |
||||
|
import com.ruoyi.system.service.ISysProductItemService; |
||||
|
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.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 生产团队Controller |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2023-12-04 |
||||
|
*/ |
||||
|
@Controller |
||||
|
@RequestMapping("/system/item") |
||||
|
public class SysProductItemController extends BaseController |
||||
|
{ |
||||
|
private String prefix = "system/item"; |
||||
|
|
||||
|
@Autowired |
||||
|
private ISysProductItemService sysProductItemService; |
||||
|
|
||||
|
@RequiresPermissions("item:item:view") |
||||
|
@GetMapping() |
||||
|
public String item() |
||||
|
{ |
||||
|
return prefix + "/item"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询生产团队列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:list") |
||||
|
@PostMapping("/list") |
||||
|
@ResponseBody |
||||
|
public TableDataInfo list(SysProductItem sysProductItem) |
||||
|
{ |
||||
|
startPage(); |
||||
|
List<SysProductItem> list = sysProductItemService.selectSysProductItemList(sysProductItem); |
||||
|
return getDataTable(list); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 导出生产团队列表 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:export") |
||||
|
@Log(title = "生产团队", businessType = BusinessType.EXPORT) |
||||
|
@PostMapping("/export") |
||||
|
@ResponseBody |
||||
|
public AjaxResult export(SysProductItem sysProductItem) |
||||
|
{ |
||||
|
List<SysProductItem> list = sysProductItemService.selectSysProductItemList(sysProductItem); |
||||
|
ExcelUtil<SysProductItem> util = new ExcelUtil<SysProductItem>(SysProductItem.class); |
||||
|
return util.exportExcel(list, "生产团队数据"); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增生产团队 |
||||
|
*/ |
||||
|
@GetMapping("/add") |
||||
|
public String add() |
||||
|
{ |
||||
|
return prefix + "/add"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增保存生产团队 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:add") |
||||
|
@Log(title = "生产团队", businessType = BusinessType.INSERT) |
||||
|
@PostMapping("/add") |
||||
|
@ResponseBody |
||||
|
public AjaxResult addSave(SysProductItem sysProductItem) |
||||
|
{ |
||||
|
return toAjax(sysProductItemService.insertSysProductItem(sysProductItem)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改生产团队 |
||||
|
*/ |
||||
|
@GetMapping("/edit/{id}") |
||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap) |
||||
|
{ |
||||
|
SysProductItem sysProductItem = sysProductItemService.selectSysProductItemById(id); |
||||
|
mmap.put("sysProductItem", sysProductItem); |
||||
|
return prefix + "/edit"; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改保存生产团队 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:edit") |
||||
|
@Log(title = "生产团队", businessType = BusinessType.UPDATE) |
||||
|
@PostMapping("/edit") |
||||
|
@ResponseBody |
||||
|
public AjaxResult editSave(SysProductItem sysProductItem) |
||||
|
{ |
||||
|
return toAjax(sysProductItemService.updateSysProductItem(sysProductItem)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除生产团队 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:remove") |
||||
|
@Log(title = "生产团队", businessType = BusinessType.DELETE) |
||||
|
@PostMapping( "/remove") |
||||
|
@ResponseBody |
||||
|
public AjaxResult remove(String ids) |
||||
|
{ |
||||
|
return toAjax(sysProductItemService.deleteSysProductItemByIds(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废生产团队 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:cancel") |
||||
|
@Log(title = "生产团队", businessType = BusinessType.CANCEL) |
||||
|
@GetMapping( "/cancel/{id}") |
||||
|
@ResponseBody |
||||
|
public AjaxResult cancel(@PathVariable("id") Long id){ |
||||
|
return toAjax(sysProductItemService.cancelSysProductItemById(id)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复生产团队 |
||||
|
*/ |
||||
|
@RequiresPermissions("item:item:restore") |
||||
|
@Log(title = "生产团队", businessType = BusinessType.RESTORE) |
||||
|
@GetMapping( "/restore/{id}") |
||||
|
@ResponseBody |
||||
|
public AjaxResult restore(@PathVariable("id")Long id) |
||||
|
{ |
||||
|
return toAjax(sysProductItemService.restoreSysProductItemById(id)); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,347 @@ |
|||||
|
package com.ruoyi.system.domain; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import com.ruoyi.common.core.domain.BaseEntity; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
//出货通知单
|
||||
|
public class SysOutGood extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//出库单id
|
||||
|
private Long outGoodId; |
||||
|
//出货状态
|
||||
|
private String outGoodStatus; |
||||
|
//业务员id
|
||||
|
private String salesManId; |
||||
|
//业务员名称
|
||||
|
private String salesManName; |
||||
|
//关联订单号
|
||||
|
private String goodCode; |
||||
|
//订单类型
|
||||
|
private String goodType; |
||||
|
//出库类型
|
||||
|
private String outType; |
||||
|
//客户id
|
||||
|
private Long customerId; |
||||
|
//客户公司名称
|
||||
|
private String customerName; |
||||
|
//客户订单号
|
||||
|
private String customerOrdersCode; |
||||
|
//物料总量
|
||||
|
private Integer materialSum; |
||||
|
//数量合计
|
||||
|
private Integer msum; |
||||
|
//不含税总价(RMB)
|
||||
|
private Double noRmbSum; |
||||
|
//含税总价(RMB)
|
||||
|
private Double rmbSum; |
||||
|
//含税总价(美元)
|
||||
|
private Double usdSum; |
||||
|
//不含税总价(美元)
|
||||
|
private Double noUsdSum; |
||||
|
//计划交付时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
private Date planTime; |
||||
|
//客户验收时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd") |
||||
|
private Date acceptanceTime; |
||||
|
//付款条件
|
||||
|
private String paymentCondition; |
||||
|
//交付条件
|
||||
|
private String acceptanceCondition; |
||||
|
//收获联系人
|
||||
|
private String consignee; |
||||
|
//联系电话
|
||||
|
private String phone; |
||||
|
//收获地址
|
||||
|
private String consgineeAdress; |
||||
|
//送货日期
|
||||
|
private Date delivery; |
||||
|
//出库时间
|
||||
|
private Date outGoodTime; |
||||
|
//仓库员
|
||||
|
private String warehouse; |
||||
|
//售后员
|
||||
|
private String complaint; |
||||
|
//录入时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private Date createTime; |
||||
|
//录入人
|
||||
|
private String createBy; |
||||
|
//修改人
|
||||
|
private String updateBy; |
||||
|
//上次更新时间
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private Date updateTime; |
||||
|
//操作
|
||||
|
private String oper; |
||||
|
//删除标志
|
||||
|
private String delFlag; |
||||
|
|
||||
|
public Long getOutGoodId() { |
||||
|
return outGoodId; |
||||
|
} |
||||
|
|
||||
|
public void setOutGoodId(Long outGoodId) { |
||||
|
outGoodId = outGoodId; |
||||
|
} |
||||
|
|
||||
|
public String getOutGoodStatus() { |
||||
|
return outGoodStatus; |
||||
|
} |
||||
|
|
||||
|
public void setOutGoodStatus(String outGoodStatus) { |
||||
|
this.outGoodStatus = outGoodStatus; |
||||
|
} |
||||
|
|
||||
|
public String getSalesManId() { |
||||
|
return salesManId; |
||||
|
} |
||||
|
|
||||
|
public void setSalesManId(String salesManId) { |
||||
|
this.salesManId = salesManId; |
||||
|
} |
||||
|
|
||||
|
public String getSalesManName() { |
||||
|
return salesManName; |
||||
|
} |
||||
|
|
||||
|
public void setSalesManName(String salesManName) { |
||||
|
this.salesManName = salesManName; |
||||
|
} |
||||
|
|
||||
|
public String getGoodType() { |
||||
|
return goodType; |
||||
|
} |
||||
|
|
||||
|
public void setGoodType(String goodType) { |
||||
|
this.goodType = goodType; |
||||
|
} |
||||
|
|
||||
|
public String getOutType() { |
||||
|
return outType; |
||||
|
} |
||||
|
|
||||
|
public void setOutType(String outType) { |
||||
|
this.outType = outType; |
||||
|
} |
||||
|
|
||||
|
public Long getCustomerId() { |
||||
|
return customerId; |
||||
|
} |
||||
|
|
||||
|
public void setCustomerId(Long customerId) { |
||||
|
this.customerId = customerId; |
||||
|
} |
||||
|
|
||||
|
public String getCustomerName() { |
||||
|
return customerName; |
||||
|
} |
||||
|
|
||||
|
public void setCustomerName(String customerName) { |
||||
|
this.customerName = customerName; |
||||
|
} |
||||
|
|
||||
|
public String getCustomerOrdersCode() { |
||||
|
return customerOrdersCode; |
||||
|
} |
||||
|
|
||||
|
public void setCustomerOrdersCode(String customerOrdersCode) { |
||||
|
this.customerOrdersCode = customerOrdersCode; |
||||
|
} |
||||
|
|
||||
|
public Integer getMaterialSum() { |
||||
|
return materialSum; |
||||
|
} |
||||
|
|
||||
|
public void setMaterialSum(Integer materialSum) { |
||||
|
this.materialSum = materialSum; |
||||
|
} |
||||
|
|
||||
|
public Integer getMsum() { |
||||
|
return msum; |
||||
|
} |
||||
|
|
||||
|
public void setMsum(Integer msum) { |
||||
|
this.msum = msum; |
||||
|
} |
||||
|
|
||||
|
public Double getNoRmbSum() { |
||||
|
return noRmbSum; |
||||
|
} |
||||
|
|
||||
|
public void setNoRmbSum(Double noRmbSum) { |
||||
|
this.noRmbSum = noRmbSum; |
||||
|
} |
||||
|
|
||||
|
public Double getRmbSum() { |
||||
|
return rmbSum; |
||||
|
} |
||||
|
|
||||
|
public void setRmbSum(Double rmbSum) { |
||||
|
this.rmbSum = rmbSum; |
||||
|
} |
||||
|
|
||||
|
public Double getUsdSum() { |
||||
|
return usdSum; |
||||
|
} |
||||
|
|
||||
|
public void setUsdSum(Double usdSum) { |
||||
|
this.usdSum = usdSum; |
||||
|
} |
||||
|
|
||||
|
public Double getNoUsdSum() { |
||||
|
return noUsdSum; |
||||
|
} |
||||
|
|
||||
|
public void setNoUsdSum(Double noUsdSum) { |
||||
|
this.noUsdSum = noUsdSum; |
||||
|
} |
||||
|
|
||||
|
public Date getPlanTime() { |
||||
|
return planTime; |
||||
|
} |
||||
|
|
||||
|
public void setPlanTime(Date planTime) { |
||||
|
this.planTime = planTime; |
||||
|
} |
||||
|
|
||||
|
public Date getAcceptanceTime() { |
||||
|
return acceptanceTime; |
||||
|
} |
||||
|
|
||||
|
public void setAcceptanceTime(Date acceptanceTime) { |
||||
|
this.acceptanceTime = acceptanceTime; |
||||
|
} |
||||
|
|
||||
|
public String getPaymentCondition() { |
||||
|
return paymentCondition; |
||||
|
} |
||||
|
|
||||
|
public void setPaymentCondition(String paymentCondition) { |
||||
|
this.paymentCondition = paymentCondition; |
||||
|
} |
||||
|
|
||||
|
public String getAcceptanceCondition() { |
||||
|
return acceptanceCondition; |
||||
|
} |
||||
|
|
||||
|
public void setAcceptanceCondition(String acceptanceCondition) { |
||||
|
this.acceptanceCondition = acceptanceCondition; |
||||
|
} |
||||
|
|
||||
|
public String getConsignee() { |
||||
|
return consignee; |
||||
|
} |
||||
|
|
||||
|
public void setConsignee(String consignee) { |
||||
|
this.consignee = consignee; |
||||
|
} |
||||
|
|
||||
|
public String getPhone() { |
||||
|
return phone; |
||||
|
} |
||||
|
|
||||
|
public void setPhone(String phone) { |
||||
|
this.phone = phone; |
||||
|
} |
||||
|
|
||||
|
public String getConsgineeAdress() { |
||||
|
return consgineeAdress; |
||||
|
} |
||||
|
|
||||
|
public void setConsgineeAdress(String consgineeAdress) { |
||||
|
this.consgineeAdress = consgineeAdress; |
||||
|
} |
||||
|
|
||||
|
public Date getDelivery() { |
||||
|
return delivery; |
||||
|
} |
||||
|
|
||||
|
public void setDelivery(Date delivery) { |
||||
|
this.delivery = delivery; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public Date getCreateTime() { |
||||
|
return createTime; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void setCreateTime(Date createTime) { |
||||
|
this.createTime = createTime; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String getCreateBy() { |
||||
|
return createBy; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void setCreateBy(String createBy) { |
||||
|
this.createBy = createBy; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String getUpdateBy() { |
||||
|
return updateBy; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public void setUpdateBy(String updateBy) { |
||||
|
this.updateBy = updateBy; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public Date getUpdateTime() { |
||||
|
return updateTime; |
||||
|
} |
||||
|
@Override |
||||
|
public void setUpdateTime(Date updateTime) { |
||||
|
this.updateTime = updateTime; |
||||
|
} |
||||
|
|
||||
|
public String getDelFlag() { |
||||
|
return delFlag; |
||||
|
} |
||||
|
|
||||
|
public void setDelFlag(String delFlag) { |
||||
|
this.delFlag = delFlag; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
return "SysOutGood{" + |
||||
|
"OutGoodId=" + outGoodId + |
||||
|
", outGoodStatus='" + outGoodStatus + '\'' + |
||||
|
", salesManId='" + salesManId + '\'' + |
||||
|
", salesManName='" + salesManName + '\'' + |
||||
|
", goodType='" + goodType + '\'' + |
||||
|
", outType='" + outType + '\'' + |
||||
|
", customerId=" + customerId + |
||||
|
", customerName='" + customerName + '\'' + |
||||
|
", customerOrdersCode='" + customerOrdersCode + '\'' + |
||||
|
", materialSum=" + materialSum + |
||||
|
", msum=" + msum + |
||||
|
", noRmbSum=" + noRmbSum + |
||||
|
", rmbSum=" + rmbSum + |
||||
|
", usdSum=" + usdSum + |
||||
|
", noUsdSum=" + noUsdSum + |
||||
|
", planTime=" + planTime + |
||||
|
", acceptanceTime=" + acceptanceTime + |
||||
|
", paymentCondition='" + paymentCondition + '\'' + |
||||
|
", acceptanceCondition='" + acceptanceCondition + '\'' + |
||||
|
", consignee='" + consignee + '\'' + |
||||
|
", phone='" + phone + '\'' + |
||||
|
", consgineeAdress='" + consgineeAdress + '\'' + |
||||
|
", delivery=" + delivery + |
||||
|
", createTime=" + createTime + |
||||
|
", createBy='" + createBy + '\'' + |
||||
|
", updateBy='" + updateBy + '\'' + |
||||
|
", updateTime='" + updateTime + '\'' + |
||||
|
", delFlag='" + delFlag + '\'' + |
||||
|
'}'; |
||||
|
} |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
package com.ruoyi.system.mapper; |
||||
|
|
||||
|
import com.ruoyi.system.domain.SysItemOper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 技术团队配置Mapper接口 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2023-12-07 |
||||
|
*/ |
||||
|
public interface SysItemOperMapper |
||||
|
{ |
||||
|
/** |
||||
|
* 查询技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 技术团队配置 |
||||
|
*/ |
||||
|
public SysItemOper selectSysItemOperById(String hid); |
||||
|
|
||||
|
/** |
||||
|
* 查询技术团队配置列表 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 技术团队配置集合 |
||||
|
*/ |
||||
|
public List<SysItemOper> selectSysItemOperList(SysItemOper sysItemOper); |
||||
|
|
||||
|
/** |
||||
|
* 新增技术团队配置 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertSysItemOper(SysItemOper sysItemOper); |
||||
|
|
||||
|
/** |
||||
|
* 修改技术团队配置 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateSysItemOper(SysItemOper sysItemOper); |
||||
|
|
||||
|
/** |
||||
|
* 删除技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteSysItemOperById(String hid); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除技术团队配置 |
||||
|
* |
||||
|
* @param hids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteSysItemOperByIds(String[] hids); |
||||
|
|
||||
|
/** |
||||
|
* 作废技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int cancelSysItemOperById(String hid); |
||||
|
|
||||
|
/** |
||||
|
* 恢复技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int restoreSysItemOperById(String hid); |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
package com.ruoyi.system.service; |
||||
|
|
||||
|
import com.ruoyi.system.domain.SysItemOper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 技术团队配置Service接口 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2023-12-07 |
||||
|
*/ |
||||
|
public interface ISysItemOperService |
||||
|
{ |
||||
|
/** |
||||
|
* 查询技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 技术团队配置 |
||||
|
*/ |
||||
|
public SysItemOper selectSysItemOperById(String hid); |
||||
|
|
||||
|
/** |
||||
|
* 查询技术团队配置列表 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 技术团队配置集合 |
||||
|
*/ |
||||
|
public List<SysItemOper> selectSysItemOperList(SysItemOper sysItemOper); |
||||
|
|
||||
|
/** |
||||
|
* 新增技术团队配置 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int insertSysItemOper(SysItemOper sysItemOper); |
||||
|
|
||||
|
/** |
||||
|
* 修改技术团队配置 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int updateSysItemOper(SysItemOper sysItemOper); |
||||
|
|
||||
|
/** |
||||
|
* 批量删除技术团队配置 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteSysItemOperByIds(String ids); |
||||
|
|
||||
|
/** |
||||
|
* 删除技术团队配置信息 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
public int deleteSysItemOperById(String hid); |
||||
|
|
||||
|
/** |
||||
|
* 作废技术团队配置 |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int cancelSysItemOperById(String hid); |
||||
|
|
||||
|
/** |
||||
|
* 恢复技术团队配置 |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return |
||||
|
*/ |
||||
|
int restoreSysItemOperById(String hid); |
||||
|
} |
@ -0,0 +1,124 @@ |
|||||
|
package com.ruoyi.system.service.impl; |
||||
|
|
||||
|
import com.ruoyi.common.core.text.Convert; |
||||
|
import com.ruoyi.common.utils.DateUtils; |
||||
|
import com.ruoyi.common.utils.ShiroUtils; |
||||
|
import com.ruoyi.system.domain.SysItemOper; |
||||
|
import com.ruoyi.system.mapper.SysItemOperMapper; |
||||
|
import com.ruoyi.system.service.ISysItemOperService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 技术团队配置Service业务层处理 |
||||
|
* |
||||
|
* @author ruoyi |
||||
|
* @date 2023-12-07 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class SysItemOperServiceImpl implements ISysItemOperService |
||||
|
{ |
||||
|
@Autowired |
||||
|
private SysItemOperMapper sysItemOperMapper; |
||||
|
|
||||
|
/** |
||||
|
* 查询技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 技术团队配置 |
||||
|
*/ |
||||
|
@Override |
||||
|
public SysItemOper selectSysItemOperById(String hid) |
||||
|
{ |
||||
|
return sysItemOperMapper.selectSysItemOperById(hid); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 查询技术团队配置列表 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 技术团队配置 |
||||
|
*/ |
||||
|
@Override |
||||
|
public List<SysItemOper> selectSysItemOperList(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
return sysItemOperMapper.selectSysItemOperList(sysItemOper); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 新增技术团队配置 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int insertSysItemOper(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
String loginName = ShiroUtils.getLoginName(); |
||||
|
sysItemOper.setCreateBy(loginName); |
||||
|
sysItemOper.setCreateTime(DateUtils.getNowDate()); |
||||
|
return sysItemOperMapper.insertSysItemOper(sysItemOper); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 修改技术团队配置 |
||||
|
* |
||||
|
* @param sysItemOper 技术团队配置 |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int updateSysItemOper(SysItemOper sysItemOper) |
||||
|
{ |
||||
|
return sysItemOperMapper.updateSysItemOper(sysItemOper); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除技术团队配置对象 |
||||
|
* |
||||
|
* @param ids 需要删除的数据ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteSysItemOperByIds(String ids) |
||||
|
{ |
||||
|
return sysItemOperMapper.deleteSysItemOperByIds(Convert.toStrArray(ids)); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 删除技术团队配置信息 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int deleteSysItemOperById(String hid) |
||||
|
{ |
||||
|
return sysItemOperMapper.deleteSysItemOperById(hid); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 作废技术团队配置 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int cancelSysItemOperById(String hid) |
||||
|
{ |
||||
|
return sysItemOperMapper.cancelSysItemOperById(hid); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 恢复技术团队配置信息 |
||||
|
* |
||||
|
* @param hid 技术团队配置ID |
||||
|
* @return 结果 |
||||
|
*/ |
||||
|
@Override |
||||
|
public int restoreSysItemOperById(String hid) |
||||
|
{ |
||||
|
return sysItemOperMapper.restoreSysItemOperById(hid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,81 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper |
||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.ruoyi.system.mapper.SysItemOperMapper"> |
||||
|
|
||||
|
<resultMap type="SysItemOper" id="SysItemOperResult"> |
||||
|
<result property="hid" column="hid" /> |
||||
|
<result property="itemId" column="itemId" /> |
||||
|
<result property="staturt" column="staturt" /> |
||||
|
<result property="createBy" column="create_by" /> |
||||
|
<result property="createTime" column="create_time" /> |
||||
|
</resultMap> |
||||
|
|
||||
|
<sql id="selectSysItemOperVo"> |
||||
|
select hid, itemId, staturt, create_by, create_time from sys_item_oper |
||||
|
</sql> |
||||
|
|
||||
|
<select id="selectSysItemOperList" parameterType="SysItemOper" resultMap="SysItemOperResult"> |
||||
|
<include refid="selectSysItemOperVo"/> |
||||
|
<where> |
||||
|
<if test="hid != null and hid != ''"> and hid = #{hid}</if> |
||||
|
<if test="itemId != null "> and itemId = #{itemId}</if> |
||||
|
<if test="staturt != null and staturt != ''"> and staturt = #{staturt}</if> |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectSysItemOperById" parameterType="String" resultMap="SysItemOperResult"> |
||||
|
<include refid="selectSysItemOperVo"/> |
||||
|
where hid = #{hid} |
||||
|
</select> |
||||
|
|
||||
|
<insert id="insertSysItemOper" parameterType="SysItemOper"> |
||||
|
insert into sys_item_oper |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="hid != null">hid,</if> |
||||
|
<if test="itemId != null">itemId,</if> |
||||
|
<if test="staturt != null">staturt,</if> |
||||
|
<if test="createBy != null">create_by,</if> |
||||
|
<if test="createTime != null">create_time,</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="hid != null">#{hid},</if> |
||||
|
<if test="itemId != null">#{itemId},</if> |
||||
|
<if test="staturt != null">#{staturt},</if> |
||||
|
<if test="createBy != null">#{createBy},</if> |
||||
|
<if test="createTime != null">#{createTime},</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
|
||||
|
<update id="updateSysItemOper" parameterType="SysItemOper"> |
||||
|
update sys_item_oper |
||||
|
<trim prefix="SET" suffixOverrides=","> |
||||
|
<if test="itemId != null">itemId = #{itemId},</if> |
||||
|
<if test="staturt != null">staturt = #{staturt},</if> |
||||
|
<if test="createBy != null">create_by = #{createBy},</if> |
||||
|
<if test="createTime != null">create_time = #{createTime},</if> |
||||
|
</trim> |
||||
|
where hid = #{hid} |
||||
|
</update> |
||||
|
|
||||
|
<delete id="deleteSysItemOperById" parameterType="String"> |
||||
|
delete from sys_item_oper where hid = #{hid} |
||||
|
</delete> |
||||
|
|
||||
|
<delete id="deleteSysItemOperByIds" parameterType="String"> |
||||
|
delete from sys_item_oper where hid in |
||||
|
<foreach item="hid" collection="array" open="(" separator="," close=")"> |
||||
|
#{hid} |
||||
|
</foreach> |
||||
|
</delete> |
||||
|
|
||||
|
<update id="cancelSysItemOperById" parameterType="String"> |
||||
|
update sys_item_oper set del_flag = '1' where hid = #{hid} |
||||
|
</update> |
||||
|
|
||||
|
<update id="restoreSysItemOperById" parameterType="String"> |
||||
|
update sys_item_oper set del_flag = '0' where hid = #{hid} |
||||
|
</update> |
||||
|
|
||||
|
</mapper> |
Loading…
Reference in new issue