diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCarController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCarController.java new file mode 100644 index 0000000..0402c5b --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCarController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCar; +import com.cpxt.biz.service.IBizCarService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 车辆Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/car") +public class BizCarController extends BaseController +{ + @Autowired + private IBizCarService bizCarService; + + /** + * 查询车辆列表 + */ + @PreAuthorize("@ss.hasPermi('biz:car:list')") + @GetMapping("/list") + public TableDataInfo list(BizCar bizCar) + { + startPage(); + List list = bizCarService.selectBizCarList(bizCar); + return getDataTable(list); + } + + /** + * 导出车辆列表 + */ + @PreAuthorize("@ss.hasPermi('biz:car:export')") + @Log(title = "车辆", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCar bizCar) + { + List list = bizCarService.selectBizCarList(bizCar); + ExcelUtil util = new ExcelUtil(BizCar.class); + util.exportExcel(response, list, "车辆数据"); + } + + /** + * 获取车辆详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:car:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCarService.selectBizCarById(id)); + } + + /** + * 新增车辆 + */ + @PreAuthorize("@ss.hasPermi('biz:car:add')") + @Log(title = "车辆", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCar bizCar) + { + return toAjax(bizCarService.insertBizCar(bizCar)); + } + + /** + * 修改车辆 + */ + @PreAuthorize("@ss.hasPermi('biz:car:edit')") + @Log(title = "车辆", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCar bizCar) + { + return toAjax(bizCarService.updateBizCar(bizCar)); + } + + /** + * 删除车辆 + */ + @PreAuthorize("@ss.hasPermi('biz:car:remove')") + @Log(title = "车辆", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCarService.deleteBizCarByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCarModelController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCarModelController.java new file mode 100644 index 0000000..d2e5180 --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCarModelController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCarModel; +import com.cpxt.biz.service.IBizCarModelService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 车型Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/model") +public class BizCarModelController extends BaseController +{ + @Autowired + private IBizCarModelService bizCarModelService; + + /** + * 查询车型列表 + */ + @PreAuthorize("@ss.hasPermi('biz:model:list')") + @GetMapping("/list") + public TableDataInfo list(BizCarModel bizCarModel) + { + startPage(); + List list = bizCarModelService.selectBizCarModelList(bizCarModel); + return getDataTable(list); + } + + /** + * 导出车型列表 + */ + @PreAuthorize("@ss.hasPermi('biz:model:export')") + @Log(title = "车型", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCarModel bizCarModel) + { + List list = bizCarModelService.selectBizCarModelList(bizCarModel); + ExcelUtil util = new ExcelUtil(BizCarModel.class); + util.exportExcel(response, list, "车型数据"); + } + + /** + * 获取车型详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:model:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCarModelService.selectBizCarModelById(id)); + } + + /** + * 新增车型 + */ + @PreAuthorize("@ss.hasPermi('biz:model:add')") + @Log(title = "车型", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCarModel bizCarModel) + { + return toAjax(bizCarModelService.insertBizCarModel(bizCarModel)); + } + + /** + * 修改车型 + */ + @PreAuthorize("@ss.hasPermi('biz:model:edit')") + @Log(title = "车型", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCarModel bizCarModel) + { + return toAjax(bizCarModelService.updateBizCarModel(bizCarModel)); + } + + /** + * 删除车型 + */ + @PreAuthorize("@ss.hasPermi('biz:model:remove')") + @Log(title = "车型", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCarModelService.deleteBizCarModelByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerController.java new file mode 100644 index 0000000..cdae97d --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCustomer; +import com.cpxt.biz.service.IBizCustomerService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 客户Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/customer") +public class BizCustomerController extends BaseController +{ + @Autowired + private IBizCustomerService bizCustomerService; + + /** + * 查询客户列表 + */ + @PreAuthorize("@ss.hasPermi('biz:customer:list')") + @GetMapping("/list") + public TableDataInfo list(BizCustomer bizCustomer) + { + startPage(); + List list = bizCustomerService.selectBizCustomerList(bizCustomer); + return getDataTable(list); + } + + /** + * 导出客户列表 + */ + @PreAuthorize("@ss.hasPermi('biz:customer:export')") + @Log(title = "客户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCustomer bizCustomer) + { + List list = bizCustomerService.selectBizCustomerList(bizCustomer); + ExcelUtil util = new ExcelUtil(BizCustomer.class); + util.exportExcel(response, list, "客户数据"); + } + + /** + * 获取客户详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:customer:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCustomerService.selectBizCustomerById(id)); + } + + /** + * 新增客户 + */ + @PreAuthorize("@ss.hasPermi('biz:customer:add')") + @Log(title = "客户", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCustomer bizCustomer) + { + return toAjax(bizCustomerService.insertBizCustomer(bizCustomer)); + } + + /** + * 修改客户 + */ + @PreAuthorize("@ss.hasPermi('biz:customer:edit')") + @Log(title = "客户", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCustomer bizCustomer) + { + return toAjax(bizCustomerService.updateBizCustomer(bizCustomer)); + } + + /** + * 删除客户 + */ + @PreAuthorize("@ss.hasPermi('biz:customer:remove')") + @Log(title = "客户", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCustomerService.deleteBizCustomerByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerRouteController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerRouteController.java new file mode 100644 index 0000000..3944dff --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerRouteController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCustomerRoute; +import com.cpxt.biz.service.IBizCustomerRouteService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 路线Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/route") +public class BizCustomerRouteController extends BaseController +{ + @Autowired + private IBizCustomerRouteService bizCustomerRouteService; + + /** + * 查询路线列表 + */ + @PreAuthorize("@ss.hasPermi('biz:route:list')") + @GetMapping("/list") + public TableDataInfo list(BizCustomerRoute bizCustomerRoute) + { + startPage(); + List list = bizCustomerRouteService.selectBizCustomerRouteList(bizCustomerRoute); + return getDataTable(list); + } + + /** + * 导出路线列表 + */ + @PreAuthorize("@ss.hasPermi('biz:route:export')") + @Log(title = "路线", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCustomerRoute bizCustomerRoute) + { + List list = bizCustomerRouteService.selectBizCustomerRouteList(bizCustomerRoute); + ExcelUtil util = new ExcelUtil(BizCustomerRoute.class); + util.exportExcel(response, list, "路线数据"); + } + + /** + * 获取路线详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:route:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCustomerRouteService.selectBizCustomerRouteById(id)); + } + + /** + * 新增路线 + */ + @PreAuthorize("@ss.hasPermi('biz:route:add')") + @Log(title = "路线", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCustomerRoute bizCustomerRoute) + { + return toAjax(bizCustomerRouteService.insertBizCustomerRoute(bizCustomerRoute)); + } + + /** + * 修改路线 + */ + @PreAuthorize("@ss.hasPermi('biz:route:edit')") + @Log(title = "路线", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCustomerRoute bizCustomerRoute) + { + return toAjax(bizCustomerRouteService.updateBizCustomerRoute(bizCustomerRoute)); + } + + /** + * 删除路线 + */ + @PreAuthorize("@ss.hasPermi('biz:route:remove')") + @Log(title = "路线", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCustomerRouteService.deleteBizCustomerRouteByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerRouteShopController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerRouteShopController.java new file mode 100644 index 0000000..05d9dbd --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerRouteShopController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCustomerRouteShop; +import com.cpxt.biz.service.IBizCustomerRouteShopService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 路线店铺关联Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/routeShop") +public class BizCustomerRouteShopController extends BaseController +{ + @Autowired + private IBizCustomerRouteShopService bizCustomerRouteShopService; + + /** + * 查询路线店铺关联列表 + */ + @PreAuthorize("@ss.hasPermi('biz:routeShop:list')") + @GetMapping("/list") + public TableDataInfo list(BizCustomerRouteShop bizCustomerRouteShop) + { + startPage(); + List list = bizCustomerRouteShopService.selectBizCustomerRouteShopList(bizCustomerRouteShop); + return getDataTable(list); + } + + /** + * 导出路线店铺关联列表 + */ + @PreAuthorize("@ss.hasPermi('biz:routeShop:export')") + @Log(title = "路线店铺关联", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCustomerRouteShop bizCustomerRouteShop) + { + List list = bizCustomerRouteShopService.selectBizCustomerRouteShopList(bizCustomerRouteShop); + ExcelUtil util = new ExcelUtil(BizCustomerRouteShop.class); + util.exportExcel(response, list, "路线店铺关联数据"); + } + + /** + * 获取路线店铺关联详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:routeShop:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCustomerRouteShopService.selectBizCustomerRouteShopById(id)); + } + + /** + * 新增路线店铺关联 + */ + @PreAuthorize("@ss.hasPermi('biz:routeShop:add')") + @Log(title = "路线店铺关联", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCustomerRouteShop bizCustomerRouteShop) + { + return toAjax(bizCustomerRouteShopService.insertBizCustomerRouteShop(bizCustomerRouteShop)); + } + + /** + * 修改路线店铺关联 + */ + @PreAuthorize("@ss.hasPermi('biz:routeShop:edit')") + @Log(title = "路线店铺关联", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCustomerRouteShop bizCustomerRouteShop) + { + return toAjax(bizCustomerRouteShopService.updateBizCustomerRouteShop(bizCustomerRouteShop)); + } + + /** + * 删除路线店铺关联 + */ + @PreAuthorize("@ss.hasPermi('biz:routeShop:remove')") + @Log(title = "路线店铺关联", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCustomerRouteShopService.deleteBizCustomerRouteShopByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerShopController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerShopController.java new file mode 100644 index 0000000..9667fcd --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerShopController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCustomerShop; +import com.cpxt.biz.service.IBizCustomerShopService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 门店Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/shop") +public class BizCustomerShopController extends BaseController +{ + @Autowired + private IBizCustomerShopService bizCustomerShopService; + + /** + * 查询门店列表 + */ + @PreAuthorize("@ss.hasPermi('biz:shop:list')") + @GetMapping("/list") + public TableDataInfo list(BizCustomerShop bizCustomerShop) + { + startPage(); + List list = bizCustomerShopService.selectBizCustomerShopList(bizCustomerShop); + return getDataTable(list); + } + + /** + * 导出门店列表 + */ + @PreAuthorize("@ss.hasPermi('biz:shop:export')") + @Log(title = "门店", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCustomerShop bizCustomerShop) + { + List list = bizCustomerShopService.selectBizCustomerShopList(bizCustomerShop); + ExcelUtil util = new ExcelUtil(BizCustomerShop.class); + util.exportExcel(response, list, "门店数据"); + } + + /** + * 获取门店详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:shop:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCustomerShopService.selectBizCustomerShopById(id)); + } + + /** + * 新增门店 + */ + @PreAuthorize("@ss.hasPermi('biz:shop:add')") + @Log(title = "门店", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCustomerShop bizCustomerShop) + { + return toAjax(bizCustomerShopService.insertBizCustomerShop(bizCustomerShop)); + } + + /** + * 修改门店 + */ + @PreAuthorize("@ss.hasPermi('biz:shop:edit')") + @Log(title = "门店", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCustomerShop bizCustomerShop) + { + return toAjax(bizCustomerShopService.updateBizCustomerShop(bizCustomerShop)); + } + + /** + * 删除门店 + */ + @PreAuthorize("@ss.hasPermi('biz:shop:remove')") + @Log(title = "门店", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCustomerShopService.deleteBizCustomerShopByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerUserController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerUserController.java new file mode 100644 index 0000000..2759f3a --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerUserController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCustomerUser; +import com.cpxt.biz.service.IBizCustomerUserService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 用户Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/user") +public class BizCustomerUserController extends BaseController +{ + @Autowired + private IBizCustomerUserService bizCustomerUserService; + + /** + * 查询用户列表 + */ + @PreAuthorize("@ss.hasPermi('biz:user:list')") + @GetMapping("/list") + public TableDataInfo list(BizCustomerUser bizCustomerUser) + { + startPage(); + List list = bizCustomerUserService.selectBizCustomerUserList(bizCustomerUser); + return getDataTable(list); + } + + /** + * 导出用户列表 + */ + @PreAuthorize("@ss.hasPermi('biz:user:export')") + @Log(title = "用户", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCustomerUser bizCustomerUser) + { + List list = bizCustomerUserService.selectBizCustomerUserList(bizCustomerUser); + ExcelUtil util = new ExcelUtil(BizCustomerUser.class); + util.exportExcel(response, list, "用户数据"); + } + + /** + * 获取用户详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:user:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCustomerUserService.selectBizCustomerUserById(id)); + } + + /** + * 新增用户 + */ + @PreAuthorize("@ss.hasPermi('biz:user:add')") + @Log(title = "用户", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCustomerUser bizCustomerUser) + { + return toAjax(bizCustomerUserService.insertBizCustomerUser(bizCustomerUser)); + } + + /** + * 修改用户 + */ + @PreAuthorize("@ss.hasPermi('biz:user:edit')") + @Log(title = "用户", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCustomerUser bizCustomerUser) + { + return toAjax(bizCustomerUserService.updateBizCustomerUser(bizCustomerUser)); + } + + /** + * 删除用户 + */ + @PreAuthorize("@ss.hasPermi('biz:user:remove')") + @Log(title = "用户", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCustomerUserService.deleteBizCustomerUserByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerWarehouseController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerWarehouseController.java new file mode 100644 index 0000000..54e40b2 --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizCustomerWarehouseController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizCustomerWarehouse; +import com.cpxt.biz.service.IBizCustomerWarehouseService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 仓库Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/warehouse") +public class BizCustomerWarehouseController extends BaseController +{ + @Autowired + private IBizCustomerWarehouseService bizCustomerWarehouseService; + + /** + * 查询仓库列表 + */ + @PreAuthorize("@ss.hasPermi('biz:warehouse:list')") + @GetMapping("/list") + public TableDataInfo list(BizCustomerWarehouse bizCustomerWarehouse) + { + startPage(); + List list = bizCustomerWarehouseService.selectBizCustomerWarehouseList(bizCustomerWarehouse); + return getDataTable(list); + } + + /** + * 导出仓库列表 + */ + @PreAuthorize("@ss.hasPermi('biz:warehouse:export')") + @Log(title = "仓库", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizCustomerWarehouse bizCustomerWarehouse) + { + List list = bizCustomerWarehouseService.selectBizCustomerWarehouseList(bizCustomerWarehouse); + ExcelUtil util = new ExcelUtil(BizCustomerWarehouse.class); + util.exportExcel(response, list, "仓库数据"); + } + + /** + * 获取仓库详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:warehouse:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizCustomerWarehouseService.selectBizCustomerWarehouseById(id)); + } + + /** + * 新增仓库 + */ + @PreAuthorize("@ss.hasPermi('biz:warehouse:add')") + @Log(title = "仓库", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizCustomerWarehouse bizCustomerWarehouse) + { + return toAjax(bizCustomerWarehouseService.insertBizCustomerWarehouse(bizCustomerWarehouse)); + } + + /** + * 修改仓库 + */ + @PreAuthorize("@ss.hasPermi('biz:warehouse:edit')") + @Log(title = "仓库", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizCustomerWarehouse bizCustomerWarehouse) + { + return toAjax(bizCustomerWarehouseService.updateBizCustomerWarehouse(bizCustomerWarehouse)); + } + + /** + * 删除仓库 + */ + @PreAuthorize("@ss.hasPermi('biz:warehouse:remove')") + @Log(title = "仓库", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizCustomerWarehouseService.deleteBizCustomerWarehouseByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizDriverController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizDriverController.java new file mode 100644 index 0000000..e303b7d --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizDriverController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizDriver; +import com.cpxt.biz.service.IBizDriverService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 司机Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/driver") +public class BizDriverController extends BaseController +{ + @Autowired + private IBizDriverService bizDriverService; + + /** + * 查询司机列表 + */ + @PreAuthorize("@ss.hasPermi('biz:driver:list')") + @GetMapping("/list") + public TableDataInfo list(BizDriver bizDriver) + { + startPage(); + List list = bizDriverService.selectBizDriverList(bizDriver); + return getDataTable(list); + } + + /** + * 导出司机列表 + */ + @PreAuthorize("@ss.hasPermi('biz:driver:export')") + @Log(title = "司机", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizDriver bizDriver) + { + List list = bizDriverService.selectBizDriverList(bizDriver); + ExcelUtil util = new ExcelUtil(BizDriver.class); + util.exportExcel(response, list, "司机数据"); + } + + /** + * 获取司机详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:driver:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizDriverService.selectBizDriverById(id)); + } + + /** + * 新增司机 + */ + @PreAuthorize("@ss.hasPermi('biz:driver:add')") + @Log(title = "司机", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizDriver bizDriver) + { + return toAjax(bizDriverService.insertBizDriver(bizDriver)); + } + + /** + * 修改司机 + */ + @PreAuthorize("@ss.hasPermi('biz:driver:edit')") + @Log(title = "司机", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizDriver bizDriver) + { + return toAjax(bizDriverService.updateBizDriver(bizDriver)); + } + + /** + * 删除司机 + */ + @PreAuthorize("@ss.hasPermi('biz:driver:remove')") + @Log(title = "司机", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizDriverService.deleteBizDriverByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizOrderController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizOrderController.java new file mode 100644 index 0000000..40ddd27 --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizOrderController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizOrder; +import com.cpxt.biz.service.IBizOrderService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 订单Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/order") +public class BizOrderController extends BaseController +{ + @Autowired + private IBizOrderService bizOrderService; + + /** + * 查询订单列表 + */ + @PreAuthorize("@ss.hasPermi('biz:order:list')") + @GetMapping("/list") + public TableDataInfo list(BizOrder bizOrder) + { + startPage(); + List list = bizOrderService.selectBizOrderList(bizOrder); + return getDataTable(list); + } + + /** + * 导出订单列表 + */ + @PreAuthorize("@ss.hasPermi('biz:order:export')") + @Log(title = "订单", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizOrder bizOrder) + { + List list = bizOrderService.selectBizOrderList(bizOrder); + ExcelUtil util = new ExcelUtil(BizOrder.class); + util.exportExcel(response, list, "订单数据"); + } + + /** + * 获取订单详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:order:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizOrderService.selectBizOrderById(id)); + } + + /** + * 新增订单 + */ + @PreAuthorize("@ss.hasPermi('biz:order:add')") + @Log(title = "订单", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizOrder bizOrder) + { + return toAjax(bizOrderService.insertBizOrder(bizOrder)); + } + + /** + * 修改订单 + */ + @PreAuthorize("@ss.hasPermi('biz:order:edit')") + @Log(title = "订单", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizOrder bizOrder) + { + return toAjax(bizOrderService.updateBizOrder(bizOrder)); + } + + /** + * 删除订单 + */ + @PreAuthorize("@ss.hasPermi('biz:order:remove')") + @Log(title = "订单", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizOrderService.deleteBizOrderByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizOrderSubController.java b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizOrderSubController.java new file mode 100644 index 0000000..195d02a --- /dev/null +++ b/cpxt-admin/src/main/java/com/cpxt/web/controller/biz/BizOrderSubController.java @@ -0,0 +1,104 @@ +package com.cpxt.web.controller.biz; + +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.cpxt.common.annotation.Log; +import com.cpxt.common.core.controller.BaseController; +import com.cpxt.common.core.domain.AjaxResult; +import com.cpxt.common.enums.BusinessType; +import com.cpxt.biz.domain.BizOrderSub; +import com.cpxt.biz.service.IBizOrderSubService; +import com.cpxt.common.utils.poi.ExcelUtil; +import com.cpxt.common.core.page.TableDataInfo; + +/** + * 订单子单Controller + * + * @author YIN + * @date 2024-12-16 + */ +@RestController +@RequestMapping("/biz/sub") +public class BizOrderSubController extends BaseController +{ + @Autowired + private IBizOrderSubService bizOrderSubService; + + /** + * 查询订单子单列表 + */ + @PreAuthorize("@ss.hasPermi('biz:sub:list')") + @GetMapping("/list") + public TableDataInfo list(BizOrderSub bizOrderSub) + { + startPage(); + List list = bizOrderSubService.selectBizOrderSubList(bizOrderSub); + return getDataTable(list); + } + + /** + * 导出订单子单列表 + */ + @PreAuthorize("@ss.hasPermi('biz:sub:export')") + @Log(title = "订单子单", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, BizOrderSub bizOrderSub) + { + List list = bizOrderSubService.selectBizOrderSubList(bizOrderSub); + ExcelUtil util = new ExcelUtil(BizOrderSub.class); + util.exportExcel(response, list, "订单子单数据"); + } + + /** + * 获取订单子单详细信息 + */ + @PreAuthorize("@ss.hasPermi('biz:sub:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return success(bizOrderSubService.selectBizOrderSubById(id)); + } + + /** + * 新增订单子单 + */ + @PreAuthorize("@ss.hasPermi('biz:sub:add')") + @Log(title = "订单子单", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody BizOrderSub bizOrderSub) + { + return toAjax(bizOrderSubService.insertBizOrderSub(bizOrderSub)); + } + + /** + * 修改订单子单 + */ + @PreAuthorize("@ss.hasPermi('biz:sub:edit')") + @Log(title = "订单子单", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody BizOrderSub bizOrderSub) + { + return toAjax(bizOrderSubService.updateBizOrderSub(bizOrderSub)); + } + + /** + * 删除订单子单 + */ + @PreAuthorize("@ss.hasPermi('biz:sub:remove')") + @Log(title = "订单子单", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(bizOrderSubService.deleteBizOrderSubByIds(ids)); + } +} diff --git a/cpxt-admin/src/main/resources/application-druid.yml b/cpxt-admin/src/main/resources/application-druid.yml index 426a48a..d41ec1f 100644 --- a/cpxt-admin/src/main/resources/application-druid.yml +++ b/cpxt-admin/src/main/resources/application-druid.yml @@ -6,9 +6,9 @@ spring: druid: # 主库数据源 master: - url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://localhost:3306/cpxtdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root - password: password + password: root # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCar.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCar.java new file mode 100644 index 0000000..dcdaeff --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCar.java @@ -0,0 +1,138 @@ +package com.cpxt.biz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 车辆对象 biz_car + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCar extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 车辆型号ID */ + @Excel(name = "车辆型号ID") + private Long modelId; + + /** 车辆型号 */ + @Excel(name = "车辆型号") + private String modelName; + + /** 车辆类型 */ + @Excel(name = "车辆类型") + private String carType; + + /** 车牌号 */ + @Excel(name = "车牌号") + private String carNo; + + /** 车架号 */ + @Excel(name = "车架号") + private String vin; + + /** 定位设备序列号 */ + @Excel(name = "定位设备序列号") + private String serialNo; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setModelId(Long modelId) + { + this.modelId = modelId; + } + + public Long getModelId() + { + return modelId; + } + public void setModelName(String modelName) + { + this.modelName = modelName; + } + + public String getModelName() + { + return modelName; + } + public void setCarType(String carType) + { + this.carType = carType; + } + + public String getCarType() + { + return carType; + } + public void setCarNo(String carNo) + { + this.carNo = carNo; + } + + public String getCarNo() + { + return carNo; + } + public void setVin(String vin) + { + this.vin = vin; + } + + public String getVin() + { + return vin; + } + public void setSerialNo(String serialNo) + { + this.serialNo = serialNo; + } + + public String getSerialNo() + { + return serialNo; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("modelId", getModelId()) + .append("modelName", getModelName()) + .append("carType", getCarType()) + .append("carNo", getCarNo()) + .append("vin", getVin()) + .append("serialNo", getSerialNo()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCarModel.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCarModel.java new file mode 100644 index 0000000..7d73a73 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCarModel.java @@ -0,0 +1,153 @@ +package com.cpxt.biz.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 车型对象 biz_car_model + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCarModel extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 车辆型号名称 */ + @Excel(name = "车辆型号名称") + private String name; + + /** 品牌 */ + @Excel(name = "品牌") + private String brand; + + /** 应载重量 */ + @Excel(name = "应载重量") + private BigDecimal weight; + + /** 应载体积 */ + @Excel(name = "应载体积") + private BigDecimal volume; + + /** 长(米) */ + @Excel(name = "长", readConverterExp = "米=") + private BigDecimal length; + + /** 宽(米) */ + @Excel(name = "宽", readConverterExp = "米=") + private BigDecimal width; + + /** 高(米) */ + @Excel(name = "高", readConverterExp = "米=") + private BigDecimal height; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setBrand(String brand) + { + this.brand = brand; + } + + public String getBrand() + { + return brand; + } + public void setWeight(BigDecimal weight) + { + this.weight = weight; + } + + public BigDecimal getWeight() + { + return weight; + } + public void setVolume(BigDecimal volume) + { + this.volume = volume; + } + + public BigDecimal getVolume() + { + return volume; + } + public void setLength(BigDecimal length) + { + this.length = length; + } + + public BigDecimal getLength() + { + return length; + } + public void setWidth(BigDecimal width) + { + this.width = width; + } + + public BigDecimal getWidth() + { + return width; + } + public void setHeight(BigDecimal height) + { + this.height = height; + } + + public BigDecimal getHeight() + { + return height; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("brand", getBrand()) + .append("weight", getWeight()) + .append("volume", getVolume()) + .append("length", getLength()) + .append("width", getWidth()) + .append("height", getHeight()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomer.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomer.java new file mode 100644 index 0000000..b2b92e1 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomer.java @@ -0,0 +1,124 @@ +package com.cpxt.biz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 客户对象 biz_customer + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCustomer extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String name; + + /** 客户全称 */ + @Excel(name = "客户全称") + private String fullName; + + /** 联系人 */ + @Excel(name = "联系人") + private String linkman; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String linkphone; + + /** 客户等级 */ + @Excel(name = "客户等级") + private String level; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setFullName(String fullName) + { + this.fullName = fullName; + } + + public String getFullName() + { + return fullName; + } + public void setLinkman(String linkman) + { + this.linkman = linkman; + } + + public String getLinkman() + { + return linkman; + } + public void setLinkphone(String linkphone) + { + this.linkphone = linkphone; + } + + public String getLinkphone() + { + return linkphone; + } + public void setLevel(String level) + { + this.level = level; + } + + public String getLevel() + { + return level; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("name", getName()) + .append("fullName", getFullName()) + .append("linkman", getLinkman()) + .append("linkphone", getLinkphone()) + .append("level", getLevel()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerRoute.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerRoute.java new file mode 100644 index 0000000..4ec05d5 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerRoute.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 路线对象 biz_customer_route + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCustomerRoute extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 路线名称 */ + @Excel(name = "路线名称") + private String name; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("name", getName()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerRouteShop.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerRouteShop.java new file mode 100644 index 0000000..5d92990 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerRouteShop.java @@ -0,0 +1,79 @@ +package com.cpxt.biz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 路线店铺关联对象 biz_customer_route_shop + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCustomerRouteShop extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 路线ID */ + @Excel(name = "路线ID") + private Long routeId; + + /** 店铺ID */ + @Excel(name = "店铺ID") + private Long shopId; + + /** 排序 */ + @Excel(name = "排序") + private Integer sort; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setRouteId(Long routeId) + { + this.routeId = routeId; + } + + public Long getRouteId() + { + return routeId; + } + public void setShopId(Long shopId) + { + this.shopId = shopId; + } + + public Long getShopId() + { + return shopId; + } + public void setSort(Integer sort) + { + this.sort = sort; + } + + public Integer getSort() + { + return sort; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("routeId", getRouteId()) + .append("shopId", getShopId()) + .append("sort", getSort()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerShop.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerShop.java new file mode 100644 index 0000000..f8f500e --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerShop.java @@ -0,0 +1,167 @@ +package com.cpxt.biz.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 门店对象 biz_customer_shop + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCustomerShop extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 店铺名称 */ + @Excel(name = "店铺名称") + private String name; + + /** 联系人 */ + @Excel(name = "联系人") + private String linkman; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String linkphone; + + /** 店铺地址 */ + @Excel(name = "店铺地址") + private String address; + + /** 坐标经度 */ + @Excel(name = "坐标经度") + private BigDecimal lng; + + /** 坐标纬度 */ + @Excel(name = "坐标纬度") + private BigDecimal lat; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setLinkman(String linkman) + { + this.linkman = linkman; + } + + public String getLinkman() + { + return linkman; + } + public void setLinkphone(String linkphone) + { + this.linkphone = linkphone; + } + + public String getLinkphone() + { + return linkphone; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + public void setLng(BigDecimal lng) + { + this.lng = lng; + } + + public BigDecimal getLng() + { + return lng; + } + public void setLat(BigDecimal lat) + { + this.lat = lat; + } + + public BigDecimal getLat() + { + return lat; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("name", getName()) + .append("linkman", getLinkman()) + .append("linkphone", getLinkphone()) + .append("address", getAddress()) + .append("lng", getLng()) + .append("lat", getLat()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerUser.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerUser.java new file mode 100644 index 0000000..5154134 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerUser.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 用户对象 biz_customer_user + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCustomerUser extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 用户名 */ + @Excel(name = "用户名") + private String username; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setUsername(String username) + { + this.username = username; + } + + public String getUsername() + { + return username; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("username", getUsername()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerWarehouse.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerWarehouse.java new file mode 100644 index 0000000..6e6dfff --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizCustomerWarehouse.java @@ -0,0 +1,167 @@ +package com.cpxt.biz.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 仓库对象 biz_customer_warehouse + * + * @author YIN + * @date 2024-12-16 + */ +public class BizCustomerWarehouse extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String name; + + /** 联系人 */ + @Excel(name = "联系人") + private String linkman; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String linkphone; + + /** 仓库地址 */ + @Excel(name = "仓库地址") + private String address; + + /** 坐标经度 */ + @Excel(name = "坐标经度") + private BigDecimal lng; + + /** 坐标纬度 */ + @Excel(name = "坐标纬度") + private BigDecimal lat; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setLinkman(String linkman) + { + this.linkman = linkman; + } + + public String getLinkman() + { + return linkman; + } + public void setLinkphone(String linkphone) + { + this.linkphone = linkphone; + } + + public String getLinkphone() + { + return linkphone; + } + public void setAddress(String address) + { + this.address = address; + } + + public String getAddress() + { + return address; + } + public void setLng(BigDecimal lng) + { + this.lng = lng; + } + + public BigDecimal getLng() + { + return lng; + } + public void setLat(BigDecimal lat) + { + this.lat = lat; + } + + public BigDecimal getLat() + { + return lat; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("name", getName()) + .append("linkman", getLinkman()) + .append("linkphone", getLinkphone()) + .append("address", getAddress()) + .append("lng", getLng()) + .append("lat", getLat()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizDriver.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizDriver.java new file mode 100644 index 0000000..c6a82b0 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizDriver.java @@ -0,0 +1,208 @@ +package com.cpxt.biz.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 司机对象 biz_driver + * + * @author YIN + * @date 2024-12-16 + */ +public class BizDriver extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 部门ID */ + @Excel(name = "部门ID") + private Long deptId; + + /** 用户ID */ + @Excel(name = "用户ID") + private Long userId; + + /** 姓名 */ + @Excel(name = "姓名") + private String name; + + /** 身份证号 */ + @Excel(name = "身份证号") + private String idcard; + + /** 性别 */ + @Excel(name = "性别") + private String gender; + + /** 手机号码 */ + @Excel(name = "手机号码") + private String phone; + + /** 照片 */ + @Excel(name = "照片") + private String photo; + + /** 证件照人脸面 */ + @Excel(name = "证件照人脸面") + private String idcardPhotoFace; + + /** 证件照国徽面 */ + @Excel(name = "证件照国徽面") + private String idcardPhotoNe; + + /** 默认绑定车辆ID */ + @Excel(name = "默认绑定车辆ID") + private Long defaultCarId; + + /** 默认绑定车牌号 */ + @Excel(name = "默认绑定车牌号") + private String defaultCarNo; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setDeptId(Long deptId) + { + this.deptId = deptId; + } + + public Long getDeptId() + { + return deptId; + } + public void setUserId(Long userId) + { + this.userId = userId; + } + + public Long getUserId() + { + return userId; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setIdcard(String idcard) + { + this.idcard = idcard; + } + + public String getIdcard() + { + return idcard; + } + public void setGender(String gender) + { + this.gender = gender; + } + + public String getGender() + { + return gender; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setPhoto(String photo) + { + this.photo = photo; + } + + public String getPhoto() + { + return photo; + } + public void setIdcardPhotoFace(String idcardPhotoFace) + { + this.idcardPhotoFace = idcardPhotoFace; + } + + public String getIdcardPhotoFace() + { + return idcardPhotoFace; + } + public void setIdcardPhotoNe(String idcardPhotoNe) + { + this.idcardPhotoNe = idcardPhotoNe; + } + + public String getIdcardPhotoNe() + { + return idcardPhotoNe; + } + public void setDefaultCarId(Long defaultCarId) + { + this.defaultCarId = defaultCarId; + } + + public Long getDefaultCarId() + { + return defaultCarId; + } + public void setDefaultCarNo(String defaultCarNo) + { + this.defaultCarNo = defaultCarNo; + } + + public String getDefaultCarNo() + { + return defaultCarNo; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("deptId", getDeptId()) + .append("userId", getUserId()) + .append("name", getName()) + .append("idcard", getIdcard()) + .append("gender", getGender()) + .append("phone", getPhone()) + .append("photo", getPhoto()) + .append("idcardPhotoFace", getIdcardPhotoFace()) + .append("idcardPhotoNe", getIdcardPhotoNe()) + .append("defaultCarId", getDefaultCarId()) + .append("defaultCarNo", getDefaultCarNo()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizOrder.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizOrder.java new file mode 100644 index 0000000..b307ffd --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizOrder.java @@ -0,0 +1,845 @@ +package com.cpxt.biz.domain; + +import java.math.BigDecimal; +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 订单对象 biz_order + * + * @author YIN + * @date 2024-12-16 + */ +public class BizOrder extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 订单号 */ + @Excel(name = "订单号") + private String orderSn; + + /** 订单状态 */ + @Excel(name = "订单状态") + private String orderStatus; + + /** 订单类型 */ + @Excel(name = "订单类型") + private String orderType; + + /** 客户ID */ + @Excel(name = "客户ID") + private Long customerId; + + /** 客户名称 */ + @Excel(name = "客户名称") + private String customerName; + + /** 路线ID */ + @Excel(name = "路线ID") + private Long routeId; + + /** 路线名称 */ + @Excel(name = "路线名称") + private String routeName; + + /** 仓库ID */ + @Excel(name = "仓库ID") + private Long warehouseId; + + /** 仓库名称 */ + @Excel(name = "仓库名称") + private String warehouseName; + + /** 店铺ID */ + @Excel(name = "店铺ID") + private Long shopId; + + /** 店铺名称 */ + @Excel(name = "店铺名称") + private String shopName; + + /** 配送车辆ID */ + @Excel(name = "配送车辆ID") + private Long carId; + + /** 配送车牌号 */ + @Excel(name = "配送车牌号") + private String carNo; + + /** 配送司机ID */ + @Excel(name = "配送司机ID") + private Long driverId; + + /** 配送司机名称 */ + @Excel(name = "配送司机名称") + private String driverName; + + /** 副驾司机ID */ + @Excel(name = "副驾司机ID") + private Long copilotId; + + /** 副驾司机名称 */ + @Excel(name = "副驾司机名称") + private String copilotName; + + /** 发件人名称 */ + @Excel(name = "发件人名称") + private String senderName; + + /** 发件联系人 */ + @Excel(name = "发件联系人") + private String senderLinkman; + + /** 发件人电话 */ + @Excel(name = "发件人电话") + private String senderPhone; + + /** 发件人地址 */ + @Excel(name = "发件人地址") + private String senderAddress; + + /** 发件人经度 */ + @Excel(name = "发件人经度") + private BigDecimal senderLng; + + /** 发件人纬度 */ + @Excel(name = "发件人纬度") + private BigDecimal senderLat; + + /** 发件人公司名称 */ + @Excel(name = "发件人公司名称") + private String senderCompany; + + /** 收件人名称 */ + @Excel(name = "收件人名称") + private String receiverName; + + /** 收件联系人 */ + @Excel(name = "收件联系人") + private String receiverLinkman; + + /** 收件人电话 */ + @Excel(name = "收件人电话") + private String receiverPhone; + + /** 收件人地址 */ + @Excel(name = "收件人地址") + private String receiverAddress; + + /** 收件人经度 */ + @Excel(name = "收件人经度") + private BigDecimal receiverLng; + + /** 收件人纬度 */ + @Excel(name = "收件人纬度") + private BigDecimal receiverLat; + + /** 收件人公司名称 */ + @Excel(name = "收件人公司名称") + private String receiverCompany; + + /** 物品类型 */ + @Excel(name = "物品类型") + private String goodsType; + + /** 物品名称 */ + @Excel(name = "物品名称") + private String goodsName; + + /** 重量 */ + @Excel(name = "重量") + private BigDecimal weight; + + /** 体积 */ + @Excel(name = "体积") + private BigDecimal volume; + + /** 长(米) */ + @Excel(name = "长", readConverterExp = "米=") + private BigDecimal length; + + /** 宽(米) */ + @Excel(name = "宽", readConverterExp = "米=") + private BigDecimal width; + + /** 高(米) */ + @Excel(name = "高", readConverterExp = "米=") + private BigDecimal height; + + /** 包裹总件数 */ + @Excel(name = "包裹总件数") + private Integer totalQuantity; + + /** 是否保价 */ + @Excel(name = "是否保价") + private Integer insured; + + /** 保价金额 */ + @Excel(name = "保价金额") + private BigDecimal insuredMoney; + + /** 保价费用 */ + @Excel(name = "保价费用") + private BigDecimal insuredFee; + + /** 订单费用 */ + @Excel(name = "订单费用") + private BigDecimal orderFee; + + /** 是否取消 */ + @Excel(name = "是否取消") + private Integer isCancel; + + /** 取消原因 */ + @Excel(name = "取消原因") + private String cancelReason; + + /** 取消时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "取消时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date cancelTime; + + /** 支付类型 寄付,到付,月结 */ + @Excel(name = "支付类型 寄付,到付,月结") + private String payType; + + /** 支付方式 支付宝,微信 */ + @Excel(name = "支付方式 支付宝,微信") + private String payMode; + + /** 支付系统订单号 */ + @Excel(name = "支付系统订单号") + private String payId; + + /** 支付状态 */ + @Excel(name = "支付状态") + private Integer payStatus; + + /** 支付时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date payTime; + + /** 状态 */ + @Excel(name = "状态") + private Integer status; + + /** 开始配送时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "开始配送时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date startTime; + + /** 到达时间 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "到达时间", width = 30, dateFormat = "yyyy-MM-dd") + private Date arriveTime; + + /** 到达备注 */ + @Excel(name = "到达备注") + private String arriveRemark; + + /** 到达经度 */ + @Excel(name = "到达经度") + private BigDecimal arriveLng; + + /** 到达纬度 */ + @Excel(name = "到达纬度") + private BigDecimal arriveLat; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setOrderSn(String orderSn) + { + this.orderSn = orderSn; + } + + public String getOrderSn() + { + return orderSn; + } + public void setOrderStatus(String orderStatus) + { + this.orderStatus = orderStatus; + } + + public String getOrderStatus() + { + return orderStatus; + } + public void setOrderType(String orderType) + { + this.orderType = orderType; + } + + public String getOrderType() + { + return orderType; + } + public void setCustomerId(Long customerId) + { + this.customerId = customerId; + } + + public Long getCustomerId() + { + return customerId; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setRouteId(Long routeId) + { + this.routeId = routeId; + } + + public Long getRouteId() + { + return routeId; + } + public void setRouteName(String routeName) + { + this.routeName = routeName; + } + + public String getRouteName() + { + return routeName; + } + public void setWarehouseId(Long warehouseId) + { + this.warehouseId = warehouseId; + } + + public Long getWarehouseId() + { + return warehouseId; + } + public void setWarehouseName(String warehouseName) + { + this.warehouseName = warehouseName; + } + + public String getWarehouseName() + { + return warehouseName; + } + public void setShopId(Long shopId) + { + this.shopId = shopId; + } + + public Long getShopId() + { + return shopId; + } + public void setShopName(String shopName) + { + this.shopName = shopName; + } + + public String getShopName() + { + return shopName; + } + public void setCarId(Long carId) + { + this.carId = carId; + } + + public Long getCarId() + { + return carId; + } + public void setCarNo(String carNo) + { + this.carNo = carNo; + } + + public String getCarNo() + { + return carNo; + } + public void setDriverId(Long driverId) + { + this.driverId = driverId; + } + + public Long getDriverId() + { + return driverId; + } + public void setDriverName(String driverName) + { + this.driverName = driverName; + } + + public String getDriverName() + { + return driverName; + } + public void setCopilotId(Long copilotId) + { + this.copilotId = copilotId; + } + + public Long getCopilotId() + { + return copilotId; + } + public void setCopilotName(String copilotName) + { + this.copilotName = copilotName; + } + + public String getCopilotName() + { + return copilotName; + } + public void setSenderName(String senderName) + { + this.senderName = senderName; + } + + public String getSenderName() + { + return senderName; + } + public void setSenderLinkman(String senderLinkman) + { + this.senderLinkman = senderLinkman; + } + + public String getSenderLinkman() + { + return senderLinkman; + } + public void setSenderPhone(String senderPhone) + { + this.senderPhone = senderPhone; + } + + public String getSenderPhone() + { + return senderPhone; + } + public void setSenderAddress(String senderAddress) + { + this.senderAddress = senderAddress; + } + + public String getSenderAddress() + { + return senderAddress; + } + public void setSenderLng(BigDecimal senderLng) + { + this.senderLng = senderLng; + } + + public BigDecimal getSenderLng() + { + return senderLng; + } + public void setSenderLat(BigDecimal senderLat) + { + this.senderLat = senderLat; + } + + public BigDecimal getSenderLat() + { + return senderLat; + } + public void setSenderCompany(String senderCompany) + { + this.senderCompany = senderCompany; + } + + public String getSenderCompany() + { + return senderCompany; + } + public void setReceiverName(String receiverName) + { + this.receiverName = receiverName; + } + + public String getReceiverName() + { + return receiverName; + } + public void setReceiverLinkman(String receiverLinkman) + { + this.receiverLinkman = receiverLinkman; + } + + public String getReceiverLinkman() + { + return receiverLinkman; + } + public void setReceiverPhone(String receiverPhone) + { + this.receiverPhone = receiverPhone; + } + + public String getReceiverPhone() + { + return receiverPhone; + } + public void setReceiverAddress(String receiverAddress) + { + this.receiverAddress = receiverAddress; + } + + public String getReceiverAddress() + { + return receiverAddress; + } + public void setReceiverLng(BigDecimal receiverLng) + { + this.receiverLng = receiverLng; + } + + public BigDecimal getReceiverLng() + { + return receiverLng; + } + public void setReceiverLat(BigDecimal receiverLat) + { + this.receiverLat = receiverLat; + } + + public BigDecimal getReceiverLat() + { + return receiverLat; + } + public void setReceiverCompany(String receiverCompany) + { + this.receiverCompany = receiverCompany; + } + + public String getReceiverCompany() + { + return receiverCompany; + } + public void setGoodsType(String goodsType) + { + this.goodsType = goodsType; + } + + public String getGoodsType() + { + return goodsType; + } + public void setGoodsName(String goodsName) + { + this.goodsName = goodsName; + } + + public String getGoodsName() + { + return goodsName; + } + public void setWeight(BigDecimal weight) + { + this.weight = weight; + } + + public BigDecimal getWeight() + { + return weight; + } + public void setVolume(BigDecimal volume) + { + this.volume = volume; + } + + public BigDecimal getVolume() + { + return volume; + } + public void setLength(BigDecimal length) + { + this.length = length; + } + + public BigDecimal getLength() + { + return length; + } + public void setWidth(BigDecimal width) + { + this.width = width; + } + + public BigDecimal getWidth() + { + return width; + } + public void setHeight(BigDecimal height) + { + this.height = height; + } + + public BigDecimal getHeight() + { + return height; + } + public void setTotalQuantity(Integer totalQuantity) + { + this.totalQuantity = totalQuantity; + } + + public Integer getTotalQuantity() + { + return totalQuantity; + } + public void setInsured(Integer insured) + { + this.insured = insured; + } + + public Integer getInsured() + { + return insured; + } + public void setInsuredMoney(BigDecimal insuredMoney) + { + this.insuredMoney = insuredMoney; + } + + public BigDecimal getInsuredMoney() + { + return insuredMoney; + } + public void setInsuredFee(BigDecimal insuredFee) + { + this.insuredFee = insuredFee; + } + + public BigDecimal getInsuredFee() + { + return insuredFee; + } + public void setOrderFee(BigDecimal orderFee) + { + this.orderFee = orderFee; + } + + public BigDecimal getOrderFee() + { + return orderFee; + } + public void setIsCancel(Integer isCancel) + { + this.isCancel = isCancel; + } + + public Integer getIsCancel() + { + return isCancel; + } + public void setCancelReason(String cancelReason) + { + this.cancelReason = cancelReason; + } + + public String getCancelReason() + { + return cancelReason; + } + public void setCancelTime(Date cancelTime) + { + this.cancelTime = cancelTime; + } + + public Date getCancelTime() + { + return cancelTime; + } + public void setPayType(String payType) + { + this.payType = payType; + } + + public String getPayType() + { + return payType; + } + public void setPayMode(String payMode) + { + this.payMode = payMode; + } + + public String getPayMode() + { + return payMode; + } + public void setPayId(String payId) + { + this.payId = payId; + } + + public String getPayId() + { + return payId; + } + public void setPayStatus(Integer payStatus) + { + this.payStatus = payStatus; + } + + public Integer getPayStatus() + { + return payStatus; + } + public void setPayTime(Date payTime) + { + this.payTime = payTime; + } + + public Date getPayTime() + { + return payTime; + } + public void setStatus(Integer status) + { + this.status = status; + } + + public Integer getStatus() + { + return status; + } + public void setStartTime(Date startTime) + { + this.startTime = startTime; + } + + public Date getStartTime() + { + return startTime; + } + public void setArriveTime(Date arriveTime) + { + this.arriveTime = arriveTime; + } + + public Date getArriveTime() + { + return arriveTime; + } + public void setArriveRemark(String arriveRemark) + { + this.arriveRemark = arriveRemark; + } + + public String getArriveRemark() + { + return arriveRemark; + } + public void setArriveLng(BigDecimal arriveLng) + { + this.arriveLng = arriveLng; + } + + public BigDecimal getArriveLng() + { + return arriveLng; + } + public void setArriveLat(BigDecimal arriveLat) + { + this.arriveLat = arriveLat; + } + + public BigDecimal getArriveLat() + { + return arriveLat; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("orderSn", getOrderSn()) + .append("orderStatus", getOrderStatus()) + .append("orderType", getOrderType()) + .append("customerId", getCustomerId()) + .append("customerName", getCustomerName()) + .append("routeId", getRouteId()) + .append("routeName", getRouteName()) + .append("warehouseId", getWarehouseId()) + .append("warehouseName", getWarehouseName()) + .append("shopId", getShopId()) + .append("shopName", getShopName()) + .append("carId", getCarId()) + .append("carNo", getCarNo()) + .append("driverId", getDriverId()) + .append("driverName", getDriverName()) + .append("copilotId", getCopilotId()) + .append("copilotName", getCopilotName()) + .append("senderName", getSenderName()) + .append("senderLinkman", getSenderLinkman()) + .append("senderPhone", getSenderPhone()) + .append("senderAddress", getSenderAddress()) + .append("senderLng", getSenderLng()) + .append("senderLat", getSenderLat()) + .append("senderCompany", getSenderCompany()) + .append("receiverName", getReceiverName()) + .append("receiverLinkman", getReceiverLinkman()) + .append("receiverPhone", getReceiverPhone()) + .append("receiverAddress", getReceiverAddress()) + .append("receiverLng", getReceiverLng()) + .append("receiverLat", getReceiverLat()) + .append("receiverCompany", getReceiverCompany()) + .append("goodsType", getGoodsType()) + .append("goodsName", getGoodsName()) + .append("weight", getWeight()) + .append("volume", getVolume()) + .append("length", getLength()) + .append("width", getWidth()) + .append("height", getHeight()) + .append("totalQuantity", getTotalQuantity()) + .append("insured", getInsured()) + .append("insuredMoney", getInsuredMoney()) + .append("insuredFee", getInsuredFee()) + .append("orderFee", getOrderFee()) + .append("isCancel", getIsCancel()) + .append("cancelReason", getCancelReason()) + .append("cancelTime", getCancelTime()) + .append("payType", getPayType()) + .append("payMode", getPayMode()) + .append("payId", getPayId()) + .append("payStatus", getPayStatus()) + .append("payTime", getPayTime()) + .append("status", getStatus()) + .append("createTime", getCreateTime()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .append("startTime", getStartTime()) + .append("arriveTime", getArriveTime()) + .append("arriveRemark", getArriveRemark()) + .append("arriveLng", getArriveLng()) + .append("arriveLat", getArriveLat()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/domain/BizOrderSub.java b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizOrderSub.java new file mode 100644 index 0000000..0365089 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/domain/BizOrderSub.java @@ -0,0 +1,136 @@ +package com.cpxt.biz.domain; + +import java.math.BigDecimal; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.cpxt.common.annotation.Excel; +import com.cpxt.common.core.domain.BaseEntity; + +/** + * 订单子单对象 biz_order_sub + * + * @author YIN + * @date 2024-12-16 + */ +public class BizOrderSub extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** ID */ + private Long id; + + /** 订单编号 */ + @Excel(name = "订单编号") + private String orderSn; + + /** 子单号 */ + @Excel(name = "子单号") + private String subOrderSn; + + /** 重量 */ + @Excel(name = "重量") + private BigDecimal weight; + + /** 体积 */ + @Excel(name = "体积") + private BigDecimal volume; + + /** 长(米) */ + @Excel(name = "长", readConverterExp = "米=") + private BigDecimal length; + + /** 宽(米) */ + @Excel(name = "宽", readConverterExp = "米=") + private BigDecimal width; + + /** 高(米) */ + @Excel(name = "高", readConverterExp = "米=") + private BigDecimal height; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setOrderSn(String orderSn) + { + this.orderSn = orderSn; + } + + public String getOrderSn() + { + return orderSn; + } + public void setSubOrderSn(String subOrderSn) + { + this.subOrderSn = subOrderSn; + } + + public String getSubOrderSn() + { + return subOrderSn; + } + public void setWeight(BigDecimal weight) + { + this.weight = weight; + } + + public BigDecimal getWeight() + { + return weight; + } + public void setVolume(BigDecimal volume) + { + this.volume = volume; + } + + public BigDecimal getVolume() + { + return volume; + } + public void setLength(BigDecimal length) + { + this.length = length; + } + + public BigDecimal getLength() + { + return length; + } + public void setWidth(BigDecimal width) + { + this.width = width; + } + + public BigDecimal getWidth() + { + return width; + } + public void setHeight(BigDecimal height) + { + this.height = height; + } + + public BigDecimal getHeight() + { + return height; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("orderSn", getOrderSn()) + .append("subOrderSn", getSubOrderSn()) + .append("weight", getWeight()) + .append("volume", getVolume()) + .append("length", getLength()) + .append("width", getWidth()) + .append("height", getHeight()) + .toString(); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCarMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCarMapper.java new file mode 100644 index 0000000..adf5e0d --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCarMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCar; + +/** + * 车辆Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCarMapper +{ + /** + * 查询车辆 + * + * @param id 车辆主键 + * @return 车辆 + */ + public BizCar selectBizCarById(Long id); + + /** + * 查询车辆列表 + * + * @param bizCar 车辆 + * @return 车辆集合 + */ + public List selectBizCarList(BizCar bizCar); + + /** + * 新增车辆 + * + * @param bizCar 车辆 + * @return 结果 + */ + public int insertBizCar(BizCar bizCar); + + /** + * 修改车辆 + * + * @param bizCar 车辆 + * @return 结果 + */ + public int updateBizCar(BizCar bizCar); + + /** + * 删除车辆 + * + * @param id 车辆主键 + * @return 结果 + */ + public int deleteBizCarById(Long id); + + /** + * 批量删除车辆 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCarByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCarModelMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCarModelMapper.java new file mode 100644 index 0000000..edf6ce9 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCarModelMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCarModel; + +/** + * 车型Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCarModelMapper +{ + /** + * 查询车型 + * + * @param id 车型主键 + * @return 车型 + */ + public BizCarModel selectBizCarModelById(Long id); + + /** + * 查询车型列表 + * + * @param bizCarModel 车型 + * @return 车型集合 + */ + public List selectBizCarModelList(BizCarModel bizCarModel); + + /** + * 新增车型 + * + * @param bizCarModel 车型 + * @return 结果 + */ + public int insertBizCarModel(BizCarModel bizCarModel); + + /** + * 修改车型 + * + * @param bizCarModel 车型 + * @return 结果 + */ + public int updateBizCarModel(BizCarModel bizCarModel); + + /** + * 删除车型 + * + * @param id 车型主键 + * @return 结果 + */ + public int deleteBizCarModelById(Long id); + + /** + * 批量删除车型 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCarModelByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerMapper.java new file mode 100644 index 0000000..27cb62b --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomer; + +/** + * 客户Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCustomerMapper +{ + /** + * 查询客户 + * + * @param id 客户主键 + * @return 客户 + */ + public BizCustomer selectBizCustomerById(Long id); + + /** + * 查询客户列表 + * + * @param bizCustomer 客户 + * @return 客户集合 + */ + public List selectBizCustomerList(BizCustomer bizCustomer); + + /** + * 新增客户 + * + * @param bizCustomer 客户 + * @return 结果 + */ + public int insertBizCustomer(BizCustomer bizCustomer); + + /** + * 修改客户 + * + * @param bizCustomer 客户 + * @return 结果 + */ + public int updateBizCustomer(BizCustomer bizCustomer); + + /** + * 删除客户 + * + * @param id 客户主键 + * @return 结果 + */ + public int deleteBizCustomerById(Long id); + + /** + * 批量删除客户 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCustomerByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerRouteMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerRouteMapper.java new file mode 100644 index 0000000..d4180c7 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerRouteMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerRoute; + +/** + * 路线Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCustomerRouteMapper +{ + /** + * 查询路线 + * + * @param id 路线主键 + * @return 路线 + */ + public BizCustomerRoute selectBizCustomerRouteById(Long id); + + /** + * 查询路线列表 + * + * @param bizCustomerRoute 路线 + * @return 路线集合 + */ + public List selectBizCustomerRouteList(BizCustomerRoute bizCustomerRoute); + + /** + * 新增路线 + * + * @param bizCustomerRoute 路线 + * @return 结果 + */ + public int insertBizCustomerRoute(BizCustomerRoute bizCustomerRoute); + + /** + * 修改路线 + * + * @param bizCustomerRoute 路线 + * @return 结果 + */ + public int updateBizCustomerRoute(BizCustomerRoute bizCustomerRoute); + + /** + * 删除路线 + * + * @param id 路线主键 + * @return 结果 + */ + public int deleteBizCustomerRouteById(Long id); + + /** + * 批量删除路线 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCustomerRouteByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerRouteShopMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerRouteShopMapper.java new file mode 100644 index 0000000..5ea3735 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerRouteShopMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerRouteShop; + +/** + * 路线店铺关联Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCustomerRouteShopMapper +{ + /** + * 查询路线店铺关联 + * + * @param id 路线店铺关联主键 + * @return 路线店铺关联 + */ + public BizCustomerRouteShop selectBizCustomerRouteShopById(Long id); + + /** + * 查询路线店铺关联列表 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 路线店铺关联集合 + */ + public List selectBizCustomerRouteShopList(BizCustomerRouteShop bizCustomerRouteShop); + + /** + * 新增路线店铺关联 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 结果 + */ + public int insertBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop); + + /** + * 修改路线店铺关联 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 结果 + */ + public int updateBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop); + + /** + * 删除路线店铺关联 + * + * @param id 路线店铺关联主键 + * @return 结果 + */ + public int deleteBizCustomerRouteShopById(Long id); + + /** + * 批量删除路线店铺关联 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCustomerRouteShopByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerShopMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerShopMapper.java new file mode 100644 index 0000000..bee6947 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerShopMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerShop; + +/** + * 门店Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCustomerShopMapper +{ + /** + * 查询门店 + * + * @param id 门店主键 + * @return 门店 + */ + public BizCustomerShop selectBizCustomerShopById(Long id); + + /** + * 查询门店列表 + * + * @param bizCustomerShop 门店 + * @return 门店集合 + */ + public List selectBizCustomerShopList(BizCustomerShop bizCustomerShop); + + /** + * 新增门店 + * + * @param bizCustomerShop 门店 + * @return 结果 + */ + public int insertBizCustomerShop(BizCustomerShop bizCustomerShop); + + /** + * 修改门店 + * + * @param bizCustomerShop 门店 + * @return 结果 + */ + public int updateBizCustomerShop(BizCustomerShop bizCustomerShop); + + /** + * 删除门店 + * + * @param id 门店主键 + * @return 结果 + */ + public int deleteBizCustomerShopById(Long id); + + /** + * 批量删除门店 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCustomerShopByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerUserMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerUserMapper.java new file mode 100644 index 0000000..ab3aa96 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerUserMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerUser; + +/** + * 用户Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCustomerUserMapper +{ + /** + * 查询用户 + * + * @param id 用户主键 + * @return 用户 + */ + public BizCustomerUser selectBizCustomerUserById(Long id); + + /** + * 查询用户列表 + * + * @param bizCustomerUser 用户 + * @return 用户集合 + */ + public List selectBizCustomerUserList(BizCustomerUser bizCustomerUser); + + /** + * 新增用户 + * + * @param bizCustomerUser 用户 + * @return 结果 + */ + public int insertBizCustomerUser(BizCustomerUser bizCustomerUser); + + /** + * 修改用户 + * + * @param bizCustomerUser 用户 + * @return 结果 + */ + public int updateBizCustomerUser(BizCustomerUser bizCustomerUser); + + /** + * 删除用户 + * + * @param id 用户主键 + * @return 结果 + */ + public int deleteBizCustomerUserById(Long id); + + /** + * 批量删除用户 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCustomerUserByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerWarehouseMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerWarehouseMapper.java new file mode 100644 index 0000000..87c52c4 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizCustomerWarehouseMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerWarehouse; + +/** + * 仓库Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizCustomerWarehouseMapper +{ + /** + * 查询仓库 + * + * @param id 仓库主键 + * @return 仓库 + */ + public BizCustomerWarehouse selectBizCustomerWarehouseById(Long id); + + /** + * 查询仓库列表 + * + * @param bizCustomerWarehouse 仓库 + * @return 仓库集合 + */ + public List selectBizCustomerWarehouseList(BizCustomerWarehouse bizCustomerWarehouse); + + /** + * 新增仓库 + * + * @param bizCustomerWarehouse 仓库 + * @return 结果 + */ + public int insertBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse); + + /** + * 修改仓库 + * + * @param bizCustomerWarehouse 仓库 + * @return 结果 + */ + public int updateBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse); + + /** + * 删除仓库 + * + * @param id 仓库主键 + * @return 结果 + */ + public int deleteBizCustomerWarehouseById(Long id); + + /** + * 批量删除仓库 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizCustomerWarehouseByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizDriverMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizDriverMapper.java new file mode 100644 index 0000000..342a945 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizDriverMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizDriver; + +/** + * 司机Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizDriverMapper +{ + /** + * 查询司机 + * + * @param id 司机主键 + * @return 司机 + */ + public BizDriver selectBizDriverById(Long id); + + /** + * 查询司机列表 + * + * @param bizDriver 司机 + * @return 司机集合 + */ + public List selectBizDriverList(BizDriver bizDriver); + + /** + * 新增司机 + * + * @param bizDriver 司机 + * @return 结果 + */ + public int insertBizDriver(BizDriver bizDriver); + + /** + * 修改司机 + * + * @param bizDriver 司机 + * @return 结果 + */ + public int updateBizDriver(BizDriver bizDriver); + + /** + * 删除司机 + * + * @param id 司机主键 + * @return 结果 + */ + public int deleteBizDriverById(Long id); + + /** + * 批量删除司机 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizDriverByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizOrderMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizOrderMapper.java new file mode 100644 index 0000000..79fa598 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizOrderMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizOrder; + +/** + * 订单Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizOrderMapper +{ + /** + * 查询订单 + * + * @param id 订单主键 + * @return 订单 + */ + public BizOrder selectBizOrderById(Long id); + + /** + * 查询订单列表 + * + * @param bizOrder 订单 + * @return 订单集合 + */ + public List selectBizOrderList(BizOrder bizOrder); + + /** + * 新增订单 + * + * @param bizOrder 订单 + * @return 结果 + */ + public int insertBizOrder(BizOrder bizOrder); + + /** + * 修改订单 + * + * @param bizOrder 订单 + * @return 结果 + */ + public int updateBizOrder(BizOrder bizOrder); + + /** + * 删除订单 + * + * @param id 订单主键 + * @return 结果 + */ + public int deleteBizOrderById(Long id); + + /** + * 批量删除订单 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizOrderByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizOrderSubMapper.java b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizOrderSubMapper.java new file mode 100644 index 0000000..7d0ca7f --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/mapper/BizOrderSubMapper.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.mapper; + +import java.util.List; +import com.cpxt.biz.domain.BizOrderSub; + +/** + * 订单子单Mapper接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface BizOrderSubMapper +{ + /** + * 查询订单子单 + * + * @param id 订单子单主键 + * @return 订单子单 + */ + public BizOrderSub selectBizOrderSubById(Long id); + + /** + * 查询订单子单列表 + * + * @param bizOrderSub 订单子单 + * @return 订单子单集合 + */ + public List selectBizOrderSubList(BizOrderSub bizOrderSub); + + /** + * 新增订单子单 + * + * @param bizOrderSub 订单子单 + * @return 结果 + */ + public int insertBizOrderSub(BizOrderSub bizOrderSub); + + /** + * 修改订单子单 + * + * @param bizOrderSub 订单子单 + * @return 结果 + */ + public int updateBizOrderSub(BizOrderSub bizOrderSub); + + /** + * 删除订单子单 + * + * @param id 订单子单主键 + * @return 结果 + */ + public int deleteBizOrderSubById(Long id); + + /** + * 批量删除订单子单 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteBizOrderSubByIds(Long[] ids); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCarModelService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCarModelService.java new file mode 100644 index 0000000..f0006a3 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCarModelService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCarModel; + +/** + * 车型Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCarModelService +{ + /** + * 查询车型 + * + * @param id 车型主键 + * @return 车型 + */ + public BizCarModel selectBizCarModelById(Long id); + + /** + * 查询车型列表 + * + * @param bizCarModel 车型 + * @return 车型集合 + */ + public List selectBizCarModelList(BizCarModel bizCarModel); + + /** + * 新增车型 + * + * @param bizCarModel 车型 + * @return 结果 + */ + public int insertBizCarModel(BizCarModel bizCarModel); + + /** + * 修改车型 + * + * @param bizCarModel 车型 + * @return 结果 + */ + public int updateBizCarModel(BizCarModel bizCarModel); + + /** + * 批量删除车型 + * + * @param ids 需要删除的车型主键集合 + * @return 结果 + */ + public int deleteBizCarModelByIds(Long[] ids); + + /** + * 删除车型信息 + * + * @param id 车型主键 + * @return 结果 + */ + public int deleteBizCarModelById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCarService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCarService.java new file mode 100644 index 0000000..99f163c --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCarService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCar; + +/** + * 车辆Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCarService +{ + /** + * 查询车辆 + * + * @param id 车辆主键 + * @return 车辆 + */ + public BizCar selectBizCarById(Long id); + + /** + * 查询车辆列表 + * + * @param bizCar 车辆 + * @return 车辆集合 + */ + public List selectBizCarList(BizCar bizCar); + + /** + * 新增车辆 + * + * @param bizCar 车辆 + * @return 结果 + */ + public int insertBizCar(BizCar bizCar); + + /** + * 修改车辆 + * + * @param bizCar 车辆 + * @return 结果 + */ + public int updateBizCar(BizCar bizCar); + + /** + * 批量删除车辆 + * + * @param ids 需要删除的车辆主键集合 + * @return 结果 + */ + public int deleteBizCarByIds(Long[] ids); + + /** + * 删除车辆信息 + * + * @param id 车辆主键 + * @return 结果 + */ + public int deleteBizCarById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerRouteService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerRouteService.java new file mode 100644 index 0000000..f9c0324 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerRouteService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerRoute; + +/** + * 路线Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCustomerRouteService +{ + /** + * 查询路线 + * + * @param id 路线主键 + * @return 路线 + */ + public BizCustomerRoute selectBizCustomerRouteById(Long id); + + /** + * 查询路线列表 + * + * @param bizCustomerRoute 路线 + * @return 路线集合 + */ + public List selectBizCustomerRouteList(BizCustomerRoute bizCustomerRoute); + + /** + * 新增路线 + * + * @param bizCustomerRoute 路线 + * @return 结果 + */ + public int insertBizCustomerRoute(BizCustomerRoute bizCustomerRoute); + + /** + * 修改路线 + * + * @param bizCustomerRoute 路线 + * @return 结果 + */ + public int updateBizCustomerRoute(BizCustomerRoute bizCustomerRoute); + + /** + * 批量删除路线 + * + * @param ids 需要删除的路线主键集合 + * @return 结果 + */ + public int deleteBizCustomerRouteByIds(Long[] ids); + + /** + * 删除路线信息 + * + * @param id 路线主键 + * @return 结果 + */ + public int deleteBizCustomerRouteById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerRouteShopService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerRouteShopService.java new file mode 100644 index 0000000..cd6712d --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerRouteShopService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerRouteShop; + +/** + * 路线店铺关联Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCustomerRouteShopService +{ + /** + * 查询路线店铺关联 + * + * @param id 路线店铺关联主键 + * @return 路线店铺关联 + */ + public BizCustomerRouteShop selectBizCustomerRouteShopById(Long id); + + /** + * 查询路线店铺关联列表 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 路线店铺关联集合 + */ + public List selectBizCustomerRouteShopList(BizCustomerRouteShop bizCustomerRouteShop); + + /** + * 新增路线店铺关联 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 结果 + */ + public int insertBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop); + + /** + * 修改路线店铺关联 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 结果 + */ + public int updateBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop); + + /** + * 批量删除路线店铺关联 + * + * @param ids 需要删除的路线店铺关联主键集合 + * @return 结果 + */ + public int deleteBizCustomerRouteShopByIds(Long[] ids); + + /** + * 删除路线店铺关联信息 + * + * @param id 路线店铺关联主键 + * @return 结果 + */ + public int deleteBizCustomerRouteShopById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerService.java new file mode 100644 index 0000000..d227e16 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomer; + +/** + * 客户Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCustomerService +{ + /** + * 查询客户 + * + * @param id 客户主键 + * @return 客户 + */ + public BizCustomer selectBizCustomerById(Long id); + + /** + * 查询客户列表 + * + * @param bizCustomer 客户 + * @return 客户集合 + */ + public List selectBizCustomerList(BizCustomer bizCustomer); + + /** + * 新增客户 + * + * @param bizCustomer 客户 + * @return 结果 + */ + public int insertBizCustomer(BizCustomer bizCustomer); + + /** + * 修改客户 + * + * @param bizCustomer 客户 + * @return 结果 + */ + public int updateBizCustomer(BizCustomer bizCustomer); + + /** + * 批量删除客户 + * + * @param ids 需要删除的客户主键集合 + * @return 结果 + */ + public int deleteBizCustomerByIds(Long[] ids); + + /** + * 删除客户信息 + * + * @param id 客户主键 + * @return 结果 + */ + public int deleteBizCustomerById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerShopService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerShopService.java new file mode 100644 index 0000000..75238e9 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerShopService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerShop; + +/** + * 门店Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCustomerShopService +{ + /** + * 查询门店 + * + * @param id 门店主键 + * @return 门店 + */ + public BizCustomerShop selectBizCustomerShopById(Long id); + + /** + * 查询门店列表 + * + * @param bizCustomerShop 门店 + * @return 门店集合 + */ + public List selectBizCustomerShopList(BizCustomerShop bizCustomerShop); + + /** + * 新增门店 + * + * @param bizCustomerShop 门店 + * @return 结果 + */ + public int insertBizCustomerShop(BizCustomerShop bizCustomerShop); + + /** + * 修改门店 + * + * @param bizCustomerShop 门店 + * @return 结果 + */ + public int updateBizCustomerShop(BizCustomerShop bizCustomerShop); + + /** + * 批量删除门店 + * + * @param ids 需要删除的门店主键集合 + * @return 结果 + */ + public int deleteBizCustomerShopByIds(Long[] ids); + + /** + * 删除门店信息 + * + * @param id 门店主键 + * @return 结果 + */ + public int deleteBizCustomerShopById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerUserService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerUserService.java new file mode 100644 index 0000000..6584a2d --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerUserService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerUser; + +/** + * 用户Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCustomerUserService +{ + /** + * 查询用户 + * + * @param id 用户主键 + * @return 用户 + */ + public BizCustomerUser selectBizCustomerUserById(Long id); + + /** + * 查询用户列表 + * + * @param bizCustomerUser 用户 + * @return 用户集合 + */ + public List selectBizCustomerUserList(BizCustomerUser bizCustomerUser); + + /** + * 新增用户 + * + * @param bizCustomerUser 用户 + * @return 结果 + */ + public int insertBizCustomerUser(BizCustomerUser bizCustomerUser); + + /** + * 修改用户 + * + * @param bizCustomerUser 用户 + * @return 结果 + */ + public int updateBizCustomerUser(BizCustomerUser bizCustomerUser); + + /** + * 批量删除用户 + * + * @param ids 需要删除的用户主键集合 + * @return 结果 + */ + public int deleteBizCustomerUserByIds(Long[] ids); + + /** + * 删除用户信息 + * + * @param id 用户主键 + * @return 结果 + */ + public int deleteBizCustomerUserById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerWarehouseService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerWarehouseService.java new file mode 100644 index 0000000..d94529f --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizCustomerWarehouseService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizCustomerWarehouse; + +/** + * 仓库Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizCustomerWarehouseService +{ + /** + * 查询仓库 + * + * @param id 仓库主键 + * @return 仓库 + */ + public BizCustomerWarehouse selectBizCustomerWarehouseById(Long id); + + /** + * 查询仓库列表 + * + * @param bizCustomerWarehouse 仓库 + * @return 仓库集合 + */ + public List selectBizCustomerWarehouseList(BizCustomerWarehouse bizCustomerWarehouse); + + /** + * 新增仓库 + * + * @param bizCustomerWarehouse 仓库 + * @return 结果 + */ + public int insertBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse); + + /** + * 修改仓库 + * + * @param bizCustomerWarehouse 仓库 + * @return 结果 + */ + public int updateBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse); + + /** + * 批量删除仓库 + * + * @param ids 需要删除的仓库主键集合 + * @return 结果 + */ + public int deleteBizCustomerWarehouseByIds(Long[] ids); + + /** + * 删除仓库信息 + * + * @param id 仓库主键 + * @return 结果 + */ + public int deleteBizCustomerWarehouseById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizDriverService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizDriverService.java new file mode 100644 index 0000000..304b0c0 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizDriverService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizDriver; + +/** + * 司机Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizDriverService +{ + /** + * 查询司机 + * + * @param id 司机主键 + * @return 司机 + */ + public BizDriver selectBizDriverById(Long id); + + /** + * 查询司机列表 + * + * @param bizDriver 司机 + * @return 司机集合 + */ + public List selectBizDriverList(BizDriver bizDriver); + + /** + * 新增司机 + * + * @param bizDriver 司机 + * @return 结果 + */ + public int insertBizDriver(BizDriver bizDriver); + + /** + * 修改司机 + * + * @param bizDriver 司机 + * @return 结果 + */ + public int updateBizDriver(BizDriver bizDriver); + + /** + * 批量删除司机 + * + * @param ids 需要删除的司机主键集合 + * @return 结果 + */ + public int deleteBizDriverByIds(Long[] ids); + + /** + * 删除司机信息 + * + * @param id 司机主键 + * @return 结果 + */ + public int deleteBizDriverById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizOrderService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizOrderService.java new file mode 100644 index 0000000..b0e8ab2 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizOrderService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizOrder; + +/** + * 订单Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizOrderService +{ + /** + * 查询订单 + * + * @param id 订单主键 + * @return 订单 + */ + public BizOrder selectBizOrderById(Long id); + + /** + * 查询订单列表 + * + * @param bizOrder 订单 + * @return 订单集合 + */ + public List selectBizOrderList(BizOrder bizOrder); + + /** + * 新增订单 + * + * @param bizOrder 订单 + * @return 结果 + */ + public int insertBizOrder(BizOrder bizOrder); + + /** + * 修改订单 + * + * @param bizOrder 订单 + * @return 结果 + */ + public int updateBizOrder(BizOrder bizOrder); + + /** + * 批量删除订单 + * + * @param ids 需要删除的订单主键集合 + * @return 结果 + */ + public int deleteBizOrderByIds(Long[] ids); + + /** + * 删除订单信息 + * + * @param id 订单主键 + * @return 结果 + */ + public int deleteBizOrderById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/IBizOrderSubService.java b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizOrderSubService.java new file mode 100644 index 0000000..d2eef69 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/IBizOrderSubService.java @@ -0,0 +1,61 @@ +package com.cpxt.biz.service; + +import java.util.List; +import com.cpxt.biz.domain.BizOrderSub; + +/** + * 订单子单Service接口 + * + * @author YIN + * @date 2024-12-16 + */ +public interface IBizOrderSubService +{ + /** + * 查询订单子单 + * + * @param id 订单子单主键 + * @return 订单子单 + */ + public BizOrderSub selectBizOrderSubById(Long id); + + /** + * 查询订单子单列表 + * + * @param bizOrderSub 订单子单 + * @return 订单子单集合 + */ + public List selectBizOrderSubList(BizOrderSub bizOrderSub); + + /** + * 新增订单子单 + * + * @param bizOrderSub 订单子单 + * @return 结果 + */ + public int insertBizOrderSub(BizOrderSub bizOrderSub); + + /** + * 修改订单子单 + * + * @param bizOrderSub 订单子单 + * @return 结果 + */ + public int updateBizOrderSub(BizOrderSub bizOrderSub); + + /** + * 批量删除订单子单 + * + * @param ids 需要删除的订单子单主键集合 + * @return 结果 + */ + public int deleteBizOrderSubByIds(Long[] ids); + + /** + * 删除订单子单信息 + * + * @param id 订单子单主键 + * @return 结果 + */ + public int deleteBizOrderSubById(Long id); +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCarModelServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCarModelServiceImpl.java new file mode 100644 index 0000000..951c75d --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCarModelServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCarModelMapper; +import com.cpxt.biz.domain.BizCarModel; +import com.cpxt.biz.service.IBizCarModelService; + +/** + * 车型Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCarModelServiceImpl implements IBizCarModelService +{ + @Autowired + private BizCarModelMapper bizCarModelMapper; + + /** + * 查询车型 + * + * @param id 车型主键 + * @return 车型 + */ + @Override + public BizCarModel selectBizCarModelById(Long id) + { + return bizCarModelMapper.selectBizCarModelById(id); + } + + /** + * 查询车型列表 + * + * @param bizCarModel 车型 + * @return 车型 + */ + @Override + public List selectBizCarModelList(BizCarModel bizCarModel) + { + return bizCarModelMapper.selectBizCarModelList(bizCarModel); + } + + /** + * 新增车型 + * + * @param bizCarModel 车型 + * @return 结果 + */ + @Override + public int insertBizCarModel(BizCarModel bizCarModel) + { + bizCarModel.setCreateTime(DateUtils.getNowDate()); + return bizCarModelMapper.insertBizCarModel(bizCarModel); + } + + /** + * 修改车型 + * + * @param bizCarModel 车型 + * @return 结果 + */ + @Override + public int updateBizCarModel(BizCarModel bizCarModel) + { + bizCarModel.setUpdateTime(DateUtils.getNowDate()); + return bizCarModelMapper.updateBizCarModel(bizCarModel); + } + + /** + * 批量删除车型 + * + * @param ids 需要删除的车型主键 + * @return 结果 + */ + @Override + public int deleteBizCarModelByIds(Long[] ids) + { + return bizCarModelMapper.deleteBizCarModelByIds(ids); + } + + /** + * 删除车型信息 + * + * @param id 车型主键 + * @return 结果 + */ + @Override + public int deleteBizCarModelById(Long id) + { + return bizCarModelMapper.deleteBizCarModelById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCarServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCarServiceImpl.java new file mode 100644 index 0000000..5cdb76d --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCarServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCarMapper; +import com.cpxt.biz.domain.BizCar; +import com.cpxt.biz.service.IBizCarService; + +/** + * 车辆Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCarServiceImpl implements IBizCarService +{ + @Autowired + private BizCarMapper bizCarMapper; + + /** + * 查询车辆 + * + * @param id 车辆主键 + * @return 车辆 + */ + @Override + public BizCar selectBizCarById(Long id) + { + return bizCarMapper.selectBizCarById(id); + } + + /** + * 查询车辆列表 + * + * @param bizCar 车辆 + * @return 车辆 + */ + @Override + public List selectBizCarList(BizCar bizCar) + { + return bizCarMapper.selectBizCarList(bizCar); + } + + /** + * 新增车辆 + * + * @param bizCar 车辆 + * @return 结果 + */ + @Override + public int insertBizCar(BizCar bizCar) + { + bizCar.setCreateTime(DateUtils.getNowDate()); + return bizCarMapper.insertBizCar(bizCar); + } + + /** + * 修改车辆 + * + * @param bizCar 车辆 + * @return 结果 + */ + @Override + public int updateBizCar(BizCar bizCar) + { + bizCar.setUpdateTime(DateUtils.getNowDate()); + return bizCarMapper.updateBizCar(bizCar); + } + + /** + * 批量删除车辆 + * + * @param ids 需要删除的车辆主键 + * @return 结果 + */ + @Override + public int deleteBizCarByIds(Long[] ids) + { + return bizCarMapper.deleteBizCarByIds(ids); + } + + /** + * 删除车辆信息 + * + * @param id 车辆主键 + * @return 结果 + */ + @Override + public int deleteBizCarById(Long id) + { + return bizCarMapper.deleteBizCarById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerRouteServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerRouteServiceImpl.java new file mode 100644 index 0000000..263d7ea --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerRouteServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCustomerRouteMapper; +import com.cpxt.biz.domain.BizCustomerRoute; +import com.cpxt.biz.service.IBizCustomerRouteService; + +/** + * 路线Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCustomerRouteServiceImpl implements IBizCustomerRouteService +{ + @Autowired + private BizCustomerRouteMapper bizCustomerRouteMapper; + + /** + * 查询路线 + * + * @param id 路线主键 + * @return 路线 + */ + @Override + public BizCustomerRoute selectBizCustomerRouteById(Long id) + { + return bizCustomerRouteMapper.selectBizCustomerRouteById(id); + } + + /** + * 查询路线列表 + * + * @param bizCustomerRoute 路线 + * @return 路线 + */ + @Override + public List selectBizCustomerRouteList(BizCustomerRoute bizCustomerRoute) + { + return bizCustomerRouteMapper.selectBizCustomerRouteList(bizCustomerRoute); + } + + /** + * 新增路线 + * + * @param bizCustomerRoute 路线 + * @return 结果 + */ + @Override + public int insertBizCustomerRoute(BizCustomerRoute bizCustomerRoute) + { + bizCustomerRoute.setCreateTime(DateUtils.getNowDate()); + return bizCustomerRouteMapper.insertBizCustomerRoute(bizCustomerRoute); + } + + /** + * 修改路线 + * + * @param bizCustomerRoute 路线 + * @return 结果 + */ + @Override + public int updateBizCustomerRoute(BizCustomerRoute bizCustomerRoute) + { + bizCustomerRoute.setUpdateTime(DateUtils.getNowDate()); + return bizCustomerRouteMapper.updateBizCustomerRoute(bizCustomerRoute); + } + + /** + * 批量删除路线 + * + * @param ids 需要删除的路线主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerRouteByIds(Long[] ids) + { + return bizCustomerRouteMapper.deleteBizCustomerRouteByIds(ids); + } + + /** + * 删除路线信息 + * + * @param id 路线主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerRouteById(Long id) + { + return bizCustomerRouteMapper.deleteBizCustomerRouteById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerRouteShopServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerRouteShopServiceImpl.java new file mode 100644 index 0000000..ea686a0 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerRouteShopServiceImpl.java @@ -0,0 +1,93 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCustomerRouteShopMapper; +import com.cpxt.biz.domain.BizCustomerRouteShop; +import com.cpxt.biz.service.IBizCustomerRouteShopService; + +/** + * 路线店铺关联Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCustomerRouteShopServiceImpl implements IBizCustomerRouteShopService +{ + @Autowired + private BizCustomerRouteShopMapper bizCustomerRouteShopMapper; + + /** + * 查询路线店铺关联 + * + * @param id 路线店铺关联主键 + * @return 路线店铺关联 + */ + @Override + public BizCustomerRouteShop selectBizCustomerRouteShopById(Long id) + { + return bizCustomerRouteShopMapper.selectBizCustomerRouteShopById(id); + } + + /** + * 查询路线店铺关联列表 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 路线店铺关联 + */ + @Override + public List selectBizCustomerRouteShopList(BizCustomerRouteShop bizCustomerRouteShop) + { + return bizCustomerRouteShopMapper.selectBizCustomerRouteShopList(bizCustomerRouteShop); + } + + /** + * 新增路线店铺关联 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 结果 + */ + @Override + public int insertBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop) + { + return bizCustomerRouteShopMapper.insertBizCustomerRouteShop(bizCustomerRouteShop); + } + + /** + * 修改路线店铺关联 + * + * @param bizCustomerRouteShop 路线店铺关联 + * @return 结果 + */ + @Override + public int updateBizCustomerRouteShop(BizCustomerRouteShop bizCustomerRouteShop) + { + return bizCustomerRouteShopMapper.updateBizCustomerRouteShop(bizCustomerRouteShop); + } + + /** + * 批量删除路线店铺关联 + * + * @param ids 需要删除的路线店铺关联主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerRouteShopByIds(Long[] ids) + { + return bizCustomerRouteShopMapper.deleteBizCustomerRouteShopByIds(ids); + } + + /** + * 删除路线店铺关联信息 + * + * @param id 路线店铺关联主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerRouteShopById(Long id) + { + return bizCustomerRouteShopMapper.deleteBizCustomerRouteShopById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerServiceImpl.java new file mode 100644 index 0000000..64eeb5c --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCustomerMapper; +import com.cpxt.biz.domain.BizCustomer; +import com.cpxt.biz.service.IBizCustomerService; + +/** + * 客户Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCustomerServiceImpl implements IBizCustomerService +{ + @Autowired + private BizCustomerMapper bizCustomerMapper; + + /** + * 查询客户 + * + * @param id 客户主键 + * @return 客户 + */ + @Override + public BizCustomer selectBizCustomerById(Long id) + { + return bizCustomerMapper.selectBizCustomerById(id); + } + + /** + * 查询客户列表 + * + * @param bizCustomer 客户 + * @return 客户 + */ + @Override + public List selectBizCustomerList(BizCustomer bizCustomer) + { + return bizCustomerMapper.selectBizCustomerList(bizCustomer); + } + + /** + * 新增客户 + * + * @param bizCustomer 客户 + * @return 结果 + */ + @Override + public int insertBizCustomer(BizCustomer bizCustomer) + { + bizCustomer.setCreateTime(DateUtils.getNowDate()); + return bizCustomerMapper.insertBizCustomer(bizCustomer); + } + + /** + * 修改客户 + * + * @param bizCustomer 客户 + * @return 结果 + */ + @Override + public int updateBizCustomer(BizCustomer bizCustomer) + { + bizCustomer.setUpdateTime(DateUtils.getNowDate()); + return bizCustomerMapper.updateBizCustomer(bizCustomer); + } + + /** + * 批量删除客户 + * + * @param ids 需要删除的客户主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerByIds(Long[] ids) + { + return bizCustomerMapper.deleteBizCustomerByIds(ids); + } + + /** + * 删除客户信息 + * + * @param id 客户主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerById(Long id) + { + return bizCustomerMapper.deleteBizCustomerById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerShopServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerShopServiceImpl.java new file mode 100644 index 0000000..3be3570 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerShopServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCustomerShopMapper; +import com.cpxt.biz.domain.BizCustomerShop; +import com.cpxt.biz.service.IBizCustomerShopService; + +/** + * 门店Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCustomerShopServiceImpl implements IBizCustomerShopService +{ + @Autowired + private BizCustomerShopMapper bizCustomerShopMapper; + + /** + * 查询门店 + * + * @param id 门店主键 + * @return 门店 + */ + @Override + public BizCustomerShop selectBizCustomerShopById(Long id) + { + return bizCustomerShopMapper.selectBizCustomerShopById(id); + } + + /** + * 查询门店列表 + * + * @param bizCustomerShop 门店 + * @return 门店 + */ + @Override + public List selectBizCustomerShopList(BizCustomerShop bizCustomerShop) + { + return bizCustomerShopMapper.selectBizCustomerShopList(bizCustomerShop); + } + + /** + * 新增门店 + * + * @param bizCustomerShop 门店 + * @return 结果 + */ + @Override + public int insertBizCustomerShop(BizCustomerShop bizCustomerShop) + { + bizCustomerShop.setCreateTime(DateUtils.getNowDate()); + return bizCustomerShopMapper.insertBizCustomerShop(bizCustomerShop); + } + + /** + * 修改门店 + * + * @param bizCustomerShop 门店 + * @return 结果 + */ + @Override + public int updateBizCustomerShop(BizCustomerShop bizCustomerShop) + { + bizCustomerShop.setUpdateTime(DateUtils.getNowDate()); + return bizCustomerShopMapper.updateBizCustomerShop(bizCustomerShop); + } + + /** + * 批量删除门店 + * + * @param ids 需要删除的门店主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerShopByIds(Long[] ids) + { + return bizCustomerShopMapper.deleteBizCustomerShopByIds(ids); + } + + /** + * 删除门店信息 + * + * @param id 门店主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerShopById(Long id) + { + return bizCustomerShopMapper.deleteBizCustomerShopById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerUserServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerUserServiceImpl.java new file mode 100644 index 0000000..9cb551a --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerUserServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCustomerUserMapper; +import com.cpxt.biz.domain.BizCustomerUser; +import com.cpxt.biz.service.IBizCustomerUserService; + +/** + * 用户Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCustomerUserServiceImpl implements IBizCustomerUserService +{ + @Autowired + private BizCustomerUserMapper bizCustomerUserMapper; + + /** + * 查询用户 + * + * @param id 用户主键 + * @return 用户 + */ + @Override + public BizCustomerUser selectBizCustomerUserById(Long id) + { + return bizCustomerUserMapper.selectBizCustomerUserById(id); + } + + /** + * 查询用户列表 + * + * @param bizCustomerUser 用户 + * @return 用户 + */ + @Override + public List selectBizCustomerUserList(BizCustomerUser bizCustomerUser) + { + return bizCustomerUserMapper.selectBizCustomerUserList(bizCustomerUser); + } + + /** + * 新增用户 + * + * @param bizCustomerUser 用户 + * @return 结果 + */ + @Override + public int insertBizCustomerUser(BizCustomerUser bizCustomerUser) + { + bizCustomerUser.setCreateTime(DateUtils.getNowDate()); + return bizCustomerUserMapper.insertBizCustomerUser(bizCustomerUser); + } + + /** + * 修改用户 + * + * @param bizCustomerUser 用户 + * @return 结果 + */ + @Override + public int updateBizCustomerUser(BizCustomerUser bizCustomerUser) + { + bizCustomerUser.setUpdateTime(DateUtils.getNowDate()); + return bizCustomerUserMapper.updateBizCustomerUser(bizCustomerUser); + } + + /** + * 批量删除用户 + * + * @param ids 需要删除的用户主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerUserByIds(Long[] ids) + { + return bizCustomerUserMapper.deleteBizCustomerUserByIds(ids); + } + + /** + * 删除用户信息 + * + * @param id 用户主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerUserById(Long id) + { + return bizCustomerUserMapper.deleteBizCustomerUserById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerWarehouseServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerWarehouseServiceImpl.java new file mode 100644 index 0000000..fa4739b --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizCustomerWarehouseServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizCustomerWarehouseMapper; +import com.cpxt.biz.domain.BizCustomerWarehouse; +import com.cpxt.biz.service.IBizCustomerWarehouseService; + +/** + * 仓库Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizCustomerWarehouseServiceImpl implements IBizCustomerWarehouseService +{ + @Autowired + private BizCustomerWarehouseMapper bizCustomerWarehouseMapper; + + /** + * 查询仓库 + * + * @param id 仓库主键 + * @return 仓库 + */ + @Override + public BizCustomerWarehouse selectBizCustomerWarehouseById(Long id) + { + return bizCustomerWarehouseMapper.selectBizCustomerWarehouseById(id); + } + + /** + * 查询仓库列表 + * + * @param bizCustomerWarehouse 仓库 + * @return 仓库 + */ + @Override + public List selectBizCustomerWarehouseList(BizCustomerWarehouse bizCustomerWarehouse) + { + return bizCustomerWarehouseMapper.selectBizCustomerWarehouseList(bizCustomerWarehouse); + } + + /** + * 新增仓库 + * + * @param bizCustomerWarehouse 仓库 + * @return 结果 + */ + @Override + public int insertBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse) + { + bizCustomerWarehouse.setCreateTime(DateUtils.getNowDate()); + return bizCustomerWarehouseMapper.insertBizCustomerWarehouse(bizCustomerWarehouse); + } + + /** + * 修改仓库 + * + * @param bizCustomerWarehouse 仓库 + * @return 结果 + */ + @Override + public int updateBizCustomerWarehouse(BizCustomerWarehouse bizCustomerWarehouse) + { + bizCustomerWarehouse.setUpdateTime(DateUtils.getNowDate()); + return bizCustomerWarehouseMapper.updateBizCustomerWarehouse(bizCustomerWarehouse); + } + + /** + * 批量删除仓库 + * + * @param ids 需要删除的仓库主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerWarehouseByIds(Long[] ids) + { + return bizCustomerWarehouseMapper.deleteBizCustomerWarehouseByIds(ids); + } + + /** + * 删除仓库信息 + * + * @param id 仓库主键 + * @return 结果 + */ + @Override + public int deleteBizCustomerWarehouseById(Long id) + { + return bizCustomerWarehouseMapper.deleteBizCustomerWarehouseById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizDriverServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizDriverServiceImpl.java new file mode 100644 index 0000000..02a09da --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizDriverServiceImpl.java @@ -0,0 +1,96 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import com.cpxt.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizDriverMapper; +import com.cpxt.biz.domain.BizDriver; +import com.cpxt.biz.service.IBizDriverService; + +/** + * 司机Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizDriverServiceImpl implements IBizDriverService +{ + @Autowired + private BizDriverMapper bizDriverMapper; + + /** + * 查询司机 + * + * @param id 司机主键 + * @return 司机 + */ + @Override + public BizDriver selectBizDriverById(Long id) + { + return bizDriverMapper.selectBizDriverById(id); + } + + /** + * 查询司机列表 + * + * @param bizDriver 司机 + * @return 司机 + */ + @Override + public List selectBizDriverList(BizDriver bizDriver) + { + return bizDriverMapper.selectBizDriverList(bizDriver); + } + + /** + * 新增司机 + * + * @param bizDriver 司机 + * @return 结果 + */ + @Override + public int insertBizDriver(BizDriver bizDriver) + { + bizDriver.setCreateTime(DateUtils.getNowDate()); + return bizDriverMapper.insertBizDriver(bizDriver); + } + + /** + * 修改司机 + * + * @param bizDriver 司机 + * @return 结果 + */ + @Override + public int updateBizDriver(BizDriver bizDriver) + { + bizDriver.setUpdateTime(DateUtils.getNowDate()); + return bizDriverMapper.updateBizDriver(bizDriver); + } + + /** + * 批量删除司机 + * + * @param ids 需要删除的司机主键 + * @return 结果 + */ + @Override + public int deleteBizDriverByIds(Long[] ids) + { + return bizDriverMapper.deleteBizDriverByIds(ids); + } + + /** + * 删除司机信息 + * + * @param id 司机主键 + * @return 结果 + */ + @Override + public int deleteBizDriverById(Long id) + { + return bizDriverMapper.deleteBizDriverById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizOrderServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizOrderServiceImpl.java new file mode 100644 index 0000000..e62f927 --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizOrderServiceImpl.java @@ -0,0 +1,93 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizOrderMapper; +import com.cpxt.biz.domain.BizOrder; +import com.cpxt.biz.service.IBizOrderService; + +/** + * 订单Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizOrderServiceImpl implements IBizOrderService +{ + @Autowired + private BizOrderMapper bizOrderMapper; + + /** + * 查询订单 + * + * @param id 订单主键 + * @return 订单 + */ + @Override + public BizOrder selectBizOrderById(Long id) + { + return bizOrderMapper.selectBizOrderById(id); + } + + /** + * 查询订单列表 + * + * @param bizOrder 订单 + * @return 订单 + */ + @Override + public List selectBizOrderList(BizOrder bizOrder) + { + return bizOrderMapper.selectBizOrderList(bizOrder); + } + + /** + * 新增订单 + * + * @param bizOrder 订单 + * @return 结果 + */ + @Override + public int insertBizOrder(BizOrder bizOrder) + { + return bizOrderMapper.insertBizOrder(bizOrder); + } + + /** + * 修改订单 + * + * @param bizOrder 订单 + * @return 结果 + */ + @Override + public int updateBizOrder(BizOrder bizOrder) + { + return bizOrderMapper.updateBizOrder(bizOrder); + } + + /** + * 批量删除订单 + * + * @param ids 需要删除的订单主键 + * @return 结果 + */ + @Override + public int deleteBizOrderByIds(Long[] ids) + { + return bizOrderMapper.deleteBizOrderByIds(ids); + } + + /** + * 删除订单信息 + * + * @param id 订单主键 + * @return 结果 + */ + @Override + public int deleteBizOrderById(Long id) + { + return bizOrderMapper.deleteBizOrderById(id); + } +} diff --git a/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizOrderSubServiceImpl.java b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizOrderSubServiceImpl.java new file mode 100644 index 0000000..a3777ee --- /dev/null +++ b/cpxt-system/src/main/java/com/cpxt/biz/service/impl/BizOrderSubServiceImpl.java @@ -0,0 +1,93 @@ +package com.cpxt.biz.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.cpxt.biz.mapper.BizOrderSubMapper; +import com.cpxt.biz.domain.BizOrderSub; +import com.cpxt.biz.service.IBizOrderSubService; + +/** + * 订单子单Service业务层处理 + * + * @author YIN + * @date 2024-12-16 + */ +@Service +public class BizOrderSubServiceImpl implements IBizOrderSubService +{ + @Autowired + private BizOrderSubMapper bizOrderSubMapper; + + /** + * 查询订单子单 + * + * @param id 订单子单主键 + * @return 订单子单 + */ + @Override + public BizOrderSub selectBizOrderSubById(Long id) + { + return bizOrderSubMapper.selectBizOrderSubById(id); + } + + /** + * 查询订单子单列表 + * + * @param bizOrderSub 订单子单 + * @return 订单子单 + */ + @Override + public List selectBizOrderSubList(BizOrderSub bizOrderSub) + { + return bizOrderSubMapper.selectBizOrderSubList(bizOrderSub); + } + + /** + * 新增订单子单 + * + * @param bizOrderSub 订单子单 + * @return 结果 + */ + @Override + public int insertBizOrderSub(BizOrderSub bizOrderSub) + { + return bizOrderSubMapper.insertBizOrderSub(bizOrderSub); + } + + /** + * 修改订单子单 + * + * @param bizOrderSub 订单子单 + * @return 结果 + */ + @Override + public int updateBizOrderSub(BizOrderSub bizOrderSub) + { + return bizOrderSubMapper.updateBizOrderSub(bizOrderSub); + } + + /** + * 批量删除订单子单 + * + * @param ids 需要删除的订单子单主键 + * @return 结果 + */ + @Override + public int deleteBizOrderSubByIds(Long[] ids) + { + return bizOrderSubMapper.deleteBizOrderSubByIds(ids); + } + + /** + * 删除订单子单信息 + * + * @param id 订单子单主键 + * @return 结果 + */ + @Override + public int deleteBizOrderSubById(Long id) + { + return bizOrderSubMapper.deleteBizOrderSubById(id); + } +} diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCarMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCarMapper.xml new file mode 100644 index 0000000..bcaf0d4 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCarMapper.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + select id, model_id, model_name, car_type, car_no, vin, serial_no, status, create_time, update_time, remark from biz_car + + + + + + + + insert into biz_car + + model_id, + model_name, + car_type, + car_no, + vin, + serial_no, + status, + create_time, + update_time, + remark, + + + #{modelId}, + #{modelName}, + #{carType}, + #{carNo}, + #{vin}, + #{serialNo}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_car + + model_id = #{modelId}, + model_name = #{modelName}, + car_type = #{carType}, + car_no = #{carNo}, + vin = #{vin}, + serial_no = #{serialNo}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_car where id = #{id} + + + + delete from biz_car where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCarModelMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCarModelMapper.xml new file mode 100644 index 0000000..7343c15 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCarModelMapper.xml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + select id, name, brand, weight, volume, length, width, height, status, create_time, update_time, remark from biz_car_model + + + + + + + + insert into biz_car_model + + name, + brand, + weight, + volume, + length, + width, + height, + status, + create_time, + update_time, + remark, + + + #{name}, + #{brand}, + #{weight}, + #{volume}, + #{length}, + #{width}, + #{height}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_car_model + + name = #{name}, + brand = #{brand}, + weight = #{weight}, + volume = #{volume}, + length = #{length}, + width = #{width}, + height = #{height}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_car_model where id = #{id} + + + + delete from biz_car_model where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCustomerMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCustomerMapper.xml new file mode 100644 index 0000000..ac2c934 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCustomerMapper.xml @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + select id, name, full_name, linkman, linkphone, level, status, create_time, update_time, remark from biz_customer + + + + + + + + insert into biz_customer + + name, + full_name, + linkman, + linkphone, + level, + status, + create_time, + update_time, + remark, + + + #{name}, + #{fullName}, + #{linkman}, + #{linkphone}, + #{level}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_customer + + name = #{name}, + full_name = #{fullName}, + linkman = #{linkman}, + linkphone = #{linkphone}, + level = #{level}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_customer where id = #{id} + + + + delete from biz_customer where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCustomerRouteMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCustomerRouteMapper.xml new file mode 100644 index 0000000..4109535 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCustomerRouteMapper.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + select id, customer_id, customer_name, name, status, create_time, update_time, remark from biz_customer_route + + + + + + + + insert into biz_customer_route + + customer_id, + customer_name, + name, + status, + create_time, + update_time, + remark, + + + #{customerId}, + #{customerName}, + #{name}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_customer_route + + customer_id = #{customerId}, + customer_name = #{customerName}, + name = #{name}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_customer_route where id = #{id} + + + + delete from biz_customer_route where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCustomerRouteShopMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCustomerRouteShopMapper.xml new file mode 100644 index 0000000..b848a90 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCustomerRouteShopMapper.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + select id, route_id, shop_id, sort from biz_customer_route_shop + + + + + + + + insert into biz_customer_route_shop + + route_id, + shop_id, + sort, + + + #{routeId}, + #{shopId}, + #{sort}, + + + + + update biz_customer_route_shop + + route_id = #{routeId}, + shop_id = #{shopId}, + sort = #{sort}, + + where id = #{id} + + + + delete from biz_customer_route_shop where id = #{id} + + + + delete from biz_customer_route_shop where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCustomerShopMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCustomerShopMapper.xml new file mode 100644 index 0000000..fbb3ca9 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCustomerShopMapper.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + select id, customer_id, customer_name, name, linkman, linkphone, address, lng, lat, status, create_time, update_time, remark from biz_customer_shop + + + + + + + + insert into biz_customer_shop + + customer_id, + customer_name, + name, + linkman, + linkphone, + address, + lng, + lat, + status, + create_time, + update_time, + remark, + + + #{customerId}, + #{customerName}, + #{name}, + #{linkman}, + #{linkphone}, + #{address}, + #{lng}, + #{lat}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_customer_shop + + customer_id = #{customerId}, + customer_name = #{customerName}, + name = #{name}, + linkman = #{linkman}, + linkphone = #{linkphone}, + address = #{address}, + lng = #{lng}, + lat = #{lat}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_customer_shop where id = #{id} + + + + delete from biz_customer_shop where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCustomerUserMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCustomerUserMapper.xml new file mode 100644 index 0000000..ec7d21d --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCustomerUserMapper.xml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + select id, customer_id, customer_name, username, status, create_time, update_time, remark from biz_customer_user + + + + + + + + insert into biz_customer_user + + customer_id, + customer_name, + username, + status, + create_time, + update_time, + remark, + + + #{customerId}, + #{customerName}, + #{username}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_customer_user + + customer_id = #{customerId}, + customer_name = #{customerName}, + username = #{username}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_customer_user where id = #{id} + + + + delete from biz_customer_user where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizCustomerWarehouseMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizCustomerWarehouseMapper.xml new file mode 100644 index 0000000..11e0fb2 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizCustomerWarehouseMapper.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + select id, customer_id, customer_name, name, linkman, linkphone, address, lng, lat, status, create_time, update_time, remark from biz_customer_warehouse + + + + + + + + insert into biz_customer_warehouse + + customer_id, + customer_name, + name, + linkman, + linkphone, + address, + lng, + lat, + status, + create_time, + update_time, + remark, + + + #{customerId}, + #{customerName}, + #{name}, + #{linkman}, + #{linkphone}, + #{address}, + #{lng}, + #{lat}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_customer_warehouse + + customer_id = #{customerId}, + customer_name = #{customerName}, + name = #{name}, + linkman = #{linkman}, + linkphone = #{linkphone}, + address = #{address}, + lng = #{lng}, + lat = #{lat}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_customer_warehouse where id = #{id} + + + + delete from biz_customer_warehouse where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizDriverMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizDriverMapper.xml new file mode 100644 index 0000000..3dfd022 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizDriverMapper.xml @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + select id, dept_id, user_id, name, idcard, gender, phone, photo, idcard_photo_face, idcard_photo_ne, default_car_id, default_car_no, status, create_time, update_time, remark from biz_driver + + + + + + + + insert into biz_driver + + dept_id, + user_id, + name, + idcard, + gender, + phone, + photo, + idcard_photo_face, + idcard_photo_ne, + default_car_id, + default_car_no, + status, + create_time, + update_time, + remark, + + + #{deptId}, + #{userId}, + #{name}, + #{idcard}, + #{gender}, + #{phone}, + #{photo}, + #{idcardPhotoFace}, + #{idcardPhotoNe}, + #{defaultCarId}, + #{defaultCarNo}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + + + + + update biz_driver + + dept_id = #{deptId}, + user_id = #{userId}, + name = #{name}, + idcard = #{idcard}, + gender = #{gender}, + phone = #{phone}, + photo = #{photo}, + idcard_photo_face = #{idcardPhotoFace}, + idcard_photo_ne = #{idcardPhotoNe}, + default_car_id = #{defaultCarId}, + default_car_no = #{defaultCarNo}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from biz_driver where id = #{id} + + + + delete from biz_driver where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizOrderMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizOrderMapper.xml new file mode 100644 index 0000000..b2bbf98 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizOrderMapper.xml @@ -0,0 +1,348 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, order_sn, order_status, order_type, customer_id, customer_name, route_id, route_name, warehouse_id, warehouse_name, shop_id, shop_name, car_id, car_no, driver_id, driver_name, copilot_id, copilot_name, sender_name, sender_linkman, sender_phone, sender_address, sender_lng, sender_lat, sender_company, receiver_name, receiver_linkman, receiver_phone, receiver_address, receiver_lng, receiver_lat, receiver_company, goods_type, goods_name, weight, volume, length, width, height, total_quantity, insured, insured_money, insured_fee, order_fee, is_cancel, cancel_reason, cancel_time, pay_type, pay_mode, pay_id, pay_status, pay_time, status, create_time, update_time, remark, start_time, arrive_time, arrive_remark, arrive_lng, arrive_lat from biz_order + + + + + + + + insert into biz_order + + order_sn, + order_status, + order_type, + customer_id, + customer_name, + route_id, + route_name, + warehouse_id, + warehouse_name, + shop_id, + shop_name, + car_id, + car_no, + driver_id, + driver_name, + copilot_id, + copilot_name, + sender_name, + sender_linkman, + sender_phone, + sender_address, + sender_lng, + sender_lat, + sender_company, + receiver_name, + receiver_linkman, + receiver_phone, + receiver_address, + receiver_lng, + receiver_lat, + receiver_company, + goods_type, + goods_name, + weight, + volume, + length, + width, + height, + total_quantity, + insured, + insured_money, + insured_fee, + order_fee, + is_cancel, + cancel_reason, + cancel_time, + pay_type, + pay_mode, + pay_id, + pay_status, + pay_time, + status, + create_time, + update_time, + remark, + start_time, + arrive_time, + arrive_remark, + arrive_lng, + arrive_lat, + + + #{orderSn}, + #{orderStatus}, + #{orderType}, + #{customerId}, + #{customerName}, + #{routeId}, + #{routeName}, + #{warehouseId}, + #{warehouseName}, + #{shopId}, + #{shopName}, + #{carId}, + #{carNo}, + #{driverId}, + #{driverName}, + #{copilotId}, + #{copilotName}, + #{senderName}, + #{senderLinkman}, + #{senderPhone}, + #{senderAddress}, + #{senderLng}, + #{senderLat}, + #{senderCompany}, + #{receiverName}, + #{receiverLinkman}, + #{receiverPhone}, + #{receiverAddress}, + #{receiverLng}, + #{receiverLat}, + #{receiverCompany}, + #{goodsType}, + #{goodsName}, + #{weight}, + #{volume}, + #{length}, + #{width}, + #{height}, + #{totalQuantity}, + #{insured}, + #{insuredMoney}, + #{insuredFee}, + #{orderFee}, + #{isCancel}, + #{cancelReason}, + #{cancelTime}, + #{payType}, + #{payMode}, + #{payId}, + #{payStatus}, + #{payTime}, + #{status}, + #{createTime}, + #{updateTime}, + #{remark}, + #{startTime}, + #{arriveTime}, + #{arriveRemark}, + #{arriveLng}, + #{arriveLat}, + + + + + update biz_order + + order_sn = #{orderSn}, + order_status = #{orderStatus}, + order_type = #{orderType}, + customer_id = #{customerId}, + customer_name = #{customerName}, + route_id = #{routeId}, + route_name = #{routeName}, + warehouse_id = #{warehouseId}, + warehouse_name = #{warehouseName}, + shop_id = #{shopId}, + shop_name = #{shopName}, + car_id = #{carId}, + car_no = #{carNo}, + driver_id = #{driverId}, + driver_name = #{driverName}, + copilot_id = #{copilotId}, + copilot_name = #{copilotName}, + sender_name = #{senderName}, + sender_linkman = #{senderLinkman}, + sender_phone = #{senderPhone}, + sender_address = #{senderAddress}, + sender_lng = #{senderLng}, + sender_lat = #{senderLat}, + sender_company = #{senderCompany}, + receiver_name = #{receiverName}, + receiver_linkman = #{receiverLinkman}, + receiver_phone = #{receiverPhone}, + receiver_address = #{receiverAddress}, + receiver_lng = #{receiverLng}, + receiver_lat = #{receiverLat}, + receiver_company = #{receiverCompany}, + goods_type = #{goodsType}, + goods_name = #{goodsName}, + weight = #{weight}, + volume = #{volume}, + length = #{length}, + width = #{width}, + height = #{height}, + total_quantity = #{totalQuantity}, + insured = #{insured}, + insured_money = #{insuredMoney}, + insured_fee = #{insuredFee}, + order_fee = #{orderFee}, + is_cancel = #{isCancel}, + cancel_reason = #{cancelReason}, + cancel_time = #{cancelTime}, + pay_type = #{payType}, + pay_mode = #{payMode}, + pay_id = #{payId}, + pay_status = #{payStatus}, + pay_time = #{payTime}, + status = #{status}, + create_time = #{createTime}, + update_time = #{updateTime}, + remark = #{remark}, + start_time = #{startTime}, + arrive_time = #{arriveTime}, + arrive_remark = #{arriveRemark}, + arrive_lng = #{arriveLng}, + arrive_lat = #{arriveLat}, + + where id = #{id} + + + + delete from biz_order where id = #{id} + + + + delete from biz_order where id in + + #{id} + + + \ No newline at end of file diff --git a/cpxt-system/src/main/resources/mapper/biz/BizOrderSubMapper.xml b/cpxt-system/src/main/resources/mapper/biz/BizOrderSubMapper.xml new file mode 100644 index 0000000..ede0ce2 --- /dev/null +++ b/cpxt-system/src/main/resources/mapper/biz/BizOrderSubMapper.xml @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + select id, order_sn, sub_order_sn, weight, volume, length, width, height from biz_order_sub + + + + + + + + insert into biz_order_sub + + order_sn, + sub_order_sn, + weight, + volume, + length, + width, + height, + + + #{orderSn}, + #{subOrderSn}, + #{weight}, + #{volume}, + #{length}, + #{width}, + #{height}, + + + + + update biz_order_sub + + order_sn = #{orderSn}, + sub_order_sn = #{subOrderSn}, + weight = #{weight}, + volume = #{volume}, + length = #{length}, + width = #{width}, + height = #{height}, + + where id = #{id} + + + + delete from biz_order_sub where id = #{id} + + + + delete from biz_order_sub where id in + + #{id} + + + \ No newline at end of file