From 17ef9216a9f464db5637f2361478558f4a59f561 Mon Sep 17 00:00:00 2001 From: zhangsiqi <2825463979@qq.com> Date: Fri, 8 Mar 2024 17:15:06 +0800 Subject: [PATCH] =?UTF-8?q?[add]=E6=96=B0=E5=BB=BA=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=BB=A9=E6=95=88=E6=A8=A1=E5=9D=97:=20=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E5=9B=A2=E9=98=9F=E5=88=97=E8=A1=A8=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=8A=80=E6=9C=AF=E5=9B=A2=E9=98=9F=E5=88=97=E8=A1=A8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E4=B8=9A=E5=8A=A1=E7=BB=A9=E6=95=88=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=8A=9F=E8=83=BD=EF=BC=8C=20=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=EF=BC=9A=E5=85=AC=E5=8F=B8=E6=88=90=E6=9C=AC?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../erp/controller/ErpCtcController.java | 157 +++++++++++ .../erp/controller/ErpUtbItemController.java | 172 ++++++++++++ .../java/com/ruoyi/erp/domain/ErpCtc.java | 254 ++++++++++++++++++ .../java/com/ruoyi/erp/domain/ErpUtbItem.java | 140 ++++++++++ .../com/ruoyi/erp/mapper/ErpCtcMapper.java | 77 ++++++ .../ruoyi/erp/mapper/ErpUtbItemMapper.java | 77 ++++++ .../com/ruoyi/erp/service/IErpCtcService.java | 77 ++++++ .../ruoyi/erp/service/IErpUtbItemService.java | 73 +++++ .../erp/service/impl/ErpCtcServiceImpl.java | 133 +++++++++ .../service/impl/ErpUtbItemServiceImpl.java | 128 +++++++++ .../controller/ErpCompanyCostController.java | 151 +++++++++++ .../taxInvoice/domain/ErpCompanyCost.java | 113 ++++++++ .../mapper/ErpCompanyCostMapper.java | 77 ++++++ .../service/IErpCompanyCostService.java | 75 ++++++ .../impl/ErpCompanyCostServiceImpl.java | 126 +++++++++ .../resources/mapper/erp/ErpCtcMapper.xml | 147 ++++++++++ .../resources/mapper/erp/ErpUtbItemMapper.xml | 118 ++++++++ .../taxInvoice/ErpCompanyCostMapper.xml | 106 ++++++++ .../main/resources/templates/erp/ctc/add.html | 122 +++++++++ .../main/resources/templates/erp/ctc/ctc.html | 200 ++++++++++++++ .../resources/templates/erp/ctc/edit.html | 119 ++++++++ .../main/resources/templates/erp/utb/add.html | 73 +++++ .../resources/templates/erp/utb/edit.html | 74 +++++ .../main/resources/templates/erp/utb/utb.html | 169 ++++++++++++ .../resources/templates/erp/utb/utbcoef.html | 33 +++ .../templates/taxInvoice/companyCost/add.html | 61 +++++ .../taxInvoice/companyCost/companyCost.html | 123 +++++++++ .../taxInvoice/companyCost/edit.html | 62 +++++ 28 files changed, 3237 insertions(+) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpCtcController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpUtbItemController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpCtc.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpUtbItem.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpCtcMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpUtbItemMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpCtcService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpUtbItemService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpCtcServiceImpl.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpUtbItemServiceImpl.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/ErpCompanyCostController.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/ErpCompanyCost.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/ErpCompanyCostMapper.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/IErpCompanyCostService.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/ErpCompanyCostServiceImpl.java create mode 100644 ruoyi-admin/src/main/resources/mapper/erp/ErpCtcMapper.xml create mode 100644 ruoyi-admin/src/main/resources/mapper/erp/ErpUtbItemMapper.xml create mode 100644 ruoyi-admin/src/main/resources/mapper/taxInvoice/ErpCompanyCostMapper.xml create mode 100644 ruoyi-admin/src/main/resources/templates/erp/ctc/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/erp/ctc/ctc.html create mode 100644 ruoyi-admin/src/main/resources/templates/erp/ctc/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/erp/utb/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/erp/utb/edit.html create mode 100644 ruoyi-admin/src/main/resources/templates/erp/utb/utb.html create mode 100644 ruoyi-admin/src/main/resources/templates/erp/utb/utbcoef.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html create mode 100644 ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpCtcController.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpCtcController.java new file mode 100644 index 00000000..b203e7fe --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpCtcController.java @@ -0,0 +1,157 @@ +package com.ruoyi.erp.controller; + +import java.util.List; + +import com.ruoyi.ck.utils.Result; +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.erp.domain.ErpCtc; +import com.ruoyi.erp.service.IErpCtcService; +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 zhang + * @date 2024-03-04 + */ +@Controller +@RequestMapping("/erp/ctc") +public class ErpCtcController extends BaseController +{ + private String prefix = "erp/ctc"; + + @Autowired + private IErpCtcService erpCtcService; + + @RequiresPermissions("erp:ctc:view") + @GetMapping() + public String ctc() + { + return prefix + "/ctc"; + } + + /** + * 查询业务绩效表列表 + */ + @RequiresPermissions("erp:ctc:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ErpCtc erpCtc) + { + startPage(); + List list = erpCtcService.selectErpCtcList(erpCtc); + return getDataTable(list); + } + + /** + * 导出业务绩效表列表 + */ + @RequiresPermissions("erp:ctc:export") + @Log(title = "业务绩效表", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ErpCtc erpCtc) + { + List list = erpCtcService.selectErpCtcList(erpCtc); + ExcelUtil util = new ExcelUtil(ErpCtc.class); + return util.exportExcel(list, "业务绩效表数据"); + } + + /** + * 新增业务绩效表 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存业务绩效表 + */ + @RequiresPermissions("erp:ctc:add") + @Log(title = "业务绩效表", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ErpCtc erpCtc) + { + return toAjax(erpCtcService.insertErpCtc(erpCtc)); + } + + /** + * 修改业务绩效表 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + ErpCtc erpCtc = erpCtcService.selectErpCtcById(id); + mmap.put("erpCtc", erpCtc); + return prefix + "/edit"; + } + + /** + * 修改保存业务绩效表 + */ + @RequiresPermissions("erp:ctc:edit") + @Log(title = "业务绩效表", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ErpCtc erpCtc) + { + return toAjax(erpCtcService.updateErpCtc(erpCtc)); + } + + /** + * 删除业务绩效表 + */ + @RequiresPermissions("erp:ctc:remove") + @Log(title = "业务绩效表", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(erpCtcService.deleteErpCtcByIds(ids)); + } + + /** + * 作废业务绩效表 + */ + @RequiresPermissions("erp:ctc:cancel") + @Log(title = "业务绩效表", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(erpCtcService.cancelErpCtcById(id)); + } + + /** + * 恢复业务绩效表 + */ + @RequiresPermissions("erp:ctc:restore") + @Log(title = "业务绩效表", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(erpCtcService.restoreErpCtcById(id)); + } + + @PostMapping("/getId") + @ResponseBody + public Result getId() throws Exception { + return Result.getSuccessResult(erpCtcService.getId()); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpUtbItemController.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpUtbItemController.java new file mode 100644 index 00000000..9f753e70 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/controller/ErpUtbItemController.java @@ -0,0 +1,172 @@ +package com.ruoyi.erp.controller; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +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.erp.domain.ErpUtbItem; +import com.ruoyi.erp.service.IErpUtbItemService; +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 zhang + * @date 2024-03-05 + */ +@Controller +@RequestMapping("/erp/utb") +public class ErpUtbItemController extends BaseController +{ + private String prefix = "erp/utb"; + + @Autowired + private IErpUtbItemService erpUtbItemService; + + @RequiresPermissions("erp:utb:view") + @GetMapping() + public String utb() + { + return prefix + "/utb"; + } + + /** + * 查询业务团队列表 + */ + @RequiresPermissions("erp:utb:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ErpUtbItem erpUtbItem) + { + startPage(); + List list = erpUtbItemService.selectErpUtbItemList(erpUtbItem); + return getDataTable(list); + } + + /** + * 导出业务团队列表 + */ + @RequiresPermissions("erp:utb:export") + @Log(title = "业务团队", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ErpUtbItem erpUtbItem) + { + List list = erpUtbItemService.selectErpUtbItemList(erpUtbItem); + ExcelUtil util = new ExcelUtil(ErpUtbItem.class); + return util.exportExcel(list, "业务团队数据"); + } + + /** + * 新增业务团队 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 业务绩效系数表单 + * @return + */ + @GetMapping("/utbcoef") + public String utbcoef() + { + return prefix + "/utbcoef"; + } + + /** + * 新增保存业务团队 + */ + @RequiresPermissions("erp:utb:add") + @Log(title = "业务团队", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ErpUtbItem erpUtbItem) + { + return toAjax(erpUtbItemService.insertErpUtbItem(erpUtbItem)); + } + + /** + * 修改业务团队 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + ErpUtbItem erpUtbItem = erpUtbItemService.selectErpUtbItemById(id); + mmap.put("erpUtbItem", erpUtbItem); + return prefix + "/edit"; + } + + /** + * 修改保存业务团队 + */ + @RequiresPermissions("erp:utb:edit") + @Log(title = "业务团队", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ErpUtbItem erpUtbItem) + { + return toAjax(erpUtbItemService.updateErpUtbItem(erpUtbItem)); + } + + /** + * 删除业务团队 + */ + @RequiresPermissions("erp:utb:remove") + @Log(title = "业务团队", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + + List list = Arrays.asList(ids.split(",")); + int i = list.size(); + List idlist = new ArrayList(); + for (String s : list) { + idlist.add(Long.parseLong(s)); + + } + return toAjax(erpUtbItemService.deleteErpUtbItemByIds(ids)); + } + + /** + * 作废业务团队 + */ + @RequiresPermissions("erp:utb:cancel") + @Log(title = "业务团队", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(erpUtbItemService.cancelErpUtbItemById(id)); + } + + /** + * 恢复业务团队 + */ + @RequiresPermissions("erp:utb:restore") + @Log(title = "业务团队", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(erpUtbItemService.restoreErpUtbItemById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpCtc.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpCtc.java new file mode 100644 index 00000000..01bad67e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpCtc.java @@ -0,0 +1,254 @@ +package com.ruoyi.erp.domain; + +import java.util.List; +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; + +/** + * 业务绩效表对象 erp_ctc + * + * @author zhang + * @date 2024-03-04 + */ +public class ErpCtc extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 绩效id */ + private Long id; + + /** 业务绩效id */ + @Excel(name = "业务绩效id") + private Long ctcId; + + /** 员工ID */ + @Excel(name = "员工ID") + private Long staffNo; + + /** 业务员 */ + @Excel(name = "业务员") + private String saleStaff; + + /** 部门信息(包含上级部门/下级部门/职位) */ + @Excel(name = "部门信息(包含上级部门/下级部门/职位)") + private String deptPost; + + /** 绩效类型(包含0: 个人绩效,1: 个人加团队绩效,2:业务服务绩效) */ + @Excel(name = "绩效类型", readConverterExp = "包=含0:,个=人绩效,1:,个=人加团队绩效,2:业务服务绩效") + private Integer ctcType; + + /** 使用状态 */ + @Excel(name = "使用状态") + private Long useStatus; + + /** 币别 */ + @Excel(name = "币别") + private Integer currency; + + /** 订单销售总价 */ + @Excel(name = "订单销售总价") + private Long saleSum; + + /** 待结案有绩效销售总价 */ + @Excel(name = "待结案有绩效销售总价") + private Long saleDcaseSum; + + /** 已结案有绩效销售总价 */ + @Excel(name = "已结案有绩效销售总价") + private Long saleCaseSum; + + /** 无绩效销售总价 */ + @Excel(name = "无绩效销售总价") + private Long saleNcaseSum; + + /** 待结算绩效 */ + @Excel(name = "待结算绩效") + private Long nsettleNum; + + /** 已结算绩效 */ + @Excel(name = "已结算绩效") + private Long settleNum; + + /** 待发放绩效 */ + @Excel(name = "待发放绩效") + private Long ngrantNum; + + /** 已发放绩效 */ + @Excel(name = "已发放绩效") + private Long grantNum; + + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCtcId(Long ctcId) + { + this.ctcId = ctcId; + } + + public Long getCtcId() + { + return ctcId; + } + public void setStaffNo(Long staffNo) + { + this.staffNo = staffNo; + } + + public Long getStaffNo() + { + return staffNo; + } + public void setSaleStaff(String saleStaff) + { + this.saleStaff = saleStaff; + } + + public String getSaleStaff() + { + return saleStaff; + } + public void setDeptPost(String deptPost) + { + this.deptPost = deptPost; + } + + public String getDeptPost() + { + return deptPost; + } + public void setCtcType(Integer ctcType) + { + this.ctcType = ctcType; + } + + public Integer getCtcType() + { + return ctcType; + } + public void setUseStatus(Long useStatus) + { + this.useStatus = useStatus; + } + + public Long getUseStatus() + { + return useStatus; + } + public void setCurrency(Integer currency) + { + this.currency = currency; + } + + public Integer getCurrency() + { + return currency; + } + public void setSaleSum(Long saleSum) + { + this.saleSum = saleSum; + } + + public Long getSaleSum() + { + return saleSum; + } + public void setSaleDcaseSum(Long saleDcaseSum) + { + this.saleDcaseSum = saleDcaseSum; + } + + public Long getSaleDcaseSum() + { + return saleDcaseSum; + } + public void setSaleCaseSum(Long saleCaseSum) + { + this.saleCaseSum = saleCaseSum; + } + + public Long getSaleCaseSum() + { + return saleCaseSum; + } + public void setSaleNcaseSum(Long saleNcaseSum) + { + this.saleNcaseSum = saleNcaseSum; + } + + public Long getSaleNcaseSum() + { + return saleNcaseSum; + } + public void setNsettleNum(Long nsettleNum) + { + this.nsettleNum = nsettleNum; + } + + public Long getNsettleNum() + { + return nsettleNum; + } + public void setSettleNum(Long settleNum) + { + this.settleNum = settleNum; + } + + public Long getSettleNum() + { + return settleNum; + } + public void setNgrantNum(Long ngrantNum) + { + this.ngrantNum = ngrantNum; + } + + public Long getNgrantNum() + { + return ngrantNum; + } + public void setGrantNum(Long grantNum) + { + this.grantNum = grantNum; + } + + public Long getGrantNum() + { + return grantNum; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("ctcId", getCtcId()) + .append("staffNo", getStaffNo()) + .append("saleStaff", getSaleStaff()) + .append("deptPost", getDeptPost()) + .append("ctcType", getCtcType()) + .append("useStatus", getUseStatus()) + .append("currency", getCurrency()) + .append("saleSum", getSaleSum()) + .append("saleDcaseSum", getSaleDcaseSum()) + .append("saleCaseSum", getSaleCaseSum()) + .append("saleNcaseSum", getSaleNcaseSum()) + .append("nsettleNum", getNsettleNum()) + .append("settleNum", getSettleNum()) + .append("ngrantNum", getNgrantNum()) + .append("grantNum", getGrantNum()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpUtbItem.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpUtbItem.java new file mode 100644 index 00000000..6f0f8075 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/domain/ErpUtbItem.java @@ -0,0 +1,140 @@ +package com.ruoyi.erp.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; + +/** + * 业务团队对象 erp_utb_item + * + * @author zhang + * @date 2024-03-05 + */ +public class ErpUtbItem extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Long id; + + /** 业务团队ID */ + @Excel(name = "业务团队ID") + private String utbId; + + /** 团队名称 */ + @Excel(name = "团队名称") + private String utbName; + + /** 业务员1 */ + @Excel(name = "业务员1") + private String salesman1; + + /** 业务员2 */ + @Excel(name = "业务员2") + private String salesman2; + + /** 业务员3 */ + @Excel(name = "业务员3") + private String salesman3; + + /** 经理 */ + @Excel(name = "经理") + private String manage; + + /** 主管 */ + @Excel(name = "主管") + private String manager; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setUtbId(String utbId) + { + this.utbId = utbId; + } + + public String getUtbId() + { + return utbId; + } + public void setUtbName(String utbName) + { + this.utbName = utbName; + } + + public String getUtbName() + { + return utbName; + } + public void setSalesman1(String salesman1) + { + this.salesman1 = salesman1; + } + + public String getSalesman1() + { + return salesman1; + } + public void setSalesman2(String salesman2) + { + this.salesman2 = salesman2; + } + + public String getSalesman2() + { + return salesman2; + } + public void setSalesman3(String salesman3) + { + this.salesman3 = salesman3; + } + + public String getSalesman3() + { + return salesman3; + } + public void setManage(String manage) + { + this.manage = manage; + } + + public String getManage() + { + return manage; + } + public void setManager(String manager) + { + this.manager = manager; + } + + public String getManager() + { + return manager; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("utbId", getUtbId()) + .append("utbName", getUtbName()) + .append("salesman1", getSalesman1()) + .append("salesman2", getSalesman2()) + .append("salesman3", getSalesman3()) + .append("manage", getManage()) + .append("manager", getManager()) + .append("remark", getRemark()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpCtcMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpCtcMapper.java new file mode 100644 index 00000000..3988c233 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpCtcMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.erp.mapper; + +import java.util.List; +import com.ruoyi.erp.domain.ErpCtc; + +/** + * 业务绩效表Mapper接口 + * + * @author zhang + * @date 2024-03-04 + */ +public interface ErpCtcMapper +{ + /** + * 查询业务绩效表 + * + * @param id 业务绩效表ID + * @return 业务绩效表 + */ + public ErpCtc selectErpCtcById(Long id); + + /** + * 查询业务绩效表列表 + * + * @param erpCtc 业务绩效表 + * @return 业务绩效表集合 + */ + public List selectErpCtcList(ErpCtc erpCtc); + + /** + * 新增业务绩效表 + * + * @param erpCtc 业务绩效表 + * @return 结果 + */ + public int insertErpCtc(ErpCtc erpCtc); + + /** + * 修改业务绩效表 + * + * @param erpCtc 业务绩效表 + * @return 结果 + */ + public int updateErpCtc(ErpCtc erpCtc); + + /** + * 删除业务绩效表 + * + * @param id 业务绩效表ID + * @return 结果 + */ + public int deleteErpCtcById(Long id); + + /** + * 批量删除业务绩效表 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpCtcByIds(String[] ids); + + /** + * 作废业务绩效表 + * + * @param id 业务绩效表ID + * @return 结果 + */ + public int cancelErpCtcById(Long id); + + /** + * 恢复业务绩效表 + * + * @param id 业务绩效表ID + * @return 结果 + */ + public int restoreErpCtcById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpUtbItemMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpUtbItemMapper.java new file mode 100644 index 00000000..223cd172 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/mapper/ErpUtbItemMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.erp.mapper; + +import java.util.List; +import com.ruoyi.erp.domain.ErpUtbItem; + +/** + * 业务团队Mapper接口 + * + * @author zhang + * @date 2024-03-05 + */ +public interface ErpUtbItemMapper +{ + /** + * 查询业务团队 + * + * @param id 业务团队ID + * @return 业务团队 + */ + public ErpUtbItem selectErpUtbItemById(Long id); + + /** + * 查询业务团队列表 + * + * @param erpUtbItem 业务团队 + * @return 业务团队集合 + */ + public List selectErpUtbItemList(ErpUtbItem erpUtbItem); + + /** + * 新增业务团队 + * + * @param erpUtbItem 业务团队 + * @return 结果 + */ + public int insertErpUtbItem(ErpUtbItem erpUtbItem); + + /** + * 修改业务团队 + * + * @param erpUtbItem 业务团队 + * @return 结果 + */ + public int updateErpUtbItem(ErpUtbItem erpUtbItem); + + /** + * 删除业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + public int deleteErpUtbItemById(Long id); + + /** + * 批量删除业务团队 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpUtbItemByIds(String[] ids); + + /** + * 作废业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + public int cancelErpUtbItemById(Long id); + + /** + * 恢复业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + public int restoreErpUtbItemById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpCtcService.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpCtcService.java new file mode 100644 index 00000000..def7d0a9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpCtcService.java @@ -0,0 +1,77 @@ +package com.ruoyi.erp.service; + +import java.util.List; +import com.ruoyi.erp.domain.ErpCtc; + +/** + * 业务绩效表Service接口 + * + * @author zhang + * @date 2024-03-04 + */ +public interface IErpCtcService +{ + /** + * 查询业务绩效表 + * + * @param id 业务绩效表ID + * @return 业务绩效表 + */ + public ErpCtc selectErpCtcById(Long id); + + /** + * 查询业务绩效表列表 + * + * @param erpCtc 业务绩效表 + * @return 业务绩效表集合 + */ + public List selectErpCtcList(ErpCtc erpCtc); + + /** + * 新增业务绩效表 + * + * @param erpCtc 业务绩效表 + * @return 结果 + */ + public int insertErpCtc(ErpCtc erpCtc); + + /** + * 修改业务绩效表 + * + * @param erpCtc 业务绩效表 + * @return 结果 + */ + public int updateErpCtc(ErpCtc erpCtc); + + /** + * 批量删除业务绩效表 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpCtcByIds(String ids); + + /** + * 删除业务绩效表信息 + * + * @param id 业务绩效表ID + * @return 结果 + */ + public int deleteErpCtcById(Long id); + + /** + * 作废业务绩效表 + * @param id 业务绩效表ID + * @return + */ + int cancelErpCtcById(Long id); + + /** + * 恢复业务绩效表 + * @param id 业务绩效表ID + * @return + */ + int restoreErpCtcById(Long id); + + Object getId(); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpUtbItemService.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpUtbItemService.java new file mode 100644 index 00000000..3fe53422 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/IErpUtbItemService.java @@ -0,0 +1,73 @@ +package com.ruoyi.erp.service; + +import com.ruoyi.erp.domain.ErpUtbItem; + +import java.util.List; + +public interface IErpUtbItemService +{ + /** + * 查询业务团队 + * + * @param id 业务团队ID + * @return 业务团队 + */ + public ErpUtbItem selectErpUtbItemById(Long id); + + /** + * 查询业务团队列表 + * + * @param erpUtbItem 业务团队 + * @return 业务团队集合 + */ + public List selectErpUtbItemList(ErpUtbItem erpUtbItem); + + /** + * 新增业务团队 + * + * @param erpUtbItem 业务团队 + * @return 结果 + */ + public int insertErpUtbItem(ErpUtbItem erpUtbItem); + + /** + * 修改业务团队 + * + * @param erpUtbItem 业务团队 + * @return 结果 + */ + public int updateErpUtbItem(ErpUtbItem erpUtbItem); + /** + * 批量删除业务团队 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpUtbItemByIds(String ids); + + /** + * 删除业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + public int deleteErpUtbItemById(Long id); + + + + /** + * 作废业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + public int cancelErpUtbItemById(Long id); + + /** + * 恢复业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + public int restoreErpUtbItemById(Long id); +} \ No newline at end of file diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpCtcServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpCtcServiceImpl.java new file mode 100644 index 00000000..16711797 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpCtcServiceImpl.java @@ -0,0 +1,133 @@ +package com.ruoyi.erp.service.impl; + +import java.text.SimpleDateFormat; +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.erp.mapper.ErpCtcMapper; +import com.ruoyi.erp.domain.ErpCtc; +import com.ruoyi.erp.service.IErpCtcService; +import com.ruoyi.common.core.text.Convert; + +/** + * 业务绩效表Service业务层处理 + * + * @author zhang + * @date 2024-03-04 + */ +@Service +public class ErpCtcServiceImpl implements IErpCtcService +{ + @Autowired + private ErpCtcMapper erpCtcMapper; + + /** + * 查询业务绩效表 + * + * @param id 业务绩效表ID + * @return 业务绩效表 + */ + @Override + public ErpCtc selectErpCtcById(Long id) + { + return erpCtcMapper.selectErpCtcById(id); + } + + /** + * 查询业务绩效表列表 + * + * @param erpCtc 业务绩效表 + * @return 业务绩效表 + */ + @Override + public List selectErpCtcList(ErpCtc erpCtc) + { + return erpCtcMapper.selectErpCtcList(erpCtc); + } + + /** + * 新增业务绩效表 + * + * @param erpCtc 业务绩效表 + * @return 结果 + */ + @Override + public int insertErpCtc(ErpCtc erpCtc) + { + String loginName = ShiroUtils.getLoginName(); + erpCtc.setCreateBy(loginName); + erpCtc.setCreateTime(DateUtils.getNowDate()); + return erpCtcMapper.insertErpCtc(erpCtc); + } + + /** + * 修改业务绩效表 + * + * @param erpCtc 业务绩效表 + * @return 结果 + */ + @Override + public int updateErpCtc(ErpCtc erpCtc) + { + String loginName = ShiroUtils.getLoginName(); + erpCtc.setUpdateBy(loginName); + erpCtc.setUpdateTime(DateUtils.getNowDate()); + return erpCtcMapper.updateErpCtc(erpCtc); + } + + /** + * 删除业务绩效表对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteErpCtcByIds(String ids) + { + return erpCtcMapper.deleteErpCtcByIds(Convert.toStrArray(ids)); + } + + /** + * 删除业务绩效表信息 + * + * @param id 业务绩效表ID + * @return 结果 + */ + @Override + public int deleteErpCtcById(Long id) + { + return erpCtcMapper.deleteErpCtcById(id); + } + + /** + * 作废业务绩效表 + * + * @param id 业务绩效表ID + * @return 结果 + */ + @Override + public int cancelErpCtcById(Long id) + { + return erpCtcMapper.cancelErpCtcById(id); + } + + /** + * 恢复业务绩效表信息 + * + * @param id 业务绩效表ID + * @return 结果 + */ + @Override + public int restoreErpCtcById(Long id) + { + return erpCtcMapper.restoreErpCtcById(id); + } + + @Override + public String getId() { + String time = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(System.currentTimeMillis()); + return "YWJ" + time.substring(2); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpUtbItemServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpUtbItemServiceImpl.java new file mode 100644 index 00000000..d8999314 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/erp/service/impl/ErpUtbItemServiceImpl.java @@ -0,0 +1,128 @@ +package com.ruoyi.erp.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.erp.mapper.ErpUtbItemMapper; +import com.ruoyi.erp.domain.ErpUtbItem; +import com.ruoyi.erp.service.IErpUtbItemService; +import com.ruoyi.common.core.text.Convert; + +/** + * 业务团队Service业务层处理 + * + * @author zhang + * @date 2024-03-05 + */ +@Service +public class ErpUtbItemServiceImpl implements IErpUtbItemService +{ + @Autowired + private ErpUtbItemMapper erpUtbItemMapper; + + /** + * 查询业务团队 + * + * @param id 业务团队ID + * @return 业务团队 + */ + @Override + public ErpUtbItem selectErpUtbItemById(Long id) + { + return erpUtbItemMapper.selectErpUtbItemById(id); + } + + /** + * 查询业务团队列表 + * + * @param erpUtbItem 业务团队 + * @return 业务团队 + */ + @Override + public List selectErpUtbItemList(ErpUtbItem erpUtbItem) + { + return erpUtbItemMapper.selectErpUtbItemList(erpUtbItem); + } + + /** + * 新增业务团队 + * + * @param erpUtbItem 业务团队 + * @return 结果 + */ + @Override + public int insertErpUtbItem(ErpUtbItem erpUtbItem) + { + String loginName = ShiroUtils.getLoginName(); + erpUtbItem.setCreateBy(loginName); + erpUtbItem.setCreateTime(DateUtils.getNowDate()); + return erpUtbItemMapper.insertErpUtbItem(erpUtbItem); + } + + /** + * 修改业务团队 + * + * @param erpUtbItem 业务团队 + * @return 结果 + */ + @Override + public int updateErpUtbItem(ErpUtbItem erpUtbItem) + { + String loginName = ShiroUtils.getLoginName(); + erpUtbItem.setUpdateBy(loginName); + erpUtbItem.setUpdateTime(DateUtils.getNowDate()); + return erpUtbItemMapper.updateErpUtbItem(erpUtbItem); + } + + /** + * 删除业务团队对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteErpUtbItemByIds(String ids) + { + return erpUtbItemMapper.deleteErpUtbItemByIds(Convert.toStrArray(ids)); + } + + /** + * 删除业务团队信息 + * + * @param id 业务团队ID + * @return 结果 + */ + @Override + public int deleteErpUtbItemById(Long id) + { + return erpUtbItemMapper.deleteErpUtbItemById(id); + } + + + + /** + * 作废业务团队 + * + * @param id 业务团队ID + * @return 结果 + */ + @Override + public int cancelErpUtbItemById(Long id) + { + return erpUtbItemMapper.cancelErpUtbItemById(id); + } + + /** + * 恢复业务团队信息 + * + * @param id 业务团队ID + * @return 结果 + */ + @Override + public int restoreErpUtbItemById(Long id) + { + return erpUtbItemMapper.restoreErpUtbItemById(id); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/ErpCompanyCostController.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/ErpCompanyCostController.java new file mode 100644 index 00000000..1a58d52d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/controller/ErpCompanyCostController.java @@ -0,0 +1,151 @@ +package com.ruoyi.taxInvoice.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.taxInvoice.domain.ErpCompanyCost; +import com.ruoyi.taxInvoice.service.IErpCompanyCostService; +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 zhang + * @date 2024-03-05 + */ +@Controller +@RequestMapping("/taxInvoice/companyCost") +public class ErpCompanyCostController extends BaseController +{ + private String prefix = "taxInvoice/companyCost"; + + @Autowired + private IErpCompanyCostService erpCompanyCostService; + + @RequiresPermissions("taxInvoice:companyCost:view") + @GetMapping() + public String companyCost() + { + return prefix + "/companyCost"; + } + + /** + * 查询公司成本列表 + */ + @RequiresPermissions("taxInvoice:companyCost:list") + @PostMapping("/list") + @ResponseBody + public TableDataInfo list(ErpCompanyCost erpCompanyCost) + { + startPage(); + List list = erpCompanyCostService.selectErpCompanyCostList(erpCompanyCost); + return getDataTable(list); + } + + /** + * 导出公司成本列表 + */ + @RequiresPermissions("taxInvoice:companyCost:export") + @Log(title = "公司成本", businessType = BusinessType.EXPORT) + @PostMapping("/export") + @ResponseBody + public AjaxResult export(ErpCompanyCost erpCompanyCost) + { + List list = erpCompanyCostService.selectErpCompanyCostList(erpCompanyCost); + ExcelUtil util = new ExcelUtil(ErpCompanyCost.class); + return util.exportExcel(list, "公司成本数据"); + } + + /** + * 新增公司成本 + */ + @GetMapping("/add") + public String add() + { + return prefix + "/add"; + } + + /** + * 新增保存公司成本 + */ + @RequiresPermissions("taxInvoice:companyCost:add") + @Log(title = "公司成本", businessType = BusinessType.INSERT) + @PostMapping("/add") + @ResponseBody + public AjaxResult addSave(ErpCompanyCost erpCompanyCost) + { + return toAjax(erpCompanyCostService.insertErpCompanyCost(erpCompanyCost)); + } + + /** + * 修改公司成本 + */ + @GetMapping("/edit/{id}") + public String edit(@PathVariable("id") Long id, ModelMap mmap) + { + ErpCompanyCost erpCompanyCost = erpCompanyCostService.selectErpCompanyCostById(id); + mmap.put("erpCompanyCost", erpCompanyCost); + return prefix + "/edit"; + } + + /** + * 修改保存公司成本 + */ + @RequiresPermissions("taxInvoice:companyCost:edit") + @Log(title = "公司成本", businessType = BusinessType.UPDATE) + @PostMapping("/edit") + @ResponseBody + public AjaxResult editSave(ErpCompanyCost erpCompanyCost) + { + return toAjax(erpCompanyCostService.updateErpCompanyCost(erpCompanyCost)); + } + + /** + * 删除公司成本 + */ + @RequiresPermissions("taxInvoice:companyCost:remove") + @Log(title = "公司成本", businessType = BusinessType.DELETE) + @PostMapping( "/remove") + @ResponseBody + public AjaxResult remove(String ids) + { + return toAjax(erpCompanyCostService.deleteErpCompanyCostByIds(ids)); + } + + /** + * 作废公司成本 + */ + @RequiresPermissions("taxInvoice:companyCost:cancel") + @Log(title = "公司成本", businessType = BusinessType.CANCEL) + @GetMapping( "/cancel/{id}") + @ResponseBody + public AjaxResult cancel(@PathVariable("id") Long id){ + return toAjax(erpCompanyCostService.cancelErpCompanyCostById(id)); + } + + /** + * 恢复公司成本 + */ + @RequiresPermissions("taxInvoice:companyCost:restore") + @Log(title = "公司成本", businessType = BusinessType.RESTORE) + @GetMapping( "/restore/{id}") + @ResponseBody + public AjaxResult restore(@PathVariable("id")Long id) + { + return toAjax(erpCompanyCostService.restoreErpCompanyCostById(id)); + } + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/ErpCompanyCost.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/ErpCompanyCost.java new file mode 100644 index 00000000..2aac98d4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/domain/ErpCompanyCost.java @@ -0,0 +1,113 @@ +package com.ruoyi.taxInvoice.domain; + +import java.math.BigDecimal; +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; + +/** + * 公司成本对象 erp_company_cost + * + * @author zhang + * @date 2024-03-05 + */ +public class ErpCompanyCost extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 索引 */ + private Long id; + + /** 公司成本ID */ + @Excel(name = "公司成本ID") + private String ctcId; + + /** 年份 */ + @Excel(name = "年份") + private Integer year; + + /** 月份 */ + @Excel(name = "月份") + private Integer month; + + /** 经营成本 */ + @Excel(name = "经营成本") + private BigDecimal opex; + + /** 业务成本 */ + @Excel(name = "业务成本") + private BigDecimal cob; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCtcId(String ctcId) + { + this.ctcId = ctcId; + } + + public String getCtcId() + { + return ctcId; + } + public void setYear(Integer year) + { + this.year = year; + } + + public Integer getYear() + { + return year; + } + public void setMonth(Integer month) + { + this.month = month; + } + + public Integer getMonth() + { + return month; + } + public void setOpex(BigDecimal opex) + { + this.opex = opex; + } + + public BigDecimal getOpex() + { + return opex; + } + public void setCob(BigDecimal cob) + { + this.cob = cob; + } + + public BigDecimal getCob() + { + return cob; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("ctcId", getCtcId()) + .append("year", getYear()) + .append("month", getMonth()) + .append("opex", getOpex()) + .append("cob", getCob()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("updateBy", getUpdateBy()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/ErpCompanyCostMapper.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/ErpCompanyCostMapper.java new file mode 100644 index 00000000..41aa8554 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/mapper/ErpCompanyCostMapper.java @@ -0,0 +1,77 @@ +package com.ruoyi.taxInvoice.mapper; + +import java.util.List; +import com.ruoyi.taxInvoice.domain.ErpCompanyCost; + +/** + * 公司成本Mapper接口 + * + * @author zhang + * @date 2024-03-05 + */ +public interface ErpCompanyCostMapper +{ + /** + * 查询公司成本 + * + * @param id 公司成本ID + * @return 公司成本 + */ + public ErpCompanyCost selectErpCompanyCostById(Long id); + + /** + * 查询公司成本列表 + * + * @param erpCompanyCost 公司成本 + * @return 公司成本集合 + */ + public List selectErpCompanyCostList(ErpCompanyCost erpCompanyCost); + + /** + * 新增公司成本 + * + * @param erpCompanyCost 公司成本 + * @return 结果 + */ + public int insertErpCompanyCost(ErpCompanyCost erpCompanyCost); + + /** + * 修改公司成本 + * + * @param erpCompanyCost 公司成本 + * @return 结果 + */ + public int updateErpCompanyCost(ErpCompanyCost erpCompanyCost); + + /** + * 删除公司成本 + * + * @param id 公司成本ID + * @return 结果 + */ + public int deleteErpCompanyCostById(Long id); + + /** + * 批量删除公司成本 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpCompanyCostByIds(String[] ids); + + /** + * 作废公司成本 + * + * @param id 公司成本ID + * @return 结果 + */ + public int cancelErpCompanyCostById(Long id); + + /** + * 恢复公司成本 + * + * @param id 公司成本ID + * @return 结果 + */ + public int restoreErpCompanyCostById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/IErpCompanyCostService.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/IErpCompanyCostService.java new file mode 100644 index 00000000..9595db6d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/IErpCompanyCostService.java @@ -0,0 +1,75 @@ +package com.ruoyi.taxInvoice.service; + +import java.util.List; +import com.ruoyi.taxInvoice.domain.ErpCompanyCost; + +/** + * 公司成本Service接口 + * + * @author zhang + * @date 2024-03-05 + */ +public interface IErpCompanyCostService +{ + /** + * 查询公司成本 + * + * @param id 公司成本ID + * @return 公司成本 + */ + public ErpCompanyCost selectErpCompanyCostById(Long id); + + /** + * 查询公司成本列表 + * + * @param erpCompanyCost 公司成本 + * @return 公司成本集合 + */ + public List selectErpCompanyCostList(ErpCompanyCost erpCompanyCost); + + /** + * 新增公司成本 + * + * @param erpCompanyCost 公司成本 + * @return 结果 + */ + public int insertErpCompanyCost(ErpCompanyCost erpCompanyCost); + + /** + * 修改公司成本 + * + * @param erpCompanyCost 公司成本 + * @return 结果 + */ + public int updateErpCompanyCost(ErpCompanyCost erpCompanyCost); + + /** + * 批量删除公司成本 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteErpCompanyCostByIds(String ids); + + /** + * 删除公司成本信息 + * + * @param id 公司成本ID + * @return 结果 + */ + public int deleteErpCompanyCostById(Long id); + + /** + * 作废公司成本 + * @param id 公司成本ID + * @return + */ + int cancelErpCompanyCostById(Long id); + + /** + * 恢复公司成本 + * @param id 公司成本ID + * @return + */ + int restoreErpCompanyCostById(Long id); +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/ErpCompanyCostServiceImpl.java b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/ErpCompanyCostServiceImpl.java new file mode 100644 index 00000000..e7112853 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/taxInvoice/service/impl/ErpCompanyCostServiceImpl.java @@ -0,0 +1,126 @@ +package com.ruoyi.taxInvoice.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.taxInvoice.mapper.ErpCompanyCostMapper; +import com.ruoyi.taxInvoice.domain.ErpCompanyCost; +import com.ruoyi.taxInvoice.service.IErpCompanyCostService; +import com.ruoyi.common.core.text.Convert; + +/** + * 公司成本Service业务层处理 + * + * @author zhang + * @date 2024-03-05 + */ +@Service +public class ErpCompanyCostServiceImpl implements IErpCompanyCostService +{ + @Autowired + private ErpCompanyCostMapper erpCompanyCostMapper; + + /** + * 查询公司成本 + * + * @param id 公司成本ID + * @return 公司成本 + */ + @Override + public ErpCompanyCost selectErpCompanyCostById(Long id) + { + return erpCompanyCostMapper.selectErpCompanyCostById(id); + } + + /** + * 查询公司成本列表 + * + * @param erpCompanyCost 公司成本 + * @return 公司成本 + */ + @Override + public List selectErpCompanyCostList(ErpCompanyCost erpCompanyCost) + { + return erpCompanyCostMapper.selectErpCompanyCostList(erpCompanyCost); + } + + /** + * 新增公司成本 + * + * @param erpCompanyCost 公司成本 + * @return 结果 + */ + @Override + public int insertErpCompanyCost(ErpCompanyCost erpCompanyCost) + { + String loginName = ShiroUtils.getLoginName(); + erpCompanyCost.setCreateBy(loginName); + erpCompanyCost.setCreateTime(DateUtils.getNowDate()); + return erpCompanyCostMapper.insertErpCompanyCost(erpCompanyCost); + } + + /** + * 修改公司成本 + * + * @param erpCompanyCost 公司成本 + * @return 结果 + */ + @Override + public int updateErpCompanyCost(ErpCompanyCost erpCompanyCost) + { + erpCompanyCost.setUpdateTime(DateUtils.getNowDate()); + String loginName = ShiroUtils.getLoginName(); + erpCompanyCost.setUpdateBy(loginName); + return erpCompanyCostMapper.updateErpCompanyCost(erpCompanyCost); + } + + /** + * 删除公司成本对象 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + @Override + public int deleteErpCompanyCostByIds(String ids) + { + return erpCompanyCostMapper.deleteErpCompanyCostByIds(Convert.toStrArray(ids)); + } + + /** + * 删除公司成本信息 + * + * @param id 公司成本ID + * @return 结果 + */ + @Override + public int deleteErpCompanyCostById(Long id) + { + return erpCompanyCostMapper.deleteErpCompanyCostById(id); + } + + /** + * 作废公司成本 + * + * @param id 公司成本ID + * @return 结果 + */ + @Override + public int cancelErpCompanyCostById(Long id) + { + return erpCompanyCostMapper.cancelErpCompanyCostById(id); + } + + /** + * 恢复公司成本信息 + * + * @param id 公司成本ID + * @return 结果 + */ + @Override + public int restoreErpCompanyCostById(Long id) + { + return erpCompanyCostMapper.restoreErpCompanyCostById(id); + } +} diff --git a/ruoyi-admin/src/main/resources/mapper/erp/ErpCtcMapper.xml b/ruoyi-admin/src/main/resources/mapper/erp/ErpCtcMapper.xml new file mode 100644 index 00000000..54040850 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/erp/ErpCtcMapper.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, ctc_id, staff_no, sale_staff, dept_post, ctc_type, use_status, currency, sale_sum, sale_dcase_sum, sale_case_sum, sale_ncase_sum, nsettle_num, settle_num, ngrant_num, grant_num, create_by, create_time, update_by, update_time, remark from erp_ctc + + + + + + + + insert into erp_ctc + + id, + ctc_id, + staff_no, + sale_staff, + dept_post, + ctc_type, + use_status, + currency, + sale_sum, + sale_dcase_sum, + sale_case_sum, + sale_ncase_sum, + nsettle_num, + settle_num, + ngrant_num, + grant_num, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{id}, + #{ctcId}, + #{staffNo}, + #{saleStaff}, + #{deptPost}, + #{ctcType}, + #{useStatus}, + #{currency}, + #{saleSum}, + #{saleDcaseSum}, + #{saleCaseSum}, + #{saleNcaseSum}, + #{nsettleNum}, + #{settleNum}, + #{ngrantNum}, + #{grantNum}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update erp_ctc + + ctc_id = #{ctcId}, + staff_no = #{staffNo}, + sale_staff = #{saleStaff}, + dept_post = #{deptPost}, + ctc_type = #{ctcType}, + use_status = #{useStatus}, + currency = #{currency}, + sale_sum = #{saleSum}, + sale_dcase_sum = #{saleDcaseSum}, + sale_case_sum = #{saleCaseSum}, + sale_ncase_sum = #{saleNcaseSum}, + nsettle_num = #{nsettleNum}, + settle_num = #{settleNum}, + ngrant_num = #{ngrantNum}, + grant_num = #{grantNum}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from erp_ctc where id = #{id} + + + + delete from erp_ctc where id in + + #{id} + + + + + update erp_ctc set del_flag = '1' where id = #{id} + + + + update erp_ctc set del_flag = '0' where id = #{id} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/erp/ErpUtbItemMapper.xml b/ruoyi-admin/src/main/resources/mapper/erp/ErpUtbItemMapper.xml new file mode 100644 index 00000000..9f82ee06 --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/erp/ErpUtbItemMapper.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + select id, utbId, utbName, salesman1, salesman2, salesman3, manage, manager, remark, create_by, create_time, update_by, update_time from erp_utb_item + + + + + + + + insert into erp_utb_item + + id, + utbId, + utbName, + salesman1, + salesman2, + salesman3, + manage, + manager, + remark, + create_by, + create_time, + update_by, + update_time, + + + #{id}, + #{utbId}, + #{utbName}, + #{salesman1}, + #{salesman2}, + #{salesman3}, + #{manage}, + #{manager}, + #{remark}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update erp_utb_item + + utbId = #{utbId}, + utbName = #{utbName}, + salesman1 = #{salesman1}, + salesman2 = #{salesman2}, + salesman3 = #{salesman3}, + manage = #{manage}, + manager = #{manager}, + remark = #{remark}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from erp_utb_item where id = #{id} + + + + delete from erp_utb_item where id in + + #{id} + + + + + update erp_utb_item set del_flag = '1' where id = #{id} + + + + update erp_utb_item set del_flag = '0' where id = #{id} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/mapper/taxInvoice/ErpCompanyCostMapper.xml b/ruoyi-admin/src/main/resources/mapper/taxInvoice/ErpCompanyCostMapper.xml new file mode 100644 index 00000000..dfa3128b --- /dev/null +++ b/ruoyi-admin/src/main/resources/mapper/taxInvoice/ErpCompanyCostMapper.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + select id, ctc_id, year, month, opex, cob, create_by, create_time, update_time, update_by, remark from erp_company_cost + + + + + + + + insert into erp_company_cost + + id, + ctc_id, + year, + month, + opex, + cob, + create_by, + create_time, + update_time, + update_by, + remark, + + + #{id}, + #{ctcId}, + #{year}, + #{month}, + #{opex}, + #{cob}, + #{createBy}, + #{createTime}, + #{updateTime}, + #{updateBy}, + #{remark}, + + + + + update erp_company_cost + + ctc_id = #{ctcId}, + year = #{year}, + month = #{month}, + opex = #{opex}, + cob = #{cob}, + create_by = #{createBy}, + create_time = #{createTime}, + update_time = #{updateTime}, + update_by = #{updateBy}, + remark = #{remark}, + + where id = #{id} + + + + delete from erp_company_cost where id = #{id} + + + + delete from erp_company_cost where id in + + #{id} + + + + + update erp_company_cost set del_flag = '1' where id = #{id} + + + + update erp_company_cost set del_flag = '0' where id = #{id} + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/ctc/add.html b/ruoyi-admin/src/main/resources/templates/erp/ctc/add.html new file mode 100644 index 00000000..7df9b094 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/ctc/add.html @@ -0,0 +1,122 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/ctc/ctc.html b/ruoyi-admin/src/main/resources/templates/erp/ctc/ctc.html new file mode 100644 index 00000000..9b3d8236 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/ctc/ctc.html @@ -0,0 +1,200 @@ + + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/ctc/edit.html b/ruoyi-admin/src/main/resources/templates/erp/ctc/edit.html new file mode 100644 index 00000000..f268701b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/ctc/edit.html @@ -0,0 +1,119 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/utb/add.html b/ruoyi-admin/src/main/resources/templates/erp/utb/add.html new file mode 100644 index 00000000..218842f9 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/utb/add.html @@ -0,0 +1,73 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/utb/edit.html b/ruoyi-admin/src/main/resources/templates/erp/utb/edit.html new file mode 100644 index 00000000..c422c34e --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/utb/edit.html @@ -0,0 +1,74 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/utb/utb.html b/ruoyi-admin/src/main/resources/templates/erp/utb/utb.html new file mode 100644 index 00000000..2244d733 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/utb/utb.html @@ -0,0 +1,169 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ +
+ + 添加业务团队 + + + + + + + + + + +
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/erp/utb/utbcoef.html b/ruoyi-admin/src/main/resources/templates/erp/utb/utbcoef.html new file mode 100644 index 00000000..e2c44cef --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/erp/utb/utbcoef.html @@ -0,0 +1,33 @@ + + + + + + + + +
+

业务绩效配置

+
+ +
+
+ 超过 +
+
+
+ + +
+
+ +
+ + + + + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html new file mode 100644 index 00000000..a5b55ed6 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/add.html @@ -0,0 +1,61 @@ + + + + + + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html new file mode 100644 index 00000000..9c5d1e1b --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/companyCost.html @@ -0,0 +1,123 @@ + + + + + + +
+
+
+
+
+
    +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ + +
+
+
+
+
+ + + + \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html new file mode 100644 index 00000000..624cc2b8 --- /dev/null +++ b/ruoyi-admin/src/main/resources/templates/taxInvoice/companyCost/edit.html @@ -0,0 +1,62 @@ + + + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+
+ + + + \ No newline at end of file