diff --git a/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusAgentInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusAgentInfoController.java new file mode 100644 index 0000000..85c757c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusAgentInfoController.java @@ -0,0 +1,104 @@ +package com.ruoyi.business.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.business.domain.BusAgentInfo; +import com.ruoyi.business.service.IBusAgentInfoService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 代理管理Controller + * + * @author ruoyi + * @date 2024-07-02 + */ +@RestController +@RequestMapping("/business/agent") +public class BusAgentInfoController extends BaseController +{ + @Autowired + private IBusAgentInfoService busAgentInfoService; + + /** + * 查询代理管理列表 + */ + @PreAuthorize("@ss.hasPermi('business:agent:list')") + @GetMapping("/list") + public TableDataInfo list(BusAgentInfo busAgentInfo) + { + startPage(); + List list = busAgentInfoService.selectBusAgentInfoList(busAgentInfo); + return getDataTable(list); + } + + /** + * 导出代理管理列表 + */ + @PreAuthorize("@ss.hasPermi('business:agent:export')") + @Log(title = "代理管理", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BusAgentInfo busAgentInfo) + { + List list = busAgentInfoService.selectBusAgentInfoList(busAgentInfo); + ExcelUtil util = new ExcelUtil(BusAgentInfo.class); + util.exportExcel(response, list, "代理管理数据"); + } + + /** + * 获取代理管理详细信息 + */ + @PreAuthorize("@ss.hasPermi('business:agent:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(busAgentInfoService.selectBusAgentInfoById(id)); + } + + /** + * 新增代理管理 + */ + @PreAuthorize("@ss.hasPermi('business:agent:add')") + @Log(title = "代理管理", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BusAgentInfo busAgentInfo) + { + return toAjax(busAgentInfoService.insertBusAgentInfo(busAgentInfo)); + } + + /** + * 修改代理管理 + */ + @PreAuthorize("@ss.hasPermi('business:agent:edit')") + @Log(title = "代理管理", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BusAgentInfo busAgentInfo) + { + return toAjax(busAgentInfoService.updateBusAgentInfo(busAgentInfo)); + } + + /** + * 删除代理管理 + */ + @PreAuthorize("@ss.hasPermi('business:agent:remove')") + @Log(title = "代理管理", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(busAgentInfoService.deleteBusAgentInfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusIntegralRecordController.java b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusIntegralRecordController.java new file mode 100644 index 0000000..8a66d11 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusIntegralRecordController.java @@ -0,0 +1,104 @@ +package com.ruoyi.business.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.business.domain.BusIntegralRecord; +import com.ruoyi.business.service.IBusIntegralRecordService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 积分变更记录Controller + * + * @author ruoyi + * @date 2024-07-02 + */ +@RestController +@RequestMapping("/business/integral") +public class BusIntegralRecordController extends BaseController +{ + @Autowired + private IBusIntegralRecordService busIntegralRecordService; + + /** + * 查询积分变更记录列表 + */ + @PreAuthorize("@ss.hasPermi('business:integral:list')") + @GetMapping("/list") + public TableDataInfo list(BusIntegralRecord busIntegralRecord) + { + startPage(); + List list = busIntegralRecordService.selectBusIntegralRecordList(busIntegralRecord); + return getDataTable(list); + } + + /** + * 导出积分变更记录列表 + */ + @PreAuthorize("@ss.hasPermi('business:integral:export')") + @Log(title = "积分变更记录", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BusIntegralRecord busIntegralRecord) + { + List list = busIntegralRecordService.selectBusIntegralRecordList(busIntegralRecord); + ExcelUtil util = new ExcelUtil(BusIntegralRecord.class); + util.exportExcel(response, list, "积分变更记录数据"); + } + + /** + * 获取积分变更记录详细信息 + */ + @PreAuthorize("@ss.hasPermi('business:integral:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(busIntegralRecordService.selectBusIntegralRecordById(id)); + } + + /** + * 新增积分变更记录 + */ + @PreAuthorize("@ss.hasPermi('business:integral:add')") + @Log(title = "积分变更记录", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BusIntegralRecord busIntegralRecord) + { + return toAjax(busIntegralRecordService.insertBusIntegralRecord(busIntegralRecord)); + } + + /** + * 修改积分变更记录 + */ + @PreAuthorize("@ss.hasPermi('business:integral:edit')") + @Log(title = "积分变更记录", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BusIntegralRecord busIntegralRecord) + { + return toAjax(busIntegralRecordService.updateBusIntegralRecord(busIntegralRecord)); + } + + /** + * 删除积分变更记录 + */ + @PreAuthorize("@ss.hasPermi('business:integral:remove')") + @Log(title = "积分变更记录", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(busIntegralRecordService.deleteBusIntegralRecordByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusSaleInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusSaleInfoController.java new file mode 100644 index 0000000..e02ebf8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusSaleInfoController.java @@ -0,0 +1,104 @@ +package com.ruoyi.business.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.business.domain.BusSaleInfo; +import com.ruoyi.business.service.IBusSaleInfoService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 店铺归属-销售人员统计Controller + * + * @author ruoyi + * @date 2024-07-02 + */ +@RestController +@RequestMapping("/business/sale") +public class BusSaleInfoController extends BaseController +{ + @Autowired + private IBusSaleInfoService busSaleInfoService; + + /** + * 查询店铺归属-销售人员统计列表 + */ + @PreAuthorize("@ss.hasPermi('business:sale:list')") + @GetMapping("/list") + public TableDataInfo list(BusSaleInfo busSaleInfo) + { + startPage(); + List list = busSaleInfoService.selectBusSaleInfoList(busSaleInfo); + return getDataTable(list); + } + + /** + * 导出店铺归属-销售人员统计列表 + */ + @PreAuthorize("@ss.hasPermi('business:sale:export')") + @Log(title = "店铺归属-销售人员统计", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BusSaleInfo busSaleInfo) + { + List list = busSaleInfoService.selectBusSaleInfoList(busSaleInfo); + ExcelUtil util = new ExcelUtil(BusSaleInfo.class); + util.exportExcel(response, list, "店铺归属-销售人员统计数据"); + } + + /** + * 获取店铺归属-销售人员统计详细信息 + */ + @PreAuthorize("@ss.hasPermi('business:sale:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(busSaleInfoService.selectBusSaleInfoById(id)); + } + + /** + * 新增店铺归属-销售人员统计 + */ + @PreAuthorize("@ss.hasPermi('business:sale:add')") + @Log(title = "店铺归属-销售人员统计", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BusSaleInfo busSaleInfo) + { + return toAjax(busSaleInfoService.insertBusSaleInfo(busSaleInfo)); + } + + /** + * 修改店铺归属-销售人员统计 + */ + @PreAuthorize("@ss.hasPermi('business:sale:edit')") + @Log(title = "店铺归属-销售人员统计", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BusSaleInfo busSaleInfo) + { + return toAjax(busSaleInfoService.updateBusSaleInfo(busSaleInfo)); + } + + /** + * 删除店铺归属-销售人员统计 + */ + @PreAuthorize("@ss.hasPermi('business:sale:remove')") + @Log(title = "店铺归属-销售人员统计", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(busSaleInfoService.deleteBusSaleInfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusStoreDayInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusStoreDayInfoController.java new file mode 100644 index 0000000..db68abe --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusStoreDayInfoController.java @@ -0,0 +1,104 @@ +package com.ruoyi.business.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.business.domain.BusStoreDayInfo; +import com.ruoyi.business.service.IBusStoreDayInfoService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 店铺单日信息Controller + * + * @author ruoyi + * @date 2024-07-02 + */ +@RestController +@RequestMapping("/business/storeDay") +public class BusStoreDayInfoController extends BaseController +{ + @Autowired + private IBusStoreDayInfoService busStoreDayInfoService; + + /** + * 查询店铺单日信息列表 + */ + @PreAuthorize("@ss.hasPermi('business:storeDay:list')") + @GetMapping("/list") + public TableDataInfo list(BusStoreDayInfo busStoreDayInfo) + { + startPage(); + List list = busStoreDayInfoService.selectBusStoreDayInfoList(busStoreDayInfo); + return getDataTable(list); + } + + /** + * 导出店铺单日信息列表 + */ + @PreAuthorize("@ss.hasPermi('business:storeDay:export')") + @Log(title = "店铺单日信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BusStoreDayInfo busStoreDayInfo) + { + List list = busStoreDayInfoService.selectBusStoreDayInfoList(busStoreDayInfo); + ExcelUtil util = new ExcelUtil(BusStoreDayInfo.class); + util.exportExcel(response, list, "店铺单日信息数据"); + } + + /** + * 获取店铺单日信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('business:storeDay:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(busStoreDayInfoService.selectBusStoreDayInfoById(id)); + } + + /** + * 新增店铺单日信息 + */ + @PreAuthorize("@ss.hasPermi('business:storeDay:add')") + @Log(title = "店铺单日信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BusStoreDayInfo busStoreDayInfo) + { + return toAjax(busStoreDayInfoService.insertBusStoreDayInfo(busStoreDayInfo)); + } + + /** + * 修改店铺单日信息 + */ + @PreAuthorize("@ss.hasPermi('business:storeDay:edit')") + @Log(title = "店铺单日信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BusStoreDayInfo busStoreDayInfo) + { + return toAjax(busStoreDayInfoService.updateBusStoreDayInfo(busStoreDayInfo)); + } + + /** + * 删除店铺单日信息 + */ + @PreAuthorize("@ss.hasPermi('business:storeDay:remove')") + @Log(title = "店铺单日信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(busStoreDayInfoService.deleteBusStoreDayInfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusStoreInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusStoreInfoController.java new file mode 100644 index 0000000..102f83c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/business/controller/BusStoreInfoController.java @@ -0,0 +1,104 @@ +package com.ruoyi.business.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.business.domain.BusStoreInfo; +import com.ruoyi.business.service.IBusStoreInfoService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 店铺信息Controller + * + * @author ruoyi + * @date 2024-07-02 + */ +@RestController +@RequestMapping("/business/store") +public class BusStoreInfoController extends BaseController +{ + @Autowired + private IBusStoreInfoService busStoreInfoService; + + /** + * 查询店铺信息列表 + */ + @PreAuthorize("@ss.hasPermi('business:store:list')") + @GetMapping("/list") + public TableDataInfo list(BusStoreInfo busStoreInfo) + { + startPage(); + List list = busStoreInfoService.selectBusStoreInfoList(busStoreInfo); + return getDataTable(list); + } + + /** + * 导出店铺信息列表 + */ + @PreAuthorize("@ss.hasPermi('business:store:export')") + @Log(title = "店铺信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BusStoreInfo busStoreInfo) + { + List list = busStoreInfoService.selectBusStoreInfoList(busStoreInfo); + ExcelUtil util = new ExcelUtil(BusStoreInfo.class); + util.exportExcel(response, list, "店铺信息数据"); + } + + /** + * 获取店铺信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('business:store:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(busStoreInfoService.selectBusStoreInfoById(id)); + } + + /** + * 新增店铺信息 + */ + @PreAuthorize("@ss.hasPermi('business:store:add')") + @Log(title = "店铺信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BusStoreInfo busStoreInfo) + { + return toAjax(busStoreInfoService.insertBusStoreInfo(busStoreInfo)); + } + + /** + * 修改店铺信息 + */ + @PreAuthorize("@ss.hasPermi('business:store:edit')") + @Log(title = "店铺信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BusStoreInfo busStoreInfo) + { + return toAjax(busStoreInfoService.updateBusStoreInfo(busStoreInfo)); + } + + /** + * 删除店铺信息 + */ + @PreAuthorize("@ss.hasPermi('business:store:remove')") + @Log(title = "店铺信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(busStoreInfoService.deleteBusStoreInfoByIds(ids)); + } +} diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 9fcc027..923ec86 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -7,8 +7,8 @@ spring: # 主库数据源 master: url: jdbc:mysql://bj-cdb-7ezuofce.sql.tencentcdb.com:21965/ry_vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 - username: root - password: xxhy@2024 + username: youshi + password: youshi@2024 # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusAgentInfo.java b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusAgentInfo.java new file mode 100644 index 0000000..cd24da0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusAgentInfo.java @@ -0,0 +1,208 @@ +package com.ruoyi.business.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 代理管理对象 bus_agent_info + * + * @author ruoyi + * @date 2024-07-02 + */ +public class BusAgentInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 代理人账号 */ + @Excel(name = "代理人账号") + private String agentAccount; + + /** 代理人姓名 */ + @Excel(name = "代理人姓名") + private String agentName; + + /** 上级代理商编码 */ + @Excel(name = "上级代理商编码") + private Long superiorAgentCode; + + /** 授权店铺数 */ + @Excel(name = "授权店铺数") + private Long grantStoreNum; + + /** 运营店铺数 */ + @Excel(name = "运营店铺数") + private Long operateStoreNum; + + /** 昨日消耗积分数 */ + @Excel(name = "昨日消耗积分数") + private Long lastUseIntegralNum; + + /** 昨日好评量 */ + @Excel(name = "昨日好评量") + private Long lastPositiveReviewsNum; + + /** AI时长余额 */ + @Excel(name = "AI时长余额") + private Long aiTimeBalanceNum; + + /** 上次登录时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "上次登录时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date lastLoginTime; + + /** 上次登录ip */ + @Excel(name = "上次登录ip") + private String lastLoginIp; + + /** 登录次数 */ + @Excel(name = "登录次数") + private Long loginNum; + + /** 删除状态 */ + @Excel(name = "删除状态") + private String delStatus; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setAgentAccount(String agentAccount) + { + this.agentAccount = agentAccount; + } + + public String getAgentAccount() + { + return agentAccount; + } + public void setAgentName(String agentName) + { + this.agentName = agentName; + } + + public String getAgentName() + { + return agentName; + } + public void setSuperiorAgentCode(Long superiorAgentCode) + { + this.superiorAgentCode = superiorAgentCode; + } + + public Long getSuperiorAgentCode() + { + return superiorAgentCode; + } + public void setGrantStoreNum(Long grantStoreNum) + { + this.grantStoreNum = grantStoreNum; + } + + public Long getGrantStoreNum() + { + return grantStoreNum; + } + public void setOperateStoreNum(Long operateStoreNum) + { + this.operateStoreNum = operateStoreNum; + } + + public Long getOperateStoreNum() + { + return operateStoreNum; + } + public void setLastUseIntegralNum(Long lastUseIntegralNum) + { + this.lastUseIntegralNum = lastUseIntegralNum; + } + + public Long getLastUseIntegralNum() + { + return lastUseIntegralNum; + } + public void setLastPositiveReviewsNum(Long lastPositiveReviewsNum) + { + this.lastPositiveReviewsNum = lastPositiveReviewsNum; + } + + public Long getLastPositiveReviewsNum() + { + return lastPositiveReviewsNum; + } + public void setAiTimeBalanceNum(Long aiTimeBalanceNum) + { + this.aiTimeBalanceNum = aiTimeBalanceNum; + } + + public Long getAiTimeBalanceNum() + { + return aiTimeBalanceNum; + } + public void setLastLoginTime(Date lastLoginTime) + { + this.lastLoginTime = lastLoginTime; + } + + public Date getLastLoginTime() + { + return lastLoginTime; + } + public void setLastLoginIp(String lastLoginIp) + { + this.lastLoginIp = lastLoginIp; + } + + public String getLastLoginIp() + { + return lastLoginIp; + } + public void setLoginNum(Long loginNum) + { + this.loginNum = loginNum; + } + + public Long getLoginNum() + { + return loginNum; + } + public void setDelStatus(String delStatus) + { + this.delStatus = delStatus; + } + + public String getDelStatus() + { + return delStatus; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("agentAccount", getAgentAccount()) + .append("agentName", getAgentName()) + .append("superiorAgentCode", getSuperiorAgentCode()) + .append("grantStoreNum", getGrantStoreNum()) + .append("operateStoreNum", getOperateStoreNum()) + .append("lastUseIntegralNum", getLastUseIntegralNum()) + .append("lastPositiveReviewsNum", getLastPositiveReviewsNum()) + .append("aiTimeBalanceNum", getAiTimeBalanceNum()) + .append("lastLoginTime", getLastLoginTime()) + .append("lastLoginIp", getLastLoginIp()) + .append("loginNum", getLoginNum()) + .append("delStatus", getDelStatus()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusIntegralRecord.java b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusIntegralRecord.java new file mode 100644 index 0000000..420b989 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusIntegralRecord.java @@ -0,0 +1,96 @@ +package com.ruoyi.business.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 积分变更记录对象 bus_integral_record + * + * @author ruoyi + * @date 2024-07-02 + */ +public class BusIntegralRecord extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 营销账户 */ + @Excel(name = "营销账户") + private String account; + + /** 平台 */ + @Excel(name = "平台") + private String platform; + + /** 积分变更数值 */ + @Excel(name = "积分变更数值") + private Long integralUpdateNum; + + /** 变更时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date integralUpdateTime; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setAccount(String account) + { + this.account = account; + } + + public String getAccount() + { + return account; + } + public void setPlatform(String platform) + { + this.platform = platform; + } + + public String getPlatform() + { + return platform; + } + public void setIntegralUpdateNum(Long integralUpdateNum) + { + this.integralUpdateNum = integralUpdateNum; + } + + public Long getIntegralUpdateNum() + { + return integralUpdateNum; + } + public void setIntegralUpdateTime(Date integralUpdateTime) + { + this.integralUpdateTime = integralUpdateTime; + } + + public Date getIntegralUpdateTime() + { + return integralUpdateTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("account", getAccount()) + .append("platform", getPlatform()) + .append("integralUpdateNum", getIntegralUpdateNum()) + .append("integralUpdateTime", getIntegralUpdateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusSaleInfo.java b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusSaleInfo.java new file mode 100644 index 0000000..244792f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusSaleInfo.java @@ -0,0 +1,182 @@ +package com.ruoyi.business.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 店铺归属-销售人员统计对象 bus_sale_info + * + * @author ruoyi + * @date 2024-07-02 + */ +public class BusSaleInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 名称 */ + @Excel(name = "名称") + private String saleName; + + /** 门店数 */ + @Excel(name = "门店数") + private Long storeNum; + + /** 昨日订单数 */ + @Excel(name = "昨日订单数") + private Long lastOrderNum; + + /** 营销回访量 */ + @Excel(name = "营销回访量") + private Long returnVisitNum; + + /** 五星好评量 */ + @Excel(name = "五星好评量") + private Long fiveStarReviewsNum; + + /** 创建人id */ + @Excel(name = "创建人id") + private Long createId; + + /** 创建人名称 */ + @Excel(name = "创建人名称") + private String createUser; + + /** 更新人id */ + @Excel(name = "更新人id") + private Long updateId; + + /** 更新人名称 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "更新人名称", width = 30, dateFormat = "yyyy-MM-dd") + private Date updateUser; + + /** 删除状态 */ + @Excel(name = "删除状态") + private String delStatus; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setSaleName(String saleName) + { + this.saleName = saleName; + } + + public String getSaleName() + { + return saleName; + } + public void setStoreNum(Long storeNum) + { + this.storeNum = storeNum; + } + + public Long getStoreNum() + { + return storeNum; + } + public void setLastOrderNum(Long lastOrderNum) + { + this.lastOrderNum = lastOrderNum; + } + + public Long getLastOrderNum() + { + return lastOrderNum; + } + public void setReturnVisitNum(Long returnVisitNum) + { + this.returnVisitNum = returnVisitNum; + } + + public Long getReturnVisitNum() + { + return returnVisitNum; + } + public void setFiveStarReviewsNum(Long fiveStarReviewsNum) + { + this.fiveStarReviewsNum = fiveStarReviewsNum; + } + + public Long getFiveStarReviewsNum() + { + return fiveStarReviewsNum; + } + public void setCreateId(Long createId) + { + this.createId = createId; + } + + public Long getCreateId() + { + return createId; + } + public void setCreateUser(String createUser) + { + this.createUser = createUser; + } + + public String getCreateUser() + { + return createUser; + } + public void setUpdateId(Long updateId) + { + this.updateId = updateId; + } + + public Long getUpdateId() + { + return updateId; + } + public void setUpdateUser(Date updateUser) + { + this.updateUser = updateUser; + } + + public Date getUpdateUser() + { + return updateUser; + } + public void setDelStatus(String delStatus) + { + this.delStatus = delStatus; + } + + public String getDelStatus() + { + return delStatus; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("saleName", getSaleName()) + .append("storeNum", getStoreNum()) + .append("lastOrderNum", getLastOrderNum()) + .append("returnVisitNum", getReturnVisitNum()) + .append("fiveStarReviewsNum", getFiveStarReviewsNum()) + .append("createId", getCreateId()) + .append("createUser", getCreateUser()) + .append("createTime", getCreateTime()) + .append("updateId", getUpdateId()) + .append("updateUser", getUpdateUser()) + .append("updateTime", getUpdateTime()) + .append("delStatus", getDelStatus()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusStoreDayInfo.java b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusStoreDayInfo.java new file mode 100644 index 0000000..4cdcdb8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusStoreDayInfo.java @@ -0,0 +1,150 @@ +package com.ruoyi.business.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; + +/** + * 店铺单日信息对象 bus_store_day_info + * + * @author ruoyi + * @date 2024-07-02 + */ +public class BusStoreDayInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 店铺id */ + @Excel(name = "店铺id") + private Long storeId; + + /** 昨日订单量 */ + @Excel(name = "昨日订单量") + private Long lastOrderNum; + + /** 昨日好评量 */ + @Excel(name = "昨日好评量") + private Long lastPositiveReviewsNum; + + /** 昨日五星量 */ + @Excel(name = "昨日五星量") + private Long lastFiveStarReviewsNum; + + /** 昨日回访量 */ + @Excel(name = "昨日回访量") + private Long lastReturnVisitNum; + + /** 昨日回访比50% */ + @Excel(name = "昨日回访比50%") + private String lastReturnVisitRate; + + /** 今日回访量 */ + @Excel(name = "今日回访量") + private Long todayReturnVisitNum; + + /** 评分 */ + @Excel(name = "评分") + private String score; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setStoreId(Long storeId) + { + this.storeId = storeId; + } + + public Long getStoreId() + { + return storeId; + } + public void setLastOrderNum(Long lastOrderNum) + { + this.lastOrderNum = lastOrderNum; + } + + public Long getLastOrderNum() + { + return lastOrderNum; + } + public void setLastPositiveReviewsNum(Long lastPositiveReviewsNum) + { + this.lastPositiveReviewsNum = lastPositiveReviewsNum; + } + + public Long getLastPositiveReviewsNum() + { + return lastPositiveReviewsNum; + } + public void setLastFiveStarReviewsNum(Long lastFiveStarReviewsNum) + { + this.lastFiveStarReviewsNum = lastFiveStarReviewsNum; + } + + public Long getLastFiveStarReviewsNum() + { + return lastFiveStarReviewsNum; + } + public void setLastReturnVisitNum(Long lastReturnVisitNum) + { + this.lastReturnVisitNum = lastReturnVisitNum; + } + + public Long getLastReturnVisitNum() + { + return lastReturnVisitNum; + } + public void setLastReturnVisitRate(String lastReturnVisitRate) + { + this.lastReturnVisitRate = lastReturnVisitRate; + } + + public String getLastReturnVisitRate() + { + return lastReturnVisitRate; + } + public void setTodayReturnVisitNum(Long todayReturnVisitNum) + { + this.todayReturnVisitNum = todayReturnVisitNum; + } + + public Long getTodayReturnVisitNum() + { + return todayReturnVisitNum; + } + public void setScore(String score) + { + this.score = score; + } + + public String getScore() + { + return score; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("storeId", getStoreId()) + .append("lastOrderNum", getLastOrderNum()) + .append("lastPositiveReviewsNum", getLastPositiveReviewsNum()) + .append("lastFiveStarReviewsNum", getLastFiveStarReviewsNum()) + .append("lastReturnVisitNum", getLastReturnVisitNum()) + .append("lastReturnVisitRate", getLastReturnVisitRate()) + .append("todayReturnVisitNum", getTodayReturnVisitNum()) + .append("score", getScore()) + .append("createTime", getCreateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusStoreInfo.java b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusStoreInfo.java new file mode 100644 index 0000000..81a0b78 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/domain/BusStoreInfo.java @@ -0,0 +1,266 @@ +package com.ruoyi.business.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 店铺信息对象 bus_store_info + * + * @author ruoyi + * @date 2024-07-02 + */ +public class BusStoreInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** $column.columnComment */ + private Long id; + + /** 平台类型 */ + @Excel(name = "平台类型") + private String platformType; + + /** 店铺编码 */ + @Excel(name = "店铺编码") + private String storeCode; + + /** 店铺名称 */ + @Excel(name = "店铺名称") + private String storeName; + + /** 店铺归属 */ + @Excel(name = "店铺归属") + private String storeBelong; + + /** 授权状态 */ + @Excel(name = "授权状态") + private String grantStatus; + + /** 回访状态 */ + @Excel(name = "回访状态") + private String returnVisitStatus; + + /** 绑定人id(代理人,创建人) */ + @Excel(name = "绑定人id", readConverterExp = "代=理人,创建人") + private Long bindId; + + /** 绑定人操作账户 */ + @Excel(name = "绑定人操作账户") + private String bindUser; + + /** 绑定时间(创建) */ + @Excel(name = "绑定时间", readConverterExp = "创=建") + private Date bindTime; + + /** 更新人id */ + @Excel(name = "更新人id") + private Long updateId; + + /** 更新操作账户 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "更新操作账户", width = 30, dateFormat = "yyyy-MM-dd") + private Date updateUser; + + /** 是否自配送 */ + @Excel(name = "是否自配送") + private String selfDeliveryStatus; + + /** 回访用户区间(营销用户下单?) */ + @Excel(name = "回访用户区间", readConverterExp = "营=销用户下单?") + private String returnVisitUserRange; + + /** 归属销售id */ + @Excel(name = "归属销售id") + private Long saleBindId; + + /** 归属销售姓名 */ + @Excel(name = "归属销售姓名") + private String saleBindName; + + /** 归属销售绑定时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "归属销售绑定时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date saleBindTime; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setPlatformType(String platformType) + { + this.platformType = platformType; + } + + public String getPlatformType() + { + return platformType; + } + public void setStoreCode(String storeCode) + { + this.storeCode = storeCode; + } + + public String getStoreCode() + { + return storeCode; + } + public void setStoreName(String storeName) + { + this.storeName = storeName; + } + + public String getStoreName() + { + return storeName; + } + public void setStoreBelong(String storeBelong) + { + this.storeBelong = storeBelong; + } + + public String getStoreBelong() + { + return storeBelong; + } + public void setGrantStatus(String grantStatus) + { + this.grantStatus = grantStatus; + } + + public String getGrantStatus() + { + return grantStatus; + } + public void setReturnVisitStatus(String returnVisitStatus) + { + this.returnVisitStatus = returnVisitStatus; + } + + public String getReturnVisitStatus() + { + return returnVisitStatus; + } + public void setBindId(Long bindId) + { + this.bindId = bindId; + } + + public Long getBindId() + { + return bindId; + } + public void setBindUser(String bindUser) + { + this.bindUser = bindUser; + } + + public String getBindUser() + { + return bindUser; + } + public void setBindTime(Date bindTime) + { + this.bindTime = bindTime; + } + + public Date getBindTime() + { + return bindTime; + } + public void setUpdateId(Long updateId) + { + this.updateId = updateId; + } + + public Long getUpdateId() + { + return updateId; + } + public void setUpdateUser(Date updateUser) + { + this.updateUser = updateUser; + } + + public Date getUpdateUser() + { + return updateUser; + } + public void setSelfDeliveryStatus(String selfDeliveryStatus) + { + this.selfDeliveryStatus = selfDeliveryStatus; + } + + public String getSelfDeliveryStatus() + { + return selfDeliveryStatus; + } + public void setReturnVisitUserRange(String returnVisitUserRange) + { + this.returnVisitUserRange = returnVisitUserRange; + } + + public String getReturnVisitUserRange() + { + return returnVisitUserRange; + } + public void setSaleBindId(Long saleBindId) + { + this.saleBindId = saleBindId; + } + + public Long getSaleBindId() + { + return saleBindId; + } + public void setSaleBindName(String saleBindName) + { + this.saleBindName = saleBindName; + } + + public String getSaleBindName() + { + return saleBindName; + } + public void setSaleBindTime(Date saleBindTime) + { + this.saleBindTime = saleBindTime; + } + + public Date getSaleBindTime() + { + return saleBindTime; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("platformType", getPlatformType()) + .append("storeCode", getStoreCode()) + .append("storeName", getStoreName()) + .append("storeBelong", getStoreBelong()) + .append("grantStatus", getGrantStatus()) + .append("returnVisitStatus", getReturnVisitStatus()) + .append("bindId", getBindId()) + .append("bindUser", getBindUser()) + .append("bindTime", getBindTime()) + .append("updateId", getUpdateId()) + .append("updateUser", getUpdateUser()) + .append("updateTime", getUpdateTime()) + .append("selfDeliveryStatus", getSelfDeliveryStatus()) + .append("returnVisitUserRange", getReturnVisitUserRange()) + .append("saleBindId", getSaleBindId()) + .append("saleBindName", getSaleBindName()) + .append("saleBindTime", getSaleBindTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusAgentInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusAgentInfoMapper.java new file mode 100644 index 0000000..5d54a63 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusAgentInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.mapper; + +import java.util.List; +import com.ruoyi.business.domain.BusAgentInfo; + +/** + * 代理管理Mapper接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface BusAgentInfoMapper +{ + /** + * 查询代理管理 + * + * @param id 代理管理主键 + * @return 代理管理 + */ + public BusAgentInfo selectBusAgentInfoById(Long id); + + /** + * 查询代理管理列表 + * + * @param busAgentInfo 代理管理 + * @return 代理管理集合 + */ + public List selectBusAgentInfoList(BusAgentInfo busAgentInfo); + + /** + * 新增代理管理 + * + * @param busAgentInfo 代理管理 + * @return 结果 + */ + public int insertBusAgentInfo(BusAgentInfo busAgentInfo); + + /** + * 修改代理管理 + * + * @param busAgentInfo 代理管理 + * @return 结果 + */ + public int updateBusAgentInfo(BusAgentInfo busAgentInfo); + + /** + * 删除代理管理 + * + * @param id 代理管理主键 + * @return 结果 + */ + public int deleteBusAgentInfoById(Long id); + + /** + * 批量删除代理管理 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBusAgentInfoByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusIntegralRecordMapper.java b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusIntegralRecordMapper.java new file mode 100644 index 0000000..9b837c8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusIntegralRecordMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.mapper; + +import java.util.List; +import com.ruoyi.business.domain.BusIntegralRecord; + +/** + * 积分变更记录Mapper接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface BusIntegralRecordMapper +{ + /** + * 查询积分变更记录 + * + * @param id 积分变更记录主键 + * @return 积分变更记录 + */ + public BusIntegralRecord selectBusIntegralRecordById(Long id); + + /** + * 查询积分变更记录列表 + * + * @param busIntegralRecord 积分变更记录 + * @return 积分变更记录集合 + */ + public List selectBusIntegralRecordList(BusIntegralRecord busIntegralRecord); + + /** + * 新增积分变更记录 + * + * @param busIntegralRecord 积分变更记录 + * @return 结果 + */ + public int insertBusIntegralRecord(BusIntegralRecord busIntegralRecord); + + /** + * 修改积分变更记录 + * + * @param busIntegralRecord 积分变更记录 + * @return 结果 + */ + public int updateBusIntegralRecord(BusIntegralRecord busIntegralRecord); + + /** + * 删除积分变更记录 + * + * @param id 积分变更记录主键 + * @return 结果 + */ + public int deleteBusIntegralRecordById(Long id); + + /** + * 批量删除积分变更记录 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBusIntegralRecordByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusSaleInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusSaleInfoMapper.java new file mode 100644 index 0000000..e0cd002 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusSaleInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.mapper; + +import java.util.List; +import com.ruoyi.business.domain.BusSaleInfo; + +/** + * 店铺归属-销售人员统计Mapper接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface BusSaleInfoMapper +{ + /** + * 查询店铺归属-销售人员统计 + * + * @param id 店铺归属-销售人员统计主键 + * @return 店铺归属-销售人员统计 + */ + public BusSaleInfo selectBusSaleInfoById(Long id); + + /** + * 查询店铺归属-销售人员统计列表 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 店铺归属-销售人员统计集合 + */ + public List selectBusSaleInfoList(BusSaleInfo busSaleInfo); + + /** + * 新增店铺归属-销售人员统计 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 结果 + */ + public int insertBusSaleInfo(BusSaleInfo busSaleInfo); + + /** + * 修改店铺归属-销售人员统计 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 结果 + */ + public int updateBusSaleInfo(BusSaleInfo busSaleInfo); + + /** + * 删除店铺归属-销售人员统计 + * + * @param id 店铺归属-销售人员统计主键 + * @return 结果 + */ + public int deleteBusSaleInfoById(Long id); + + /** + * 批量删除店铺归属-销售人员统计 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBusSaleInfoByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusStoreDayInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusStoreDayInfoMapper.java new file mode 100644 index 0000000..fe36b84 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusStoreDayInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.mapper; + +import java.util.List; +import com.ruoyi.business.domain.BusStoreDayInfo; + +/** + * 店铺单日信息Mapper接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface BusStoreDayInfoMapper +{ + /** + * 查询店铺单日信息 + * + * @param id 店铺单日信息主键 + * @return 店铺单日信息 + */ + public BusStoreDayInfo selectBusStoreDayInfoById(Long id); + + /** + * 查询店铺单日信息列表 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 店铺单日信息集合 + */ + public List selectBusStoreDayInfoList(BusStoreDayInfo busStoreDayInfo); + + /** + * 新增店铺单日信息 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 结果 + */ + public int insertBusStoreDayInfo(BusStoreDayInfo busStoreDayInfo); + + /** + * 修改店铺单日信息 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 结果 + */ + public int updateBusStoreDayInfo(BusStoreDayInfo busStoreDayInfo); + + /** + * 删除店铺单日信息 + * + * @param id 店铺单日信息主键 + * @return 结果 + */ + public int deleteBusStoreDayInfoById(Long id); + + /** + * 批量删除店铺单日信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBusStoreDayInfoByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusStoreInfoMapper.java b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusStoreInfoMapper.java new file mode 100644 index 0000000..2469db5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/mapper/BusStoreInfoMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.mapper; + +import java.util.List; +import com.ruoyi.business.domain.BusStoreInfo; + +/** + * 店铺信息Mapper接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface BusStoreInfoMapper +{ + /** + * 查询店铺信息 + * + * @param id 店铺信息主键 + * @return 店铺信息 + */ + public BusStoreInfo selectBusStoreInfoById(Long id); + + /** + * 查询店铺信息列表 + * + * @param busStoreInfo 店铺信息 + * @return 店铺信息集合 + */ + public List selectBusStoreInfoList(BusStoreInfo busStoreInfo); + + /** + * 新增店铺信息 + * + * @param busStoreInfo 店铺信息 + * @return 结果 + */ + public int insertBusStoreInfo(BusStoreInfo busStoreInfo); + + /** + * 修改店铺信息 + * + * @param busStoreInfo 店铺信息 + * @return 结果 + */ + public int updateBusStoreInfo(BusStoreInfo busStoreInfo); + + /** + * 删除店铺信息 + * + * @param id 店铺信息主键 + * @return 结果 + */ + public int deleteBusStoreInfoById(Long id); + + /** + * 批量删除店铺信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBusStoreInfoByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusAgentInfoService.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusAgentInfoService.java new file mode 100644 index 0000000..d06fba5 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusAgentInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.service; + +import java.util.List; +import com.ruoyi.business.domain.BusAgentInfo; + +/** + * 代理管理Service接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface IBusAgentInfoService +{ + /** + * 查询代理管理 + * + * @param id 代理管理主键 + * @return 代理管理 + */ + public BusAgentInfo selectBusAgentInfoById(Long id); + + /** + * 查询代理管理列表 + * + * @param busAgentInfo 代理管理 + * @return 代理管理集合 + */ + public List selectBusAgentInfoList(BusAgentInfo busAgentInfo); + + /** + * 新增代理管理 + * + * @param busAgentInfo 代理管理 + * @return 结果 + */ + public int insertBusAgentInfo(BusAgentInfo busAgentInfo); + + /** + * 修改代理管理 + * + * @param busAgentInfo 代理管理 + * @return 结果 + */ + public int updateBusAgentInfo(BusAgentInfo busAgentInfo); + + /** + * 批量删除代理管理 + * + * @param ids 需要删除的代理管理主键集合 + * @return 结果 + */ + public int deleteBusAgentInfoByIds(Long[] ids); + + /** + * 删除代理管理信息 + * + * @param id 代理管理主键 + * @return 结果 + */ + public int deleteBusAgentInfoById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusIntegralRecordService.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusIntegralRecordService.java new file mode 100644 index 0000000..b1d3477 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusIntegralRecordService.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.service; + +import java.util.List; +import com.ruoyi.business.domain.BusIntegralRecord; + +/** + * 积分变更记录Service接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface IBusIntegralRecordService +{ + /** + * 查询积分变更记录 + * + * @param id 积分变更记录主键 + * @return 积分变更记录 + */ + public BusIntegralRecord selectBusIntegralRecordById(Long id); + + /** + * 查询积分变更记录列表 + * + * @param busIntegralRecord 积分变更记录 + * @return 积分变更记录集合 + */ + public List selectBusIntegralRecordList(BusIntegralRecord busIntegralRecord); + + /** + * 新增积分变更记录 + * + * @param busIntegralRecord 积分变更记录 + * @return 结果 + */ + public int insertBusIntegralRecord(BusIntegralRecord busIntegralRecord); + + /** + * 修改积分变更记录 + * + * @param busIntegralRecord 积分变更记录 + * @return 结果 + */ + public int updateBusIntegralRecord(BusIntegralRecord busIntegralRecord); + + /** + * 批量删除积分变更记录 + * + * @param ids 需要删除的积分变更记录主键集合 + * @return 结果 + */ + public int deleteBusIntegralRecordByIds(Long[] ids); + + /** + * 删除积分变更记录信息 + * + * @param id 积分变更记录主键 + * @return 结果 + */ + public int deleteBusIntegralRecordById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusSaleInfoService.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusSaleInfoService.java new file mode 100644 index 0000000..31db452 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusSaleInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.service; + +import java.util.List; +import com.ruoyi.business.domain.BusSaleInfo; + +/** + * 店铺归属-销售人员统计Service接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface IBusSaleInfoService +{ + /** + * 查询店铺归属-销售人员统计 + * + * @param id 店铺归属-销售人员统计主键 + * @return 店铺归属-销售人员统计 + */ + public BusSaleInfo selectBusSaleInfoById(Long id); + + /** + * 查询店铺归属-销售人员统计列表 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 店铺归属-销售人员统计集合 + */ + public List selectBusSaleInfoList(BusSaleInfo busSaleInfo); + + /** + * 新增店铺归属-销售人员统计 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 结果 + */ + public int insertBusSaleInfo(BusSaleInfo busSaleInfo); + + /** + * 修改店铺归属-销售人员统计 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 结果 + */ + public int updateBusSaleInfo(BusSaleInfo busSaleInfo); + + /** + * 批量删除店铺归属-销售人员统计 + * + * @param ids 需要删除的店铺归属-销售人员统计主键集合 + * @return 结果 + */ + public int deleteBusSaleInfoByIds(Long[] ids); + + /** + * 删除店铺归属-销售人员统计信息 + * + * @param id 店铺归属-销售人员统计主键 + * @return 结果 + */ + public int deleteBusSaleInfoById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusStoreDayInfoService.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusStoreDayInfoService.java new file mode 100644 index 0000000..154ad7f --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusStoreDayInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.service; + +import java.util.List; +import com.ruoyi.business.domain.BusStoreDayInfo; + +/** + * 店铺单日信息Service接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface IBusStoreDayInfoService +{ + /** + * 查询店铺单日信息 + * + * @param id 店铺单日信息主键 + * @return 店铺单日信息 + */ + public BusStoreDayInfo selectBusStoreDayInfoById(Long id); + + /** + * 查询店铺单日信息列表 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 店铺单日信息集合 + */ + public List selectBusStoreDayInfoList(BusStoreDayInfo busStoreDayInfo); + + /** + * 新增店铺单日信息 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 结果 + */ + public int insertBusStoreDayInfo(BusStoreDayInfo busStoreDayInfo); + + /** + * 修改店铺单日信息 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 结果 + */ + public int updateBusStoreDayInfo(BusStoreDayInfo busStoreDayInfo); + + /** + * 批量删除店铺单日信息 + * + * @param ids 需要删除的店铺单日信息主键集合 + * @return 结果 + */ + public int deleteBusStoreDayInfoByIds(Long[] ids); + + /** + * 删除店铺单日信息信息 + * + * @param id 店铺单日信息主键 + * @return 结果 + */ + public int deleteBusStoreDayInfoById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusStoreInfoService.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusStoreInfoService.java new file mode 100644 index 0000000..8e04e34 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/IBusStoreInfoService.java @@ -0,0 +1,61 @@ +package com.ruoyi.business.service; + +import java.util.List; +import com.ruoyi.business.domain.BusStoreInfo; + +/** + * 店铺信息Service接口 + * + * @author ruoyi + * @date 2024-07-02 + */ +public interface IBusStoreInfoService +{ + /** + * 查询店铺信息 + * + * @param id 店铺信息主键 + * @return 店铺信息 + */ + public BusStoreInfo selectBusStoreInfoById(Long id); + + /** + * 查询店铺信息列表 + * + * @param busStoreInfo 店铺信息 + * @return 店铺信息集合 + */ + public List selectBusStoreInfoList(BusStoreInfo busStoreInfo); + + /** + * 新增店铺信息 + * + * @param busStoreInfo 店铺信息 + * @return 结果 + */ + public int insertBusStoreInfo(BusStoreInfo busStoreInfo); + + /** + * 修改店铺信息 + * + * @param busStoreInfo 店铺信息 + * @return 结果 + */ + public int updateBusStoreInfo(BusStoreInfo busStoreInfo); + + /** + * 批量删除店铺信息 + * + * @param ids 需要删除的店铺信息主键集合 + * @return 结果 + */ + public int deleteBusStoreInfoByIds(Long[] ids); + + /** + * 删除店铺信息信息 + * + * @param id 店铺信息主键 + * @return 结果 + */ + public int deleteBusStoreInfoById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusAgentInfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusAgentInfoServiceImpl.java new file mode 100644 index 0000000..d99b2fa --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusAgentInfoServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.business.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.business.mapper.BusAgentInfoMapper; +import com.ruoyi.business.domain.BusAgentInfo; +import com.ruoyi.business.service.IBusAgentInfoService; + +/** + * 代理管理Service业务层处理 + * + * @author ruoyi + * @date 2024-07-02 + */ +@Service +public class BusAgentInfoServiceImpl implements IBusAgentInfoService +{ + @Autowired + private BusAgentInfoMapper busAgentInfoMapper; + + /** + * 查询代理管理 + * + * @param id 代理管理主键 + * @return 代理管理 + */ + @Override + public BusAgentInfo selectBusAgentInfoById(Long id) + { + return busAgentInfoMapper.selectBusAgentInfoById(id); + } + + /** + * 查询代理管理列表 + * + * @param busAgentInfo 代理管理 + * @return 代理管理 + */ + @Override + public List selectBusAgentInfoList(BusAgentInfo busAgentInfo) + { + return busAgentInfoMapper.selectBusAgentInfoList(busAgentInfo); + } + + /** + * 新增代理管理 + * + * @param busAgentInfo 代理管理 + * @return 结果 + */ + @Override + public int insertBusAgentInfo(BusAgentInfo busAgentInfo) + { + return busAgentInfoMapper.insertBusAgentInfo(busAgentInfo); + } + + /** + * 修改代理管理 + * + * @param busAgentInfo 代理管理 + * @return 结果 + */ + @Override + public int updateBusAgentInfo(BusAgentInfo busAgentInfo) + { + return busAgentInfoMapper.updateBusAgentInfo(busAgentInfo); + } + + /** + * 批量删除代理管理 + * + * @param ids 需要删除的代理管理主键 + * @return 结果 + */ + @Override + public int deleteBusAgentInfoByIds(Long[] ids) + { + return busAgentInfoMapper.deleteBusAgentInfoByIds(ids); + } + + /** + * 删除代理管理信息 + * + * @param id 代理管理主键 + * @return 结果 + */ + @Override + public int deleteBusAgentInfoById(Long id) + { + return busAgentInfoMapper.deleteBusAgentInfoById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusIntegralRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusIntegralRecordServiceImpl.java new file mode 100644 index 0000000..1830fa8 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusIntegralRecordServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.business.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.business.mapper.BusIntegralRecordMapper; +import com.ruoyi.business.domain.BusIntegralRecord; +import com.ruoyi.business.service.IBusIntegralRecordService; + +/** + * 积分变更记录Service业务层处理 + * + * @author ruoyi + * @date 2024-07-02 + */ +@Service +public class BusIntegralRecordServiceImpl implements IBusIntegralRecordService +{ + @Autowired + private BusIntegralRecordMapper busIntegralRecordMapper; + + /** + * 查询积分变更记录 + * + * @param id 积分变更记录主键 + * @return 积分变更记录 + */ + @Override + public BusIntegralRecord selectBusIntegralRecordById(Long id) + { + return busIntegralRecordMapper.selectBusIntegralRecordById(id); + } + + /** + * 查询积分变更记录列表 + * + * @param busIntegralRecord 积分变更记录 + * @return 积分变更记录 + */ + @Override + public List selectBusIntegralRecordList(BusIntegralRecord busIntegralRecord) + { + return busIntegralRecordMapper.selectBusIntegralRecordList(busIntegralRecord); + } + + /** + * 新增积分变更记录 + * + * @param busIntegralRecord 积分变更记录 + * @return 结果 + */ + @Override + public int insertBusIntegralRecord(BusIntegralRecord busIntegralRecord) + { + return busIntegralRecordMapper.insertBusIntegralRecord(busIntegralRecord); + } + + /** + * 修改积分变更记录 + * + * @param busIntegralRecord 积分变更记录 + * @return 结果 + */ + @Override + public int updateBusIntegralRecord(BusIntegralRecord busIntegralRecord) + { + return busIntegralRecordMapper.updateBusIntegralRecord(busIntegralRecord); + } + + /** + * 批量删除积分变更记录 + * + * @param ids 需要删除的积分变更记录主键 + * @return 结果 + */ + @Override + public int deleteBusIntegralRecordByIds(Long[] ids) + { + return busIntegralRecordMapper.deleteBusIntegralRecordByIds(ids); + } + + /** + * 删除积分变更记录信息 + * + * @param id 积分变更记录主键 + * @return 结果 + */ + @Override + public int deleteBusIntegralRecordById(Long id) + { + return busIntegralRecordMapper.deleteBusIntegralRecordById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusSaleInfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusSaleInfoServiceImpl.java new file mode 100644 index 0000000..33a3e53 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusSaleInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.ruoyi.business.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.business.mapper.BusSaleInfoMapper; +import com.ruoyi.business.domain.BusSaleInfo; +import com.ruoyi.business.service.IBusSaleInfoService; + +/** + * 店铺归属-销售人员统计Service业务层处理 + * + * @author ruoyi + * @date 2024-07-02 + */ +@Service +public class BusSaleInfoServiceImpl implements IBusSaleInfoService +{ + @Autowired + private BusSaleInfoMapper busSaleInfoMapper; + + /** + * 查询店铺归属-销售人员统计 + * + * @param id 店铺归属-销售人员统计主键 + * @return 店铺归属-销售人员统计 + */ + @Override + public BusSaleInfo selectBusSaleInfoById(Long id) + { + return busSaleInfoMapper.selectBusSaleInfoById(id); + } + + /** + * 查询店铺归属-销售人员统计列表 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 店铺归属-销售人员统计 + */ + @Override + public List selectBusSaleInfoList(BusSaleInfo busSaleInfo) + { + return busSaleInfoMapper.selectBusSaleInfoList(busSaleInfo); + } + + /** + * 新增店铺归属-销售人员统计 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 结果 + */ + @Override + public int insertBusSaleInfo(BusSaleInfo busSaleInfo) + { + busSaleInfo.setCreateTime(DateUtils.getNowDate()); + return busSaleInfoMapper.insertBusSaleInfo(busSaleInfo); + } + + /** + * 修改店铺归属-销售人员统计 + * + * @param busSaleInfo 店铺归属-销售人员统计 + * @return 结果 + */ + @Override + public int updateBusSaleInfo(BusSaleInfo busSaleInfo) + { + busSaleInfo.setUpdateTime(DateUtils.getNowDate()); + return busSaleInfoMapper.updateBusSaleInfo(busSaleInfo); + } + + /** + * 批量删除店铺归属-销售人员统计 + * + * @param ids 需要删除的店铺归属-销售人员统计主键 + * @return 结果 + */ + @Override + public int deleteBusSaleInfoByIds(Long[] ids) + { + return busSaleInfoMapper.deleteBusSaleInfoByIds(ids); + } + + /** + * 删除店铺归属-销售人员统计信息 + * + * @param id 店铺归属-销售人员统计主键 + * @return 结果 + */ + @Override + public int deleteBusSaleInfoById(Long id) + { + return busSaleInfoMapper.deleteBusSaleInfoById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusStoreDayInfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusStoreDayInfoServiceImpl.java new file mode 100644 index 0000000..b1ee4ad --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusStoreDayInfoServiceImpl.java @@ -0,0 +1,95 @@ +package com.ruoyi.business.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.business.mapper.BusStoreDayInfoMapper; +import com.ruoyi.business.domain.BusStoreDayInfo; +import com.ruoyi.business.service.IBusStoreDayInfoService; + +/** + * 店铺单日信息Service业务层处理 + * + * @author ruoyi + * @date 2024-07-02 + */ +@Service +public class BusStoreDayInfoServiceImpl implements IBusStoreDayInfoService +{ + @Autowired + private BusStoreDayInfoMapper busStoreDayInfoMapper; + + /** + * 查询店铺单日信息 + * + * @param id 店铺单日信息主键 + * @return 店铺单日信息 + */ + @Override + public BusStoreDayInfo selectBusStoreDayInfoById(Long id) + { + return busStoreDayInfoMapper.selectBusStoreDayInfoById(id); + } + + /** + * 查询店铺单日信息列表 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 店铺单日信息 + */ + @Override + public List selectBusStoreDayInfoList(BusStoreDayInfo busStoreDayInfo) + { + return busStoreDayInfoMapper.selectBusStoreDayInfoList(busStoreDayInfo); + } + + /** + * 新增店铺单日信息 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 结果 + */ + @Override + public int insertBusStoreDayInfo(BusStoreDayInfo busStoreDayInfo) + { + busStoreDayInfo.setCreateTime(DateUtils.getNowDate()); + return busStoreDayInfoMapper.insertBusStoreDayInfo(busStoreDayInfo); + } + + /** + * 修改店铺单日信息 + * + * @param busStoreDayInfo 店铺单日信息 + * @return 结果 + */ + @Override + public int updateBusStoreDayInfo(BusStoreDayInfo busStoreDayInfo) + { + return busStoreDayInfoMapper.updateBusStoreDayInfo(busStoreDayInfo); + } + + /** + * 批量删除店铺单日信息 + * + * @param ids 需要删除的店铺单日信息主键 + * @return 结果 + */ + @Override + public int deleteBusStoreDayInfoByIds(Long[] ids) + { + return busStoreDayInfoMapper.deleteBusStoreDayInfoByIds(ids); + } + + /** + * 删除店铺单日信息信息 + * + * @param id 店铺单日信息主键 + * @return 结果 + */ + @Override + public int deleteBusStoreDayInfoById(Long id) + { + return busStoreDayInfoMapper.deleteBusStoreDayInfoById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusStoreInfoServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusStoreInfoServiceImpl.java new file mode 100644 index 0000000..20e4443 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/business/service/impl/BusStoreInfoServiceImpl.java @@ -0,0 +1,95 @@ +package com.ruoyi.business.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.business.mapper.BusStoreInfoMapper; +import com.ruoyi.business.domain.BusStoreInfo; +import com.ruoyi.business.service.IBusStoreInfoService; + +/** + * 店铺信息Service业务层处理 + * + * @author ruoyi + * @date 2024-07-02 + */ +@Service +public class BusStoreInfoServiceImpl implements IBusStoreInfoService +{ + @Autowired + private BusStoreInfoMapper busStoreInfoMapper; + + /** + * 查询店铺信息 + * + * @param id 店铺信息主键 + * @return 店铺信息 + */ + @Override + public BusStoreInfo selectBusStoreInfoById(Long id) + { + return busStoreInfoMapper.selectBusStoreInfoById(id); + } + + /** + * 查询店铺信息列表 + * + * @param busStoreInfo 店铺信息 + * @return 店铺信息 + */ + @Override + public List selectBusStoreInfoList(BusStoreInfo busStoreInfo) + { + return busStoreInfoMapper.selectBusStoreInfoList(busStoreInfo); + } + + /** + * 新增店铺信息 + * + * @param busStoreInfo 店铺信息 + * @return 结果 + */ + @Override + public int insertBusStoreInfo(BusStoreInfo busStoreInfo) + { + return busStoreInfoMapper.insertBusStoreInfo(busStoreInfo); + } + + /** + * 修改店铺信息 + * + * @param busStoreInfo 店铺信息 + * @return 结果 + */ + @Override + public int updateBusStoreInfo(BusStoreInfo busStoreInfo) + { + busStoreInfo.setUpdateTime(DateUtils.getNowDate()); + return busStoreInfoMapper.updateBusStoreInfo(busStoreInfo); + } + + /** + * 批量删除店铺信息 + * + * @param ids 需要删除的店铺信息主键 + * @return 结果 + */ + @Override + public int deleteBusStoreInfoByIds(Long[] ids) + { + return busStoreInfoMapper.deleteBusStoreInfoByIds(ids); + } + + /** + * 删除店铺信息信息 + * + * @param id 店铺信息主键 + * @return 结果 + */ + @Override + public int deleteBusStoreInfoById(Long id) + { + return busStoreInfoMapper.deleteBusStoreInfoById(id); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/business/BusAgentInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/business/BusAgentInfoMapper.xml new file mode 100644 index 0000000..0bce57d --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/business/BusAgentInfoMapper.xml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + + + + + + + + + + select id, agent_account, agent_name, superior_agent_code, grant_store_num, operate_store_num, last_use_integral_num, last_positive_reviews_num, ai_time_balance_num, last_login_time, last_login_ip, login_num, del_status from bus_agent_info + + + + + + + + insert into bus_agent_info + + id, + agent_account, + agent_name, + superior_agent_code, + grant_store_num, + operate_store_num, + last_use_integral_num, + last_positive_reviews_num, + ai_time_balance_num, + last_login_time, + last_login_ip, + login_num, + del_status, + + + #{id}, + #{agentAccount}, + #{agentName}, + #{superiorAgentCode}, + #{grantStoreNum}, + #{operateStoreNum}, + #{lastUseIntegralNum}, + #{lastPositiveReviewsNum}, + #{aiTimeBalanceNum}, + #{lastLoginTime}, + #{lastLoginIp}, + #{loginNum}, + #{delStatus}, + + + + + update bus_agent_info + + agent_account = #{agentAccount}, + agent_name = #{agentName}, + superior_agent_code = #{superiorAgentCode}, + grant_store_num = #{grantStoreNum}, + operate_store_num = #{operateStoreNum}, + last_use_integral_num = #{lastUseIntegralNum}, + last_positive_reviews_num = #{lastPositiveReviewsNum}, + ai_time_balance_num = #{aiTimeBalanceNum}, + last_login_time = #{lastLoginTime}, + last_login_ip = #{lastLoginIp}, + login_num = #{loginNum}, + del_status = #{delStatus}, + + where id = #{id} + + + + delete from bus_agent_info where id = #{id} + + + + delete from bus_agent_info where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/business/BusIntegralRecordMapper.xml b/ruoyi-system/src/main/resources/mapper/business/BusIntegralRecordMapper.xml new file mode 100644 index 0000000..6c2247b --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/business/BusIntegralRecordMapper.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + select id, account, platform, Integral_update_num, Integral_update_time from bus_integral_record + + + + + + + + insert into bus_integral_record + + id, + account, + platform, + Integral_update_num, + Integral_update_time, + + + #{id}, + #{account}, + #{platform}, + #{integralUpdateNum}, + #{integralUpdateTime}, + + + + + update bus_integral_record + + account = #{account}, + platform = #{platform}, + Integral_update_num = #{integralUpdateNum}, + Integral_update_time = #{integralUpdateTime}, + + where id = #{id} + + + + delete from bus_integral_record where id = #{id} + + + + delete from bus_integral_record where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/business/BusSaleInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/business/BusSaleInfoMapper.xml new file mode 100644 index 0000000..f7d56a2 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/business/BusSaleInfoMapper.xml @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + select id, sale_name, store_num, last_order_num, return_visit_num, five_star_reviews_num, create_id, create_user, create_time, update_id, update_user, update_time, del_status from bus_sale_info + + + + + + + + insert into bus_sale_info + + id, + sale_name, + store_num, + last_order_num, + return_visit_num, + five_star_reviews_num, + create_id, + create_user, + create_time, + update_id, + update_user, + update_time, + del_status, + + + #{id}, + #{saleName}, + #{storeNum}, + #{lastOrderNum}, + #{returnVisitNum}, + #{fiveStarReviewsNum}, + #{createId}, + #{createUser}, + #{createTime}, + #{updateId}, + #{updateUser}, + #{updateTime}, + #{delStatus}, + + + + + update bus_sale_info + + sale_name = #{saleName}, + store_num = #{storeNum}, + last_order_num = #{lastOrderNum}, + return_visit_num = #{returnVisitNum}, + five_star_reviews_num = #{fiveStarReviewsNum}, + create_id = #{createId}, + create_user = #{createUser}, + create_time = #{createTime}, + update_id = #{updateId}, + update_user = #{updateUser}, + update_time = #{updateTime}, + del_status = #{delStatus}, + + where id = #{id} + + + + delete from bus_sale_info where id = #{id} + + + + delete from bus_sale_info where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/business/BusStoreDayInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/business/BusStoreDayInfoMapper.xml new file mode 100644 index 0000000..3967c82 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/business/BusStoreDayInfoMapper.xml @@ -0,0 +1,97 @@ + + + + + + + + + + + + + + + + + + + select id, store_id, last_order_num, last_positive_reviews_num, last_five_star_reviews_num, last_return_visit_num, last_return_visit_rate, today_return_visit_num, score, create_time from bus_store_day_info + + + + + + + + insert into bus_store_day_info + + id, + store_id, + last_order_num, + last_positive_reviews_num, + last_five_star_reviews_num, + last_return_visit_num, + last_return_visit_rate, + today_return_visit_num, + score, + create_time, + + + #{id}, + #{storeId}, + #{lastOrderNum}, + #{lastPositiveReviewsNum}, + #{lastFiveStarReviewsNum}, + #{lastReturnVisitNum}, + #{lastReturnVisitRate}, + #{todayReturnVisitNum}, + #{score}, + #{createTime}, + + + + + update bus_store_day_info + + store_id = #{storeId}, + last_order_num = #{lastOrderNum}, + last_positive_reviews_num = #{lastPositiveReviewsNum}, + last_five_star_reviews_num = #{lastFiveStarReviewsNum}, + last_return_visit_num = #{lastReturnVisitNum}, + last_return_visit_rate = #{lastReturnVisitRate}, + today_return_visit_num = #{todayReturnVisitNum}, + score = #{score}, + create_time = #{createTime}, + + where id = #{id} + + + + delete from bus_store_day_info where id = #{id} + + + + delete from bus_store_day_info where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/business/BusStoreInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/business/BusStoreInfoMapper.xml new file mode 100644 index 0000000..e6f4135 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/business/BusStoreInfoMapper.xml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, platform_type, store_code, store_name, store_belong, grant_status, return_visit_status, bind_id, bind_user, bind_time, update_id, update_user, update_time, self_delivery_status, return_visit_user_range, sale_bind_id, sale_bind_name, sale_bind_time from bus_store_info + + + + + + + + insert into bus_store_info + + id, + platform_type, + store_code, + store_name, + store_belong, + grant_status, + return_visit_status, + bind_id, + bind_user, + bind_time, + update_id, + update_user, + update_time, + self_delivery_status, + return_visit_user_range, + sale_bind_id, + sale_bind_name, + sale_bind_time, + + + #{id}, + #{platformType}, + #{storeCode}, + #{storeName}, + #{storeBelong}, + #{grantStatus}, + #{returnVisitStatus}, + #{bindId}, + #{bindUser}, + #{bindTime}, + #{updateId}, + #{updateUser}, + #{updateTime}, + #{selfDeliveryStatus}, + #{returnVisitUserRange}, + #{saleBindId}, + #{saleBindName}, + #{saleBindTime}, + + + + + update bus_store_info + + platform_type = #{platformType}, + store_code = #{storeCode}, + store_name = #{storeName}, + store_belong = #{storeBelong}, + grant_status = #{grantStatus}, + return_visit_status = #{returnVisitStatus}, + bind_id = #{bindId}, + bind_user = #{bindUser}, + bind_time = #{bindTime}, + update_id = #{updateId}, + update_user = #{updateUser}, + update_time = #{updateTime}, + self_delivery_status = #{selfDeliveryStatus}, + return_visit_user_range = #{returnVisitUserRange}, + sale_bind_id = #{saleBindId}, + sale_bind_name = #{saleBindName}, + sale_bind_time = #{saleBindTime}, + + where id = #{id} + + + + delete from bus_store_info where id = #{id} + + + + delete from bus_store_info where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-ui/.env.development b/ruoyi-ui/.env.development index 302ecd1..a8218da 100644 --- a/ruoyi-ui/.env.development +++ b/ruoyi-ui/.env.development @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 优势管理系统 # 开发环境配置 ENV = 'development' -# 若依管理系统/开发环境 +# 优势管理系统/开发环境 VUE_APP_BASE_API = '/dev-api' # 路由懒加载 diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index b4893b0..48e77b4 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -1,8 +1,8 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 优势管理系统 # 生产环境配置 ENV = 'production' -# 若依管理系统/生产环境 +# 优势管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' diff --git a/ruoyi-ui/.env.staging b/ruoyi-ui/.env.staging index 361859f..c1eed28 100644 --- a/ruoyi-ui/.env.staging +++ b/ruoyi-ui/.env.staging @@ -1,10 +1,10 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 优势管理系统 NODE_ENV = production # 测试环境配置 ENV = 'staging' -# 若依管理系统/测试环境 +# 优势管理系统/测试环境 VUE_APP_BASE_API = '/stage-api' diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index f1b4a01..9871a7f 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -39,9 +39,9 @@ -

若依后台管理框架

+

优势后台管理框架

- 一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了若依管理系统,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。 + 一直想做一款后台管理系统,看了很多优秀的开源项目但是发现没有合适自己的。于是利用空闲休息时间开始自己写一套后台系统。如此有了优势管理系统,她可以用于所有的Web应用程序,如网站管理后台,网站会员中心,CMS,CRM,OA等等,当然,您也可以对她进行深度定制,以做出更强系统。所有前端后台代码封装过后十分精简易上手,出错概率低。同时支持移动客户端访问。系统会陆续更新一些实用功能。

当前版本: v{{ version }} @@ -128,14 +128,14 @@

微信:/ *若依/ *优势

支付宝:/ *若依/ *优势

@@ -957,7 +957,7 @@
    -
  1. 若依前后端分离系统正式发布
  2. +
  3. 优势前后端分离系统正式发布
diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 06c09d2..e72c72e 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -1,7 +1,7 @@