基础数据

master
YIN 2024-12-16 16:34:44 +08:00
parent 75cb6f4838
commit 2d6fa82838
67 changed files with 7043 additions and 2 deletions

View File

@ -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<BizCar> 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<BizCar> list = bizCarService.selectBizCarList(bizCar);
ExcelUtil<BizCar> util = new ExcelUtil<BizCar>(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));
}
}

View File

@ -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<BizCarModel> 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<BizCarModel> list = bizCarModelService.selectBizCarModelList(bizCarModel);
ExcelUtil<BizCarModel> util = new ExcelUtil<BizCarModel>(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));
}
}

View File

@ -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<BizCustomer> 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<BizCustomer> list = bizCustomerService.selectBizCustomerList(bizCustomer);
ExcelUtil<BizCustomer> util = new ExcelUtil<BizCustomer>(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));
}
}

View File

@ -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<BizCustomerRoute> 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<BizCustomerRoute> list = bizCustomerRouteService.selectBizCustomerRouteList(bizCustomerRoute);
ExcelUtil<BizCustomerRoute> util = new ExcelUtil<BizCustomerRoute>(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));
}
}

View File

@ -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<BizCustomerRouteShop> 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<BizCustomerRouteShop> list = bizCustomerRouteShopService.selectBizCustomerRouteShopList(bizCustomerRouteShop);
ExcelUtil<BizCustomerRouteShop> util = new ExcelUtil<BizCustomerRouteShop>(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));
}
}

View File

@ -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<BizCustomerShop> 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<BizCustomerShop> list = bizCustomerShopService.selectBizCustomerShopList(bizCustomerShop);
ExcelUtil<BizCustomerShop> util = new ExcelUtil<BizCustomerShop>(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));
}
}

View File

@ -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<BizCustomerUser> 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<BizCustomerUser> list = bizCustomerUserService.selectBizCustomerUserList(bizCustomerUser);
ExcelUtil<BizCustomerUser> util = new ExcelUtil<BizCustomerUser>(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));
}
}

View File

@ -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<BizCustomerWarehouse> 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<BizCustomerWarehouse> list = bizCustomerWarehouseService.selectBizCustomerWarehouseList(bizCustomerWarehouse);
ExcelUtil<BizCustomerWarehouse> util = new ExcelUtil<BizCustomerWarehouse>(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));
}
}

View File

@ -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<BizDriver> 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<BizDriver> list = bizDriverService.selectBizDriverList(bizDriver);
ExcelUtil<BizDriver> util = new ExcelUtil<BizDriver>(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));
}
}

View File

@ -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<BizOrder> 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<BizOrder> list = bizOrderService.selectBizOrderList(bizOrder);
ExcelUtil<BizOrder> util = new ExcelUtil<BizOrder>(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));
}
}

View File

@ -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<BizOrderSub> 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<BizOrderSub> list = bizOrderSubService.selectBizOrderSubList(bizOrderSub);
ExcelUtil<BizOrderSub> util = new ExcelUtil<BizOrderSub>(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));
}
}

View File

@ -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:
# 从数据源开关/默认关闭

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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<BizCar> 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);
}

View File

@ -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<BizCarModel> 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);
}

View File

@ -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<BizCustomer> 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);
}

View File

@ -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<BizCustomerRoute> 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);
}

View File

@ -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<BizCustomerRouteShop> 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);
}

View File

@ -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<BizCustomerShop> 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);
}

View File

@ -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<BizCustomerUser> 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);
}

View File

@ -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<BizCustomerWarehouse> 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);
}

View File

@ -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<BizDriver> 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);
}

View File

@ -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<BizOrder> 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);
}

View File

@ -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<BizOrderSub> 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);
}

View File

@ -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<BizCarModel> 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);
}

View File

@ -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<BizCar> 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);
}

View File

@ -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<BizCustomerRoute> 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);
}

View File

@ -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<BizCustomerRouteShop> 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);
}

View File

@ -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<BizCustomer> 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);
}

View File

@ -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<BizCustomerShop> 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);
}

View File

@ -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<BizCustomerUser> 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);
}

View File

@ -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<BizCustomerWarehouse> 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);
}

View File

@ -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<BizDriver> 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);
}

View File

@ -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<BizOrder> 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);
}

View File

@ -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<BizOrderSub> 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);
}

View File

@ -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<BizCarModel> 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);
}
}

View File

@ -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<BizCar> 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);
}
}

View File

@ -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<BizCustomerRoute> 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);
}
}

View File

@ -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<BizCustomerRouteShop> 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);
}
}

View File

@ -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<BizCustomer> 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);
}
}

View File

@ -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<BizCustomerShop> 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);
}
}

View File

@ -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<BizCustomerUser> 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);
}
}

View File

@ -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<BizCustomerWarehouse> 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);
}
}

View File

@ -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<BizDriver> 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);
}
}

View File

@ -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<BizOrder> 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);
}
}

View File

@ -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<BizOrderSub> 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);
}
}

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCarMapper">
<resultMap type="BizCar" id="BizCarResult">
<result property="id" column="id" />
<result property="modelId" column="model_id" />
<result property="modelName" column="model_name" />
<result property="carType" column="car_type" />
<result property="carNo" column="car_no" />
<result property="vin" column="vin" />
<result property="serialNo" column="serial_no" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCarVo">
select id, model_id, model_name, car_type, car_no, vin, serial_no, status, create_time, update_time, remark from biz_car
</sql>
<select id="selectBizCarList" parameterType="BizCar" resultMap="BizCarResult">
<include refid="selectBizCarVo"/>
<where>
<if test="modelId != null "> and model_id = #{modelId}</if>
<if test="modelName != null and modelName != ''"> and model_name like concat('%', #{modelName}, '%')</if>
<if test="carType != null and carType != ''"> and car_type = #{carType}</if>
<if test="carNo != null and carNo != ''"> and car_no = #{carNo}</if>
<if test="vin != null and vin != ''"> and vin = #{vin}</if>
<if test="serialNo != null and serialNo != ''"> and serial_no = #{serialNo}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCarById" parameterType="Long" resultMap="BizCarResult">
<include refid="selectBizCarVo"/>
where id = #{id}
</select>
<insert id="insertBizCar" parameterType="BizCar" useGeneratedKeys="true" keyProperty="id">
insert into biz_car
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="modelId != null">model_id,</if>
<if test="modelName != null">model_name,</if>
<if test="carType != null">car_type,</if>
<if test="carNo != null">car_no,</if>
<if test="vin != null">vin,</if>
<if test="serialNo != null">serial_no,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="modelId != null">#{modelId},</if>
<if test="modelName != null">#{modelName},</if>
<if test="carType != null">#{carType},</if>
<if test="carNo != null">#{carNo},</if>
<if test="vin != null">#{vin},</if>
<if test="serialNo != null">#{serialNo},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCar" parameterType="BizCar">
update biz_car
<trim prefix="SET" suffixOverrides=",">
<if test="modelId != null">model_id = #{modelId},</if>
<if test="modelName != null">model_name = #{modelName},</if>
<if test="carType != null">car_type = #{carType},</if>
<if test="carNo != null">car_no = #{carNo},</if>
<if test="vin != null">vin = #{vin},</if>
<if test="serialNo != null">serial_no = #{serialNo},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCarById" parameterType="Long">
delete from biz_car where id = #{id}
</delete>
<delete id="deleteBizCarByIds" parameterType="String">
delete from biz_car where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCarModelMapper">
<resultMap type="BizCarModel" id="BizCarModelResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="brand" column="brand" />
<result property="weight" column="weight" />
<result property="volume" column="volume" />
<result property="length" column="length" />
<result property="width" column="width" />
<result property="height" column="height" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCarModelVo">
select id, name, brand, weight, volume, length, width, height, status, create_time, update_time, remark from biz_car_model
</sql>
<select id="selectBizCarModelList" parameterType="BizCarModel" resultMap="BizCarModelResult">
<include refid="selectBizCarModelVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="brand != null and brand != ''"> and brand = #{brand}</if>
<if test="weight != null "> and weight = #{weight}</if>
<if test="volume != null "> and volume = #{volume}</if>
<if test="length != null "> and length = #{length}</if>
<if test="width != null "> and width = #{width}</if>
<if test="height != null "> and height = #{height}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCarModelById" parameterType="Long" resultMap="BizCarModelResult">
<include refid="selectBizCarModelVo"/>
where id = #{id}
</select>
<insert id="insertBizCarModel" parameterType="BizCarModel" useGeneratedKeys="true" keyProperty="id">
insert into biz_car_model
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="brand != null">brand,</if>
<if test="weight != null">weight,</if>
<if test="volume != null">volume,</if>
<if test="length != null">length,</if>
<if test="width != null">width,</if>
<if test="height != null">height,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="brand != null">#{brand},</if>
<if test="weight != null">#{weight},</if>
<if test="volume != null">#{volume},</if>
<if test="length != null">#{length},</if>
<if test="width != null">#{width},</if>
<if test="height != null">#{height},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCarModel" parameterType="BizCarModel">
update biz_car_model
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="brand != null">brand = #{brand},</if>
<if test="weight != null">weight = #{weight},</if>
<if test="volume != null">volume = #{volume},</if>
<if test="length != null">length = #{length},</if>
<if test="width != null">width = #{width},</if>
<if test="height != null">height = #{height},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCarModelById" parameterType="Long">
delete from biz_car_model where id = #{id}
</delete>
<delete id="deleteBizCarModelByIds" parameterType="String">
delete from biz_car_model where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCustomerMapper">
<resultMap type="BizCustomer" id="BizCustomerResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="fullName" column="full_name" />
<result property="linkman" column="linkman" />
<result property="linkphone" column="linkphone" />
<result property="level" column="level" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCustomerVo">
select id, name, full_name, linkman, linkphone, level, status, create_time, update_time, remark from biz_customer
</sql>
<select id="selectBizCustomerList" parameterType="BizCustomer" resultMap="BizCustomerResult">
<include refid="selectBizCustomerVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="fullName != null and fullName != ''"> and full_name like concat('%', #{fullName}, '%')</if>
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<if test="linkphone != null and linkphone != ''"> and linkphone = #{linkphone}</if>
<if test="level != null and level != ''"> and level = #{level}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCustomerById" parameterType="Long" resultMap="BizCustomerResult">
<include refid="selectBizCustomerVo"/>
where id = #{id}
</select>
<insert id="insertBizCustomer" parameterType="BizCustomer" useGeneratedKeys="true" keyProperty="id">
insert into biz_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="fullName != null">full_name,</if>
<if test="linkman != null">linkman,</if>
<if test="linkphone != null">linkphone,</if>
<if test="level != null">level,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="fullName != null">#{fullName},</if>
<if test="linkman != null">#{linkman},</if>
<if test="linkphone != null">#{linkphone},</if>
<if test="level != null">#{level},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCustomer" parameterType="BizCustomer">
update biz_customer
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="fullName != null">full_name = #{fullName},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="linkphone != null">linkphone = #{linkphone},</if>
<if test="level != null">level = #{level},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCustomerById" parameterType="Long">
delete from biz_customer where id = #{id}
</delete>
<delete id="deleteBizCustomerByIds" parameterType="String">
delete from biz_customer where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCustomerRouteMapper">
<resultMap type="BizCustomerRoute" id="BizCustomerRouteResult">
<result property="id" column="id" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="name" column="name" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCustomerRouteVo">
select id, customer_id, customer_name, name, status, create_time, update_time, remark from biz_customer_route
</sql>
<select id="selectBizCustomerRouteList" parameterType="BizCustomerRoute" resultMap="BizCustomerRouteResult">
<include refid="selectBizCustomerRouteVo"/>
<where>
<if test="customerId != null "> and customer_id = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCustomerRouteById" parameterType="Long" resultMap="BizCustomerRouteResult">
<include refid="selectBizCustomerRouteVo"/>
where id = #{id}
</select>
<insert id="insertBizCustomerRoute" parameterType="BizCustomerRoute" useGeneratedKeys="true" keyProperty="id">
insert into biz_customer_route
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">customer_id,</if>
<if test="customerName != null">customer_name,</if>
<if test="name != null">name,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="name != null">#{name},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCustomerRoute" parameterType="BizCustomerRoute">
update biz_customer_route
<trim prefix="SET" suffixOverrides=",">
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="name != null">name = #{name},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCustomerRouteById" parameterType="Long">
delete from biz_customer_route where id = #{id}
</delete>
<delete id="deleteBizCustomerRouteByIds" parameterType="String">
delete from biz_customer_route where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCustomerRouteShopMapper">
<resultMap type="BizCustomerRouteShop" id="BizCustomerRouteShopResult">
<result property="id" column="id" />
<result property="routeId" column="route_id" />
<result property="shopId" column="shop_id" />
<result property="sort" column="sort" />
</resultMap>
<sql id="selectBizCustomerRouteShopVo">
select id, route_id, shop_id, sort from biz_customer_route_shop
</sql>
<select id="selectBizCustomerRouteShopList" parameterType="BizCustomerRouteShop" resultMap="BizCustomerRouteShopResult">
<include refid="selectBizCustomerRouteShopVo"/>
<where>
<if test="routeId != null "> and route_id = #{routeId}</if>
<if test="shopId != null "> and shop_id = #{shopId}</if>
<if test="sort != null "> and sort = #{sort}</if>
</where>
</select>
<select id="selectBizCustomerRouteShopById" parameterType="Long" resultMap="BizCustomerRouteShopResult">
<include refid="selectBizCustomerRouteShopVo"/>
where id = #{id}
</select>
<insert id="insertBizCustomerRouteShop" parameterType="BizCustomerRouteShop" useGeneratedKeys="true" keyProperty="id">
insert into biz_customer_route_shop
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="routeId != null">route_id,</if>
<if test="shopId != null">shop_id,</if>
<if test="sort != null">sort,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="routeId != null">#{routeId},</if>
<if test="shopId != null">#{shopId},</if>
<if test="sort != null">#{sort},</if>
</trim>
</insert>
<update id="updateBizCustomerRouteShop" parameterType="BizCustomerRouteShop">
update biz_customer_route_shop
<trim prefix="SET" suffixOverrides=",">
<if test="routeId != null">route_id = #{routeId},</if>
<if test="shopId != null">shop_id = #{shopId},</if>
<if test="sort != null">sort = #{sort},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCustomerRouteShopById" parameterType="Long">
delete from biz_customer_route_shop where id = #{id}
</delete>
<delete id="deleteBizCustomerRouteShopByIds" parameterType="String">
delete from biz_customer_route_shop where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCustomerShopMapper">
<resultMap type="BizCustomerShop" id="BizCustomerShopResult">
<result property="id" column="id" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="name" column="name" />
<result property="linkman" column="linkman" />
<result property="linkphone" column="linkphone" />
<result property="address" column="address" />
<result property="lng" column="lng" />
<result property="lat" column="lat" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCustomerShopVo">
select id, customer_id, customer_name, name, linkman, linkphone, address, lng, lat, status, create_time, update_time, remark from biz_customer_shop
</sql>
<select id="selectBizCustomerShopList" parameterType="BizCustomerShop" resultMap="BizCustomerShopResult">
<include refid="selectBizCustomerShopVo"/>
<where>
<if test="customerId != null "> and customer_id = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<if test="linkphone != null and linkphone != ''"> and linkphone = #{linkphone}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="lng != null "> and lng = #{lng}</if>
<if test="lat != null "> and lat = #{lat}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCustomerShopById" parameterType="Long" resultMap="BizCustomerShopResult">
<include refid="selectBizCustomerShopVo"/>
where id = #{id}
</select>
<insert id="insertBizCustomerShop" parameterType="BizCustomerShop" useGeneratedKeys="true" keyProperty="id">
insert into biz_customer_shop
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">customer_id,</if>
<if test="customerName != null">customer_name,</if>
<if test="name != null">name,</if>
<if test="linkman != null">linkman,</if>
<if test="linkphone != null">linkphone,</if>
<if test="address != null">address,</if>
<if test="lng != null">lng,</if>
<if test="lat != null">lat,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="name != null">#{name},</if>
<if test="linkman != null">#{linkman},</if>
<if test="linkphone != null">#{linkphone},</if>
<if test="address != null">#{address},</if>
<if test="lng != null">#{lng},</if>
<if test="lat != null">#{lat},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCustomerShop" parameterType="BizCustomerShop">
update biz_customer_shop
<trim prefix="SET" suffixOverrides=",">
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="name != null">name = #{name},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="linkphone != null">linkphone = #{linkphone},</if>
<if test="address != null">address = #{address},</if>
<if test="lng != null">lng = #{lng},</if>
<if test="lat != null">lat = #{lat},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCustomerShopById" parameterType="Long">
delete from biz_customer_shop where id = #{id}
</delete>
<delete id="deleteBizCustomerShopByIds" parameterType="String">
delete from biz_customer_shop where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCustomerUserMapper">
<resultMap type="BizCustomerUser" id="BizCustomerUserResult">
<result property="id" column="id" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="username" column="username" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCustomerUserVo">
select id, customer_id, customer_name, username, status, create_time, update_time, remark from biz_customer_user
</sql>
<select id="selectBizCustomerUserList" parameterType="BizCustomerUser" resultMap="BizCustomerUserResult">
<include refid="selectBizCustomerUserVo"/>
<where>
<if test="customerId != null "> and customer_id = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="username != null and username != ''"> and username like concat('%', #{username}, '%')</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCustomerUserById" parameterType="Long" resultMap="BizCustomerUserResult">
<include refid="selectBizCustomerUserVo"/>
where id = #{id}
</select>
<insert id="insertBizCustomerUser" parameterType="BizCustomerUser" useGeneratedKeys="true" keyProperty="id">
insert into biz_customer_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">customer_id,</if>
<if test="customerName != null">customer_name,</if>
<if test="username != null">username,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="username != null">#{username},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCustomerUser" parameterType="BizCustomerUser">
update biz_customer_user
<trim prefix="SET" suffixOverrides=",">
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="username != null">username = #{username},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCustomerUserById" parameterType="Long">
delete from biz_customer_user where id = #{id}
</delete>
<delete id="deleteBizCustomerUserByIds" parameterType="String">
delete from biz_customer_user where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizCustomerWarehouseMapper">
<resultMap type="BizCustomerWarehouse" id="BizCustomerWarehouseResult">
<result property="id" column="id" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="name" column="name" />
<result property="linkman" column="linkman" />
<result property="linkphone" column="linkphone" />
<result property="address" column="address" />
<result property="lng" column="lng" />
<result property="lat" column="lat" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizCustomerWarehouseVo">
select id, customer_id, customer_name, name, linkman, linkphone, address, lng, lat, status, create_time, update_time, remark from biz_customer_warehouse
</sql>
<select id="selectBizCustomerWarehouseList" parameterType="BizCustomerWarehouse" resultMap="BizCustomerWarehouseResult">
<include refid="selectBizCustomerWarehouseVo"/>
<where>
<if test="customerId != null "> and customer_id = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="linkman != null and linkman != ''"> and linkman = #{linkman}</if>
<if test="linkphone != null and linkphone != ''"> and linkphone = #{linkphone}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="lng != null "> and lng = #{lng}</if>
<if test="lat != null "> and lat = #{lat}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizCustomerWarehouseById" parameterType="Long" resultMap="BizCustomerWarehouseResult">
<include refid="selectBizCustomerWarehouseVo"/>
where id = #{id}
</select>
<insert id="insertBizCustomerWarehouse" parameterType="BizCustomerWarehouse" useGeneratedKeys="true" keyProperty="id">
insert into biz_customer_warehouse
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerId != null">customer_id,</if>
<if test="customerName != null">customer_name,</if>
<if test="name != null">name,</if>
<if test="linkman != null">linkman,</if>
<if test="linkphone != null">linkphone,</if>
<if test="address != null">address,</if>
<if test="lng != null">lng,</if>
<if test="lat != null">lat,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="name != null">#{name},</if>
<if test="linkman != null">#{linkman},</if>
<if test="linkphone != null">#{linkphone},</if>
<if test="address != null">#{address},</if>
<if test="lng != null">#{lng},</if>
<if test="lat != null">#{lat},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizCustomerWarehouse" parameterType="BizCustomerWarehouse">
update biz_customer_warehouse
<trim prefix="SET" suffixOverrides=",">
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="name != null">name = #{name},</if>
<if test="linkman != null">linkman = #{linkman},</if>
<if test="linkphone != null">linkphone = #{linkphone},</if>
<if test="address != null">address = #{address},</if>
<if test="lng != null">lng = #{lng},</if>
<if test="lat != null">lat = #{lat},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizCustomerWarehouseById" parameterType="Long">
delete from biz_customer_warehouse where id = #{id}
</delete>
<delete id="deleteBizCustomerWarehouseByIds" parameterType="String">
delete from biz_customer_warehouse where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,123 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizDriverMapper">
<resultMap type="BizDriver" id="BizDriverResult">
<result property="id" column="id" />
<result property="deptId" column="dept_id" />
<result property="userId" column="user_id" />
<result property="name" column="name" />
<result property="idcard" column="idcard" />
<result property="gender" column="gender" />
<result property="phone" column="phone" />
<result property="photo" column="photo" />
<result property="idcardPhotoFace" column="idcard_photo_face" />
<result property="idcardPhotoNe" column="idcard_photo_ne" />
<result property="defaultCarId" column="default_car_id" />
<result property="defaultCarNo" column="default_car_no" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectBizDriverVo">
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
</sql>
<select id="selectBizDriverList" parameterType="BizDriver" resultMap="BizDriverResult">
<include refid="selectBizDriverVo"/>
<where>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="idcard != null and idcard != ''"> and idcard = #{idcard}</if>
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="photo != null and photo != ''"> and photo = #{photo}</if>
<if test="idcardPhotoFace != null and idcardPhotoFace != ''"> and idcard_photo_face = #{idcardPhotoFace}</if>
<if test="idcardPhotoNe != null and idcardPhotoNe != ''"> and idcard_photo_ne = #{idcardPhotoNe}</if>
<if test="defaultCarId != null "> and default_car_id = #{defaultCarId}</if>
<if test="defaultCarNo != null and defaultCarNo != ''"> and default_car_no = #{defaultCarNo}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectBizDriverById" parameterType="Long" resultMap="BizDriverResult">
<include refid="selectBizDriverVo"/>
where id = #{id}
</select>
<insert id="insertBizDriver" parameterType="BizDriver" useGeneratedKeys="true" keyProperty="id">
insert into biz_driver
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="deptId != null">dept_id,</if>
<if test="userId != null">user_id,</if>
<if test="name != null">name,</if>
<if test="idcard != null">idcard,</if>
<if test="gender != null">gender,</if>
<if test="phone != null">phone,</if>
<if test="photo != null">photo,</if>
<if test="idcardPhotoFace != null">idcard_photo_face,</if>
<if test="idcardPhotoNe != null">idcard_photo_ne,</if>
<if test="defaultCarId != null">default_car_id,</if>
<if test="defaultCarNo != null">default_car_no,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deptId != null">#{deptId},</if>
<if test="userId != null">#{userId},</if>
<if test="name != null">#{name},</if>
<if test="idcard != null">#{idcard},</if>
<if test="gender != null">#{gender},</if>
<if test="phone != null">#{phone},</if>
<if test="photo != null">#{photo},</if>
<if test="idcardPhotoFace != null">#{idcardPhotoFace},</if>
<if test="idcardPhotoNe != null">#{idcardPhotoNe},</if>
<if test="defaultCarId != null">#{defaultCarId},</if>
<if test="defaultCarNo != null">#{defaultCarNo},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateBizDriver" parameterType="BizDriver">
update biz_driver
<trim prefix="SET" suffixOverrides=",">
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="name != null">name = #{name},</if>
<if test="idcard != null">idcard = #{idcard},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="photo != null">photo = #{photo},</if>
<if test="idcardPhotoFace != null">idcard_photo_face = #{idcardPhotoFace},</if>
<if test="idcardPhotoNe != null">idcard_photo_ne = #{idcardPhotoNe},</if>
<if test="defaultCarId != null">default_car_id = #{defaultCarId},</if>
<if test="defaultCarNo != null">default_car_no = #{defaultCarNo},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizDriverById" parameterType="Long">
delete from biz_driver where id = #{id}
</delete>
<delete id="deleteBizDriverByIds" parameterType="String">
delete from biz_driver where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,348 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizOrderMapper">
<resultMap type="BizOrder" id="BizOrderResult">
<result property="id" column="id" />
<result property="orderSn" column="order_sn" />
<result property="orderStatus" column="order_status" />
<result property="orderType" column="order_type" />
<result property="customerId" column="customer_id" />
<result property="customerName" column="customer_name" />
<result property="routeId" column="route_id" />
<result property="routeName" column="route_name" />
<result property="warehouseId" column="warehouse_id" />
<result property="warehouseName" column="warehouse_name" />
<result property="shopId" column="shop_id" />
<result property="shopName" column="shop_name" />
<result property="carId" column="car_id" />
<result property="carNo" column="car_no" />
<result property="driverId" column="driver_id" />
<result property="driverName" column="driver_name" />
<result property="copilotId" column="copilot_id" />
<result property="copilotName" column="copilot_name" />
<result property="senderName" column="sender_name" />
<result property="senderLinkman" column="sender_linkman" />
<result property="senderPhone" column="sender_phone" />
<result property="senderAddress" column="sender_address" />
<result property="senderLng" column="sender_lng" />
<result property="senderLat" column="sender_lat" />
<result property="senderCompany" column="sender_company" />
<result property="receiverName" column="receiver_name" />
<result property="receiverLinkman" column="receiver_linkman" />
<result property="receiverPhone" column="receiver_phone" />
<result property="receiverAddress" column="receiver_address" />
<result property="receiverLng" column="receiver_lng" />
<result property="receiverLat" column="receiver_lat" />
<result property="receiverCompany" column="receiver_company" />
<result property="goodsType" column="goods_type" />
<result property="goodsName" column="goods_name" />
<result property="weight" column="weight" />
<result property="volume" column="volume" />
<result property="length" column="length" />
<result property="width" column="width" />
<result property="height" column="height" />
<result property="totalQuantity" column="total_quantity" />
<result property="insured" column="insured" />
<result property="insuredMoney" column="insured_money" />
<result property="insuredFee" column="insured_fee" />
<result property="orderFee" column="order_fee" />
<result property="isCancel" column="is_cancel" />
<result property="cancelReason" column="cancel_reason" />
<result property="cancelTime" column="cancel_time" />
<result property="payType" column="pay_type" />
<result property="payMode" column="pay_mode" />
<result property="payId" column="pay_id" />
<result property="payStatus" column="pay_status" />
<result property="payTime" column="pay_time" />
<result property="status" column="status" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
<result property="startTime" column="start_time" />
<result property="arriveTime" column="arrive_time" />
<result property="arriveRemark" column="arrive_remark" />
<result property="arriveLng" column="arrive_lng" />
<result property="arriveLat" column="arrive_lat" />
</resultMap>
<sql id="selectBizOrderVo">
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
</sql>
<select id="selectBizOrderList" parameterType="BizOrder" resultMap="BizOrderResult">
<include refid="selectBizOrderVo"/>
<where>
<if test="orderSn != null and orderSn != ''"> and order_sn = #{orderSn}</if>
<if test="orderStatus != null and orderStatus != ''"> and order_status = #{orderStatus}</if>
<if test="orderType != null and orderType != ''"> and order_type = #{orderType}</if>
<if test="customerId != null "> and customer_id = #{customerId}</if>
<if test="customerName != null and customerName != ''"> and customer_name like concat('%', #{customerName}, '%')</if>
<if test="routeId != null "> and route_id = #{routeId}</if>
<if test="routeName != null and routeName != ''"> and route_name like concat('%', #{routeName}, '%')</if>
<if test="warehouseId != null "> and warehouse_id = #{warehouseId}</if>
<if test="warehouseName != null and warehouseName != ''"> and warehouse_name like concat('%', #{warehouseName}, '%')</if>
<if test="shopId != null "> and shop_id = #{shopId}</if>
<if test="shopName != null and shopName != ''"> and shop_name like concat('%', #{shopName}, '%')</if>
<if test="carId != null "> and car_id = #{carId}</if>
<if test="carNo != null and carNo != ''"> and car_no = #{carNo}</if>
<if test="driverId != null "> and driver_id = #{driverId}</if>
<if test="driverName != null and driverName != ''"> and driver_name like concat('%', #{driverName}, '%')</if>
<if test="copilotId != null "> and copilot_id = #{copilotId}</if>
<if test="copilotName != null and copilotName != ''"> and copilot_name like concat('%', #{copilotName}, '%')</if>
<if test="senderName != null and senderName != ''"> and sender_name like concat('%', #{senderName}, '%')</if>
<if test="senderLinkman != null and senderLinkman != ''"> and sender_linkman = #{senderLinkman}</if>
<if test="senderPhone != null and senderPhone != ''"> and sender_phone = #{senderPhone}</if>
<if test="senderAddress != null and senderAddress != ''"> and sender_address = #{senderAddress}</if>
<if test="senderLng != null "> and sender_lng = #{senderLng}</if>
<if test="senderLat != null "> and sender_lat = #{senderLat}</if>
<if test="senderCompany != null and senderCompany != ''"> and sender_company = #{senderCompany}</if>
<if test="receiverName != null and receiverName != ''"> and receiver_name like concat('%', #{receiverName}, '%')</if>
<if test="receiverLinkman != null and receiverLinkman != ''"> and receiver_linkman = #{receiverLinkman}</if>
<if test="receiverPhone != null and receiverPhone != ''"> and receiver_phone = #{receiverPhone}</if>
<if test="receiverAddress != null and receiverAddress != ''"> and receiver_address = #{receiverAddress}</if>
<if test="receiverLng != null "> and receiver_lng = #{receiverLng}</if>
<if test="receiverLat != null "> and receiver_lat = #{receiverLat}</if>
<if test="receiverCompany != null and receiverCompany != ''"> and receiver_company = #{receiverCompany}</if>
<if test="goodsType != null and goodsType != ''"> and goods_type = #{goodsType}</if>
<if test="goodsName != null and goodsName != ''"> and goods_name like concat('%', #{goodsName}, '%')</if>
<if test="weight != null "> and weight = #{weight}</if>
<if test="volume != null "> and volume = #{volume}</if>
<if test="length != null "> and length = #{length}</if>
<if test="width != null "> and width = #{width}</if>
<if test="height != null "> and height = #{height}</if>
<if test="totalQuantity != null "> and total_quantity = #{totalQuantity}</if>
<if test="insured != null "> and insured = #{insured}</if>
<if test="insuredMoney != null "> and insured_money = #{insuredMoney}</if>
<if test="insuredFee != null "> and insured_fee = #{insuredFee}</if>
<if test="orderFee != null "> and order_fee = #{orderFee}</if>
<if test="isCancel != null "> and is_cancel = #{isCancel}</if>
<if test="cancelReason != null and cancelReason != ''"> and cancel_reason = #{cancelReason}</if>
<if test="cancelTime != null "> and cancel_time = #{cancelTime}</if>
<if test="payType != null and payType != ''"> and pay_type = #{payType}</if>
<if test="payMode != null and payMode != ''"> and pay_mode = #{payMode}</if>
<if test="payId != null and payId != ''"> and pay_id = #{payId}</if>
<if test="payStatus != null "> and pay_status = #{payStatus}</if>
<if test="payTime != null "> and pay_time = #{payTime}</if>
<if test="status != null "> and status = #{status}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="arriveTime != null "> and arrive_time = #{arriveTime}</if>
<if test="arriveRemark != null and arriveRemark != ''"> and arrive_remark = #{arriveRemark}</if>
<if test="arriveLng != null "> and arrive_lng = #{arriveLng}</if>
<if test="arriveLat != null "> and arrive_lat = #{arriveLat}</if>
</where>
</select>
<select id="selectBizOrderById" parameterType="Long" resultMap="BizOrderResult">
<include refid="selectBizOrderVo"/>
where id = #{id}
</select>
<insert id="insertBizOrder" parameterType="BizOrder" useGeneratedKeys="true" keyProperty="id">
insert into biz_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderSn != null">order_sn,</if>
<if test="orderStatus != null">order_status,</if>
<if test="orderType != null">order_type,</if>
<if test="customerId != null">customer_id,</if>
<if test="customerName != null">customer_name,</if>
<if test="routeId != null">route_id,</if>
<if test="routeName != null">route_name,</if>
<if test="warehouseId != null">warehouse_id,</if>
<if test="warehouseName != null">warehouse_name,</if>
<if test="shopId != null">shop_id,</if>
<if test="shopName != null">shop_name,</if>
<if test="carId != null">car_id,</if>
<if test="carNo != null">car_no,</if>
<if test="driverId != null">driver_id,</if>
<if test="driverName != null">driver_name,</if>
<if test="copilotId != null">copilot_id,</if>
<if test="copilotName != null">copilot_name,</if>
<if test="senderName != null">sender_name,</if>
<if test="senderLinkman != null">sender_linkman,</if>
<if test="senderPhone != null">sender_phone,</if>
<if test="senderAddress != null">sender_address,</if>
<if test="senderLng != null">sender_lng,</if>
<if test="senderLat != null">sender_lat,</if>
<if test="senderCompany != null">sender_company,</if>
<if test="receiverName != null">receiver_name,</if>
<if test="receiverLinkman != null">receiver_linkman,</if>
<if test="receiverPhone != null">receiver_phone,</if>
<if test="receiverAddress != null">receiver_address,</if>
<if test="receiverLng != null">receiver_lng,</if>
<if test="receiverLat != null">receiver_lat,</if>
<if test="receiverCompany != null">receiver_company,</if>
<if test="goodsType != null">goods_type,</if>
<if test="goodsName != null">goods_name,</if>
<if test="weight != null">weight,</if>
<if test="volume != null">volume,</if>
<if test="length != null">length,</if>
<if test="width != null">width,</if>
<if test="height != null">height,</if>
<if test="totalQuantity != null">total_quantity,</if>
<if test="insured != null">insured,</if>
<if test="insuredMoney != null">insured_money,</if>
<if test="insuredFee != null">insured_fee,</if>
<if test="orderFee != null">order_fee,</if>
<if test="isCancel != null">is_cancel,</if>
<if test="cancelReason != null">cancel_reason,</if>
<if test="cancelTime != null">cancel_time,</if>
<if test="payType != null">pay_type,</if>
<if test="payMode != null">pay_mode,</if>
<if test="payId != null">pay_id,</if>
<if test="payStatus != null">pay_status,</if>
<if test="payTime != null">pay_time,</if>
<if test="status != null">status,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
<if test="startTime != null">start_time,</if>
<if test="arriveTime != null">arrive_time,</if>
<if test="arriveRemark != null">arrive_remark,</if>
<if test="arriveLng != null">arrive_lng,</if>
<if test="arriveLat != null">arrive_lat,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null">#{orderSn},</if>
<if test="orderStatus != null">#{orderStatus},</if>
<if test="orderType != null">#{orderType},</if>
<if test="customerId != null">#{customerId},</if>
<if test="customerName != null">#{customerName},</if>
<if test="routeId != null">#{routeId},</if>
<if test="routeName != null">#{routeName},</if>
<if test="warehouseId != null">#{warehouseId},</if>
<if test="warehouseName != null">#{warehouseName},</if>
<if test="shopId != null">#{shopId},</if>
<if test="shopName != null">#{shopName},</if>
<if test="carId != null">#{carId},</if>
<if test="carNo != null">#{carNo},</if>
<if test="driverId != null">#{driverId},</if>
<if test="driverName != null">#{driverName},</if>
<if test="copilotId != null">#{copilotId},</if>
<if test="copilotName != null">#{copilotName},</if>
<if test="senderName != null">#{senderName},</if>
<if test="senderLinkman != null">#{senderLinkman},</if>
<if test="senderPhone != null">#{senderPhone},</if>
<if test="senderAddress != null">#{senderAddress},</if>
<if test="senderLng != null">#{senderLng},</if>
<if test="senderLat != null">#{senderLat},</if>
<if test="senderCompany != null">#{senderCompany},</if>
<if test="receiverName != null">#{receiverName},</if>
<if test="receiverLinkman != null">#{receiverLinkman},</if>
<if test="receiverPhone != null">#{receiverPhone},</if>
<if test="receiverAddress != null">#{receiverAddress},</if>
<if test="receiverLng != null">#{receiverLng},</if>
<if test="receiverLat != null">#{receiverLat},</if>
<if test="receiverCompany != null">#{receiverCompany},</if>
<if test="goodsType != null">#{goodsType},</if>
<if test="goodsName != null">#{goodsName},</if>
<if test="weight != null">#{weight},</if>
<if test="volume != null">#{volume},</if>
<if test="length != null">#{length},</if>
<if test="width != null">#{width},</if>
<if test="height != null">#{height},</if>
<if test="totalQuantity != null">#{totalQuantity},</if>
<if test="insured != null">#{insured},</if>
<if test="insuredMoney != null">#{insuredMoney},</if>
<if test="insuredFee != null">#{insuredFee},</if>
<if test="orderFee != null">#{orderFee},</if>
<if test="isCancel != null">#{isCancel},</if>
<if test="cancelReason != null">#{cancelReason},</if>
<if test="cancelTime != null">#{cancelTime},</if>
<if test="payType != null">#{payType},</if>
<if test="payMode != null">#{payMode},</if>
<if test="payId != null">#{payId},</if>
<if test="payStatus != null">#{payStatus},</if>
<if test="payTime != null">#{payTime},</if>
<if test="status != null">#{status},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
<if test="startTime != null">#{startTime},</if>
<if test="arriveTime != null">#{arriveTime},</if>
<if test="arriveRemark != null">#{arriveRemark},</if>
<if test="arriveLng != null">#{arriveLng},</if>
<if test="arriveLat != null">#{arriveLat},</if>
</trim>
</insert>
<update id="updateBizOrder" parameterType="BizOrder">
update biz_order
<trim prefix="SET" suffixOverrides=",">
<if test="orderSn != null">order_sn = #{orderSn},</if>
<if test="orderStatus != null">order_status = #{orderStatus},</if>
<if test="orderType != null">order_type = #{orderType},</if>
<if test="customerId != null">customer_id = #{customerId},</if>
<if test="customerName != null">customer_name = #{customerName},</if>
<if test="routeId != null">route_id = #{routeId},</if>
<if test="routeName != null">route_name = #{routeName},</if>
<if test="warehouseId != null">warehouse_id = #{warehouseId},</if>
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if>
<if test="shopId != null">shop_id = #{shopId},</if>
<if test="shopName != null">shop_name = #{shopName},</if>
<if test="carId != null">car_id = #{carId},</if>
<if test="carNo != null">car_no = #{carNo},</if>
<if test="driverId != null">driver_id = #{driverId},</if>
<if test="driverName != null">driver_name = #{driverName},</if>
<if test="copilotId != null">copilot_id = #{copilotId},</if>
<if test="copilotName != null">copilot_name = #{copilotName},</if>
<if test="senderName != null">sender_name = #{senderName},</if>
<if test="senderLinkman != null">sender_linkman = #{senderLinkman},</if>
<if test="senderPhone != null">sender_phone = #{senderPhone},</if>
<if test="senderAddress != null">sender_address = #{senderAddress},</if>
<if test="senderLng != null">sender_lng = #{senderLng},</if>
<if test="senderLat != null">sender_lat = #{senderLat},</if>
<if test="senderCompany != null">sender_company = #{senderCompany},</if>
<if test="receiverName != null">receiver_name = #{receiverName},</if>
<if test="receiverLinkman != null">receiver_linkman = #{receiverLinkman},</if>
<if test="receiverPhone != null">receiver_phone = #{receiverPhone},</if>
<if test="receiverAddress != null">receiver_address = #{receiverAddress},</if>
<if test="receiverLng != null">receiver_lng = #{receiverLng},</if>
<if test="receiverLat != null">receiver_lat = #{receiverLat},</if>
<if test="receiverCompany != null">receiver_company = #{receiverCompany},</if>
<if test="goodsType != null">goods_type = #{goodsType},</if>
<if test="goodsName != null">goods_name = #{goodsName},</if>
<if test="weight != null">weight = #{weight},</if>
<if test="volume != null">volume = #{volume},</if>
<if test="length != null">length = #{length},</if>
<if test="width != null">width = #{width},</if>
<if test="height != null">height = #{height},</if>
<if test="totalQuantity != null">total_quantity = #{totalQuantity},</if>
<if test="insured != null">insured = #{insured},</if>
<if test="insuredMoney != null">insured_money = #{insuredMoney},</if>
<if test="insuredFee != null">insured_fee = #{insuredFee},</if>
<if test="orderFee != null">order_fee = #{orderFee},</if>
<if test="isCancel != null">is_cancel = #{isCancel},</if>
<if test="cancelReason != null">cancel_reason = #{cancelReason},</if>
<if test="cancelTime != null">cancel_time = #{cancelTime},</if>
<if test="payType != null">pay_type = #{payType},</if>
<if test="payMode != null">pay_mode = #{payMode},</if>
<if test="payId != null">pay_id = #{payId},</if>
<if test="payStatus != null">pay_status = #{payStatus},</if>
<if test="payTime != null">pay_time = #{payTime},</if>
<if test="status != null">status = #{status},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="startTime != null">start_time = #{startTime},</if>
<if test="arriveTime != null">arrive_time = #{arriveTime},</if>
<if test="arriveRemark != null">arrive_remark = #{arriveRemark},</if>
<if test="arriveLng != null">arrive_lng = #{arriveLng},</if>
<if test="arriveLat != null">arrive_lat = #{arriveLat},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizOrderById" parameterType="Long">
delete from biz_order where id = #{id}
</delete>
<delete id="deleteBizOrderByIds" parameterType="String">
delete from biz_order where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.cpxt.biz.mapper.BizOrderSubMapper">
<resultMap type="BizOrderSub" id="BizOrderSubResult">
<result property="id" column="id" />
<result property="orderSn" column="order_sn" />
<result property="subOrderSn" column="sub_order_sn" />
<result property="weight" column="weight" />
<result property="volume" column="volume" />
<result property="length" column="length" />
<result property="width" column="width" />
<result property="height" column="height" />
</resultMap>
<sql id="selectBizOrderSubVo">
select id, order_sn, sub_order_sn, weight, volume, length, width, height from biz_order_sub
</sql>
<select id="selectBizOrderSubList" parameterType="BizOrderSub" resultMap="BizOrderSubResult">
<include refid="selectBizOrderSubVo"/>
<where>
<if test="orderSn != null and orderSn != ''"> and order_sn = #{orderSn}</if>
<if test="subOrderSn != null and subOrderSn != ''"> and sub_order_sn = #{subOrderSn}</if>
<if test="weight != null "> and weight = #{weight}</if>
<if test="volume != null "> and volume = #{volume}</if>
<if test="length != null "> and length = #{length}</if>
<if test="width != null "> and width = #{width}</if>
<if test="height != null "> and height = #{height}</if>
</where>
</select>
<select id="selectBizOrderSubById" parameterType="Long" resultMap="BizOrderSubResult">
<include refid="selectBizOrderSubVo"/>
where id = #{id}
</select>
<insert id="insertBizOrderSub" parameterType="BizOrderSub" useGeneratedKeys="true" keyProperty="id">
insert into biz_order_sub
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderSn != null">order_sn,</if>
<if test="subOrderSn != null">sub_order_sn,</if>
<if test="weight != null">weight,</if>
<if test="volume != null">volume,</if>
<if test="length != null">length,</if>
<if test="width != null">width,</if>
<if test="height != null">height,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderSn != null">#{orderSn},</if>
<if test="subOrderSn != null">#{subOrderSn},</if>
<if test="weight != null">#{weight},</if>
<if test="volume != null">#{volume},</if>
<if test="length != null">#{length},</if>
<if test="width != null">#{width},</if>
<if test="height != null">#{height},</if>
</trim>
</insert>
<update id="updateBizOrderSub" parameterType="BizOrderSub">
update biz_order_sub
<trim prefix="SET" suffixOverrides=",">
<if test="orderSn != null">order_sn = #{orderSn},</if>
<if test="subOrderSn != null">sub_order_sn = #{subOrderSn},</if>
<if test="weight != null">weight = #{weight},</if>
<if test="volume != null">volume = #{volume},</if>
<if test="length != null">length = #{length},</if>
<if test="width != null">width = #{width},</if>
<if test="height != null">height = #{height},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteBizOrderSubById" parameterType="Long">
delete from biz_order_sub where id = #{id}
</delete>
<delete id="deleteBizOrderSubByIds" parameterType="String">
delete from biz_order_sub where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>