Commit 7074e975 by yuanchao

1123送水业务基础代码

parent 26eaf38c
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterGoods;
import com.qianhe.system.service.IWaterGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 商品Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/goods")
public class WaterGoodsController extends BaseController
{
@Autowired
private IWaterGoodsService waterGoodsService;
/**
* 查询商品列表
*/
@PreAuthorize("@ss.hasPermi('system:goods:list')")
@GetMapping("/list")
public TableDataInfo list(WaterGoods waterGoods)
{
startPage();
List<WaterGoods> list = waterGoodsService.selectWaterGoodsList(waterGoods);
return getDataTable(list);
}
/**
* 导出商品列表
*/
@PreAuthorize("@ss.hasPermi('system:goods:export')")
@Log(title = "商品", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterGoods waterGoods)
{
List<WaterGoods> list = waterGoodsService.selectWaterGoodsList(waterGoods);
ExcelUtil<WaterGoods> util = new ExcelUtil<WaterGoods>(WaterGoods.class);
util.exportExcel(response, list, "商品数据");
}
/**
* 获取商品详细信息
*/
@PreAuthorize("@ss.hasPermi('system:goods:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterGoodsService.selectWaterGoodsById(id));
}
/**
* 新增商品
*/
@PreAuthorize("@ss.hasPermi('system:goods:add')")
@Log(title = "商品", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterGoods waterGoods)
{
return toAjax(waterGoodsService.insertWaterGoods(waterGoods));
}
/**
* 修改商品
*/
@PreAuthorize("@ss.hasPermi('system:goods:edit')")
@Log(title = "商品", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterGoods waterGoods)
{
return toAjax(waterGoodsService.updateWaterGoods(waterGoods));
}
/**
* 删除商品
*/
@PreAuthorize("@ss.hasPermi('system:goods:remove')")
@Log(title = "商品", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterGoodsService.deleteWaterGoodsByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterGoodsImg;
import com.qianhe.system.service.IWaterGoodsImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 商品图片Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/img")
public class WaterGoodsImgController extends BaseController
{
@Autowired
private IWaterGoodsImgService waterGoodsImgService;
/**
* 查询商品图片列表
*/
@PreAuthorize("@ss.hasPermi('system:img:list')")
@GetMapping("/list")
public TableDataInfo list(WaterGoodsImg waterGoodsImg)
{
startPage();
List<WaterGoodsImg> list = waterGoodsImgService.selectWaterGoodsImgList(waterGoodsImg);
return getDataTable(list);
}
/**
* 导出商品图片列表
*/
@PreAuthorize("@ss.hasPermi('system:img:export')")
@Log(title = "商品图片", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterGoodsImg waterGoodsImg)
{
List<WaterGoodsImg> list = waterGoodsImgService.selectWaterGoodsImgList(waterGoodsImg);
ExcelUtil<WaterGoodsImg> util = new ExcelUtil<WaterGoodsImg>(WaterGoodsImg.class);
util.exportExcel(response, list, "商品图片数据");
}
/**
* 获取商品图片详细信息
*/
@PreAuthorize("@ss.hasPermi('system:img:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterGoodsImgService.selectWaterGoodsImgById(id));
}
/**
* 新增商品图片
*/
@PreAuthorize("@ss.hasPermi('system:img:add')")
@Log(title = "商品图片", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterGoodsImg waterGoodsImg)
{
return toAjax(waterGoodsImgService.insertWaterGoodsImg(waterGoodsImg));
}
/**
* 修改商品图片
*/
@PreAuthorize("@ss.hasPermi('system:img:edit')")
@Log(title = "商品图片", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterGoodsImg waterGoodsImg)
{
return toAjax(waterGoodsImgService.updateWaterGoodsImg(waterGoodsImg));
}
/**
* 删除商品图片
*/
@PreAuthorize("@ss.hasPermi('system:img:remove')")
@Log(title = "商品图片", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterGoodsImgService.deleteWaterGoodsImgByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterGoodsSpe;
import com.qianhe.system.service.IWaterGoodsSpeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 商品关联规格Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/goodsSpe")
public class WaterGoodsSpeController extends BaseController
{
@Autowired
private IWaterGoodsSpeService waterGoodsSpeService;
/**
* 查询商品关联规格列表
*/
@PreAuthorize("@ss.hasPermi('system:spe:list')")
@GetMapping("/list")
public TableDataInfo list(WaterGoodsSpe waterGoodsSpe)
{
startPage();
List<WaterGoodsSpe> list = waterGoodsSpeService.selectWaterGoodsSpeList(waterGoodsSpe);
return getDataTable(list);
}
/**
* 导出商品关联规格列表
*/
@PreAuthorize("@ss.hasPermi('system:spe:export')")
@Log(title = "商品关联规格", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterGoodsSpe waterGoodsSpe)
{
List<WaterGoodsSpe> list = waterGoodsSpeService.selectWaterGoodsSpeList(waterGoodsSpe);
ExcelUtil<WaterGoodsSpe> util = new ExcelUtil<WaterGoodsSpe>(WaterGoodsSpe.class);
util.exportExcel(response, list, "商品关联规格数据");
}
/**
* 获取商品关联规格详细信息
*/
@PreAuthorize("@ss.hasPermi('system:spe:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterGoodsSpeService.selectWaterGoodsSpeById(id));
}
/**
* 新增商品关联规格
*/
@PreAuthorize("@ss.hasPermi('system:spe:add')")
@Log(title = "商品关联规格", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterGoodsSpe waterGoodsSpe)
{
return toAjax(waterGoodsSpeService.insertWaterGoodsSpe(waterGoodsSpe));
}
/**
* 修改商品关联规格
*/
@PreAuthorize("@ss.hasPermi('system:spe:edit')")
@Log(title = "商品关联规格", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterGoodsSpe waterGoodsSpe)
{
return toAjax(waterGoodsSpeService.updateWaterGoodsSpe(waterGoodsSpe));
}
/**
* 删除商品关联规格
*/
@PreAuthorize("@ss.hasPermi('system:spe:remove')")
@Log(title = "商品关联规格", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterGoodsSpeService.deleteWaterGoodsSpeByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterGoodsType;
import com.qianhe.system.service.IWaterGoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 商品分类Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/type")
public class WaterGoodsTypeController extends BaseController
{
@Autowired
private IWaterGoodsTypeService waterGoodsTypeService;
/**
* 查询商品分类列表
*/
@PreAuthorize("@ss.hasPermi('system:type:list')")
@GetMapping("/list")
public TableDataInfo list(WaterGoodsType waterGoodsType)
{
startPage();
List<WaterGoodsType> list = waterGoodsTypeService.selectWaterGoodsTypeList(waterGoodsType);
return getDataTable(list);
}
/**
* 导出商品分类列表
*/
@PreAuthorize("@ss.hasPermi('system:type:export')")
@Log(title = "商品分类", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterGoodsType waterGoodsType)
{
List<WaterGoodsType> list = waterGoodsTypeService.selectWaterGoodsTypeList(waterGoodsType);
ExcelUtil<WaterGoodsType> util = new ExcelUtil<WaterGoodsType>(WaterGoodsType.class);
util.exportExcel(response, list, "商品分类数据");
}
/**
* 获取商品分类详细信息
*/
@PreAuthorize("@ss.hasPermi('system:type:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterGoodsTypeService.selectWaterGoodsTypeById(id));
}
/**
* 新增商品分类
*/
@PreAuthorize("@ss.hasPermi('system:type:add')")
@Log(title = "商品分类", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterGoodsType waterGoodsType)
{
return toAjax(waterGoodsTypeService.insertWaterGoodsType(waterGoodsType));
}
/**
* 修改商品分类
*/
@PreAuthorize("@ss.hasPermi('system:type:edit')")
@Log(title = "商品分类", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterGoodsType waterGoodsType)
{
return toAjax(waterGoodsTypeService.updateWaterGoodsType(waterGoodsType));
}
/**
* 删除商品分类
*/
@PreAuthorize("@ss.hasPermi('system:type:remove')")
@Log(title = "商品分类", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterGoodsTypeService.deleteWaterGoodsTypeByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterOrder;
import com.qianhe.system.service.IWaterOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 订单Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/order")
public class WaterOrderController extends BaseController
{
@Autowired
private IWaterOrderService waterOrderService;
/**
* 查询订单列表
*/
@PreAuthorize("@ss.hasPermi('system:order:list')")
@GetMapping("/list")
public TableDataInfo list(WaterOrder waterOrder)
{
startPage();
List<WaterOrder> list = waterOrderService.selectWaterOrderList(waterOrder);
return getDataTable(list);
}
/**
* 导出订单列表
*/
@PreAuthorize("@ss.hasPermi('system:order:export')")
@Log(title = "订单", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterOrder waterOrder)
{
List<WaterOrder> list = waterOrderService.selectWaterOrderList(waterOrder);
ExcelUtil<WaterOrder> util = new ExcelUtil<WaterOrder>(WaterOrder.class);
util.exportExcel(response, list, "订单数据");
}
/**
* 获取订单详细信息
*/
@PreAuthorize("@ss.hasPermi('system:order:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterOrderService.selectWaterOrderById(id));
}
/**
* 新增订单
*/
@PreAuthorize("@ss.hasPermi('system:order:add')")
@Log(title = "订单", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterOrder waterOrder)
{
return toAjax(waterOrderService.insertWaterOrder(waterOrder));
}
/**
* 修改订单
*/
@PreAuthorize("@ss.hasPermi('system:order:edit')")
@Log(title = "订单", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterOrder waterOrder)
{
return toAjax(waterOrderService.updateWaterOrder(waterOrder));
}
/**
* 删除订单
*/
@PreAuthorize("@ss.hasPermi('system:order:remove')")
@Log(title = "订单", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterOrderService.deleteWaterOrderByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterOrderGoods;
import com.qianhe.system.service.IWaterOrderGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 订单商品Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/orderGoods")
public class WaterOrderGoodsController extends BaseController
{
@Autowired
private IWaterOrderGoodsService waterOrderGoodsService;
/**
* 查询订单商品列表
*/
@PreAuthorize("@ss.hasPermi('system:goods:list')")
@GetMapping("/list")
public TableDataInfo list(WaterOrderGoods waterOrderGoods)
{
startPage();
List<WaterOrderGoods> list = waterOrderGoodsService.selectWaterOrderGoodsList(waterOrderGoods);
return getDataTable(list);
}
/**
* 导出订单商品列表
*/
@PreAuthorize("@ss.hasPermi('system:goods:export')")
@Log(title = "订单商品", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterOrderGoods waterOrderGoods)
{
List<WaterOrderGoods> list = waterOrderGoodsService.selectWaterOrderGoodsList(waterOrderGoods);
ExcelUtil<WaterOrderGoods> util = new ExcelUtil<WaterOrderGoods>(WaterOrderGoods.class);
util.exportExcel(response, list, "订单商品数据");
}
/**
* 获取订单商品详细信息
*/
@PreAuthorize("@ss.hasPermi('system:goods:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterOrderGoodsService.selectWaterOrderGoodsById(id));
}
/**
* 新增订单商品
*/
@PreAuthorize("@ss.hasPermi('system:goods:add')")
@Log(title = "订单商品", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterOrderGoods waterOrderGoods)
{
return toAjax(waterOrderGoodsService.insertWaterOrderGoods(waterOrderGoods));
}
/**
* 修改订单商品
*/
@PreAuthorize("@ss.hasPermi('system:goods:edit')")
@Log(title = "订单商品", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterOrderGoods waterOrderGoods)
{
return toAjax(waterOrderGoodsService.updateWaterOrderGoods(waterOrderGoods));
}
/**
* 删除订单商品
*/
@PreAuthorize("@ss.hasPermi('system:goods:remove')")
@Log(title = "订单商品", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterOrderGoodsService.deleteWaterOrderGoodsByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterOrderLog;
import com.qianhe.system.service.IWaterOrderLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 订单日志Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/log")
public class WaterOrderLogController extends BaseController
{
@Autowired
private IWaterOrderLogService waterOrderLogService;
/**
* 查询订单日志列表
*/
@PreAuthorize("@ss.hasPermi('system:log:list')")
@GetMapping("/list")
public TableDataInfo list(WaterOrderLog waterOrderLog)
{
startPage();
List<WaterOrderLog> list = waterOrderLogService.selectWaterOrderLogList(waterOrderLog);
return getDataTable(list);
}
/**
* 导出订单日志列表
*/
@PreAuthorize("@ss.hasPermi('system:log:export')")
@Log(title = "订单日志", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterOrderLog waterOrderLog)
{
List<WaterOrderLog> list = waterOrderLogService.selectWaterOrderLogList(waterOrderLog);
ExcelUtil<WaterOrderLog> util = new ExcelUtil<WaterOrderLog>(WaterOrderLog.class);
util.exportExcel(response, list, "订单日志数据");
}
/**
* 获取订单日志详细信息
*/
@PreAuthorize("@ss.hasPermi('system:log:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterOrderLogService.selectWaterOrderLogById(id));
}
/**
* 新增订单日志
*/
@PreAuthorize("@ss.hasPermi('system:log:add')")
@Log(title = "订单日志", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterOrderLog waterOrderLog)
{
return toAjax(waterOrderLogService.insertWaterOrderLog(waterOrderLog));
}
/**
* 修改订单日志
*/
@PreAuthorize("@ss.hasPermi('system:log:edit')")
@Log(title = "订单日志", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterOrderLog waterOrderLog)
{
return toAjax(waterOrderLogService.updateWaterOrderLog(waterOrderLog));
}
/**
* 删除订单日志
*/
@PreAuthorize("@ss.hasPermi('system:log:remove')")
@Log(title = "订单日志", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterOrderLogService.deleteWaterOrderLogByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterSpe;
import com.qianhe.system.service.IWaterSpeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 商品规格Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/spe")
public class WaterSpeController extends BaseController
{
@Autowired
private IWaterSpeService waterSpeService;
/**
* 查询商品规格列表
*/
@PreAuthorize("@ss.hasPermi('system:spe:list')")
@GetMapping("/list")
public TableDataInfo list(WaterSpe waterSpe)
{
startPage();
List<WaterSpe> list = waterSpeService.selectWaterSpeList(waterSpe);
return getDataTable(list);
}
/**
* 导出商品规格列表
*/
@PreAuthorize("@ss.hasPermi('system:spe:export')")
@Log(title = "商品规格", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterSpe waterSpe)
{
List<WaterSpe> list = waterSpeService.selectWaterSpeList(waterSpe);
ExcelUtil<WaterSpe> util = new ExcelUtil<WaterSpe>(WaterSpe.class);
util.exportExcel(response, list, "商品规格数据");
}
/**
* 获取商品规格详细信息
*/
@PreAuthorize("@ss.hasPermi('system:spe:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterSpeService.selectWaterSpeById(id));
}
/**
* 新增商品规格
*/
@PreAuthorize("@ss.hasPermi('system:spe:add')")
@Log(title = "商品规格", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterSpe waterSpe)
{
return toAjax(waterSpeService.insertWaterSpe(waterSpe));
}
/**
* 修改商品规格
*/
@PreAuthorize("@ss.hasPermi('system:spe:edit')")
@Log(title = "商品规格", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterSpe waterSpe)
{
return toAjax(waterSpeService.updateWaterSpe(waterSpe));
}
/**
* 删除商品规格
*/
@PreAuthorize("@ss.hasPermi('system:spe:remove')")
@Log(title = "商品规格", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterSpeService.deleteWaterSpeByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterStation;
import com.qianhe.system.service.IWaterStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 站点Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/station")
public class WaterStationController extends BaseController
{
@Autowired
private IWaterStationService waterStationService;
/**
* 查询站点列表
*/
@PreAuthorize("@ss.hasPermi('system:station:list')")
@GetMapping("/list")
public TableDataInfo list(WaterStation waterStation)
{
startPage();
List<WaterStation> list = waterStationService.selectWaterStationList(waterStation);
return getDataTable(list);
}
/**
* 导出站点列表
*/
@PreAuthorize("@ss.hasPermi('system:station:export')")
@Log(title = "站点", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterStation waterStation)
{
List<WaterStation> list = waterStationService.selectWaterStationList(waterStation);
ExcelUtil<WaterStation> util = new ExcelUtil<WaterStation>(WaterStation.class);
util.exportExcel(response, list, "站点数据");
}
/**
* 获取站点详细信息
*/
@PreAuthorize("@ss.hasPermi('system:station:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterStationService.selectWaterStationById(id));
}
/**
* 新增站点
*/
@PreAuthorize("@ss.hasPermi('system:station:add')")
@Log(title = "站点", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterStation waterStation)
{
return toAjax(waterStationService.insertWaterStation(waterStation));
}
/**
* 修改站点
*/
@PreAuthorize("@ss.hasPermi('system:station:edit')")
@Log(title = "站点", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterStation waterStation)
{
return toAjax(waterStationService.updateWaterStation(waterStation));
}
/**
* 删除站点
*/
@PreAuthorize("@ss.hasPermi('system:station:remove')")
@Log(title = "站点", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterStationService.deleteWaterStationByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterStationUser;
import com.qianhe.system.service.IWaterStationUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 站点用户Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/stationUser")
public class WaterStationUserController extends BaseController
{
@Autowired
private IWaterStationUserService waterStationUserService;
/**
* 查询站点用户列表
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/list")
public TableDataInfo list(WaterStationUser waterStationUser)
{
startPage();
List<WaterStationUser> list = waterStationUserService.selectWaterStationUserList(waterStationUser);
return getDataTable(list);
}
/**
* 导出站点用户列表
*/
@PreAuthorize("@ss.hasPermi('system:user:export')")
@Log(title = "站点用户", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterStationUser waterStationUser)
{
List<WaterStationUser> list = waterStationUserService.selectWaterStationUserList(waterStationUser);
ExcelUtil<WaterStationUser> util = new ExcelUtil<WaterStationUser>(WaterStationUser.class);
util.exportExcel(response, list, "站点用户数据");
}
/**
* 获取站点用户详细信息
*/
@PreAuthorize("@ss.hasPermi('system:user:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterStationUserService.selectWaterStationUserById(id));
}
/**
* 新增站点用户
*/
@PreAuthorize("@ss.hasPermi('system:user:add')")
@Log(title = "站点用户", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterStationUser waterStationUser)
{
return toAjax(waterStationUserService.insertWaterStationUser(waterStationUser));
}
/**
* 修改站点用户
*/
@PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "站点用户", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterStationUser waterStationUser)
{
return toAjax(waterStationUserService.updateWaterStationUser(waterStationUser));
}
/**
* 删除站点用户
*/
@PreAuthorize("@ss.hasPermi('system:user:remove')")
@Log(title = "站点用户", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterStationUserService.deleteWaterStationUserByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterText;
import com.qianhe.system.service.IWaterTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 通知公告文本Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/text")
public class WaterTextController extends BaseController
{
@Autowired
private IWaterTextService waterTextService;
/**
* 查询通知公告文本列表
*/
@PreAuthorize("@ss.hasPermi('system:text:list')")
@GetMapping("/list")
public TableDataInfo list(WaterText waterText)
{
startPage();
List<WaterText> list = waterTextService.selectWaterTextList(waterText);
return getDataTable(list);
}
/**
* 导出通知公告文本列表
*/
@PreAuthorize("@ss.hasPermi('system:text:export')")
@Log(title = "通知公告文本", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterText waterText)
{
List<WaterText> list = waterTextService.selectWaterTextList(waterText);
ExcelUtil<WaterText> util = new ExcelUtil<WaterText>(WaterText.class);
util.exportExcel(response, list, "通知公告文本数据");
}
/**
* 获取通知公告文本详细信息
*/
@PreAuthorize("@ss.hasPermi('system:text:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterTextService.selectWaterTextById(id));
}
/**
* 新增通知公告文本
*/
@PreAuthorize("@ss.hasPermi('system:text:add')")
@Log(title = "通知公告文本", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterText waterText)
{
return toAjax(waterTextService.insertWaterText(waterText));
}
/**
* 修改通知公告文本
*/
@PreAuthorize("@ss.hasPermi('system:text:edit')")
@Log(title = "通知公告文本", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterText waterText)
{
return toAjax(waterTextService.updateWaterText(waterText));
}
/**
* 删除通知公告文本
*/
@PreAuthorize("@ss.hasPermi('system:text:remove')")
@Log(title = "通知公告文本", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterTextService.deleteWaterTextByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterUserAddress;
import com.qianhe.system.service.IWaterUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 用户地址Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/address")
public class WaterUserAddressController extends BaseController
{
@Autowired
private IWaterUserAddressService waterUserAddressService;
/**
* 查询用户地址列表
*/
@PreAuthorize("@ss.hasPermi('system:address:list')")
@GetMapping("/list")
public TableDataInfo list(WaterUserAddress waterUserAddress)
{
startPage();
List<WaterUserAddress> list = waterUserAddressService.selectWaterUserAddressList(waterUserAddress);
return getDataTable(list);
}
/**
* 导出用户地址列表
*/
@PreAuthorize("@ss.hasPermi('system:address:export')")
@Log(title = "用户地址", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterUserAddress waterUserAddress)
{
List<WaterUserAddress> list = waterUserAddressService.selectWaterUserAddressList(waterUserAddress);
ExcelUtil<WaterUserAddress> util = new ExcelUtil<WaterUserAddress>(WaterUserAddress.class);
util.exportExcel(response, list, "用户地址数据");
}
/**
* 获取用户地址详细信息
*/
@PreAuthorize("@ss.hasPermi('system:address:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterUserAddressService.selectWaterUserAddressById(id));
}
/**
* 新增用户地址
*/
@PreAuthorize("@ss.hasPermi('system:address:add')")
@Log(title = "用户地址", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterUserAddress waterUserAddress)
{
return toAjax(waterUserAddressService.insertWaterUserAddress(waterUserAddress));
}
/**
* 修改用户地址
*/
@PreAuthorize("@ss.hasPermi('system:address:edit')")
@Log(title = "用户地址", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterUserAddress waterUserAddress)
{
return toAjax(waterUserAddressService.updateWaterUserAddress(waterUserAddress));
}
/**
* 删除用户地址
*/
@PreAuthorize("@ss.hasPermi('system:address:remove')")
@Log(title = "用户地址", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterUserAddressService.deleteWaterUserAddressByIds(ids));
}
}
package com.qianhe.system.controller;
import com.qianhe.common.annotation.Log;
import com.qianhe.common.core.controller.BaseController;
import com.qianhe.common.core.domain.AjaxResult;
import com.qianhe.common.core.page.TableDataInfo;
import com.qianhe.common.enums.BusinessType;
import com.qianhe.common.utils.poi.ExcelUtil;
import com.qianhe.system.domain.WaterUser;
import com.qianhe.system.service.IWaterUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/**
* 用户Controller
*
* @author qianhe
* @date 2023-11-23
*/
@RestController
@RequestMapping("/system/waterUser")
public class WaterUserController extends BaseController
{
@Autowired
private IWaterUserService waterUserService;
/**
* 查询用户列表
*/
@PreAuthorize("@ss.hasPermi('system:user:list')")
@GetMapping("/list")
public TableDataInfo list(WaterUser waterUser)
{
startPage();
List<WaterUser> list = waterUserService.selectWaterUserList(waterUser);
return getDataTable(list);
}
/**
* 导出用户列表
*/
@PreAuthorize("@ss.hasPermi('system:user:export')")
@Log(title = "用户", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, WaterUser waterUser)
{
List<WaterUser> list = waterUserService.selectWaterUserList(waterUser);
ExcelUtil<WaterUser> util = new ExcelUtil<WaterUser>(WaterUser.class);
util.exportExcel(response, list, "用户数据");
}
/**
* 获取用户详细信息
*/
@PreAuthorize("@ss.hasPermi('system:user:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(waterUserService.selectWaterUserById(id));
}
/**
* 新增用户
*/
@PreAuthorize("@ss.hasPermi('system:user:add')")
@Log(title = "用户", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody WaterUser waterUser)
{
return toAjax(waterUserService.insertWaterUser(waterUser));
}
/**
* 修改用户
*/
@PreAuthorize("@ss.hasPermi('system:user:edit')")
@Log(title = "用户", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody WaterUser waterUser)
{
return toAjax(waterUserService.updateWaterUser(waterUser));
}
/**
* 删除用户
*/
@PreAuthorize("@ss.hasPermi('system:user:remove')")
@Log(title = "用户", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(waterUserService.deleteWaterUserByIds(ids));
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 商品对象 water_goods
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterGoods extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
/** 类型 */
@Excel(name = "类型")
private Long goodsTypeId;
/** 所属站点id */
@Excel(name = "所属站点id")
private Long belongStationId;
/** 封面图 */
@Excel(name = "封面图")
private String coverImg;
/** 详情图 */
@Excel(name = "详情图")
private String detailsImg;
/** 价格 */
@Excel(name = "价格")
private String price;
/** 状态(1上架0下架) */
@Excel(name = "状态", readConverterExp = "1=上架0下架")
private Long status;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setGoodsTypeId(Long goodsTypeId)
{
this.goodsTypeId = goodsTypeId;
}
public Long getGoodsTypeId()
{
return goodsTypeId;
}
public void setBelongStationId(Long belongStationId)
{
this.belongStationId = belongStationId;
}
public Long getBelongStationId()
{
return belongStationId;
}
public void setCoverImg(String coverImg)
{
this.coverImg = coverImg;
}
public String getCoverImg()
{
return coverImg;
}
public void setDetailsImg(String detailsImg)
{
this.detailsImg = detailsImg;
}
public String getDetailsImg()
{
return detailsImg;
}
public void setPrice(String price)
{
this.price = price;
}
public String getPrice()
{
return price;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("goodsTypeId", getGoodsTypeId())
.append("belongStationId", getBelongStationId())
.append("coverImg", getCoverImg())
.append("detailsImg", getDetailsImg())
.append("price", getPrice())
.append("createTime", getCreateTime())
.append("status", getStatus())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 商品图片对象 water_goods_img
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterGoodsImg extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String imgName;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String type;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String sizea;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String url;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String md5;
/** 图片类型(1商品封面图2商品详情图3主页轮播图) */
@Excel(name = "图片类型", readConverterExp = "1=商品封面图2商品详情图3主页轮播图")
private Integer imgType;
/** 商品id */
@Excel(name = "商品id")
private Long goodsId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setImgName(String imgName)
{
this.imgName = imgName;
}
public String getImgName()
{
return imgName;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setSizea(String sizea)
{
this.sizea = sizea;
}
public String getSizea()
{
return sizea;
}
public void setUrl(String url)
{
this.url = url;
}
public String getUrl()
{
return url;
}
public void setMd5(String md5)
{
this.md5 = md5;
}
public String getMd5()
{
return md5;
}
public void setImgType(Integer imgType)
{
this.imgType = imgType;
}
public Integer getImgType()
{
return imgType;
}
public void setGoodsId(Long goodsId)
{
this.goodsId = goodsId;
}
public Long getGoodsId()
{
return goodsId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("imgName", getImgName())
.append("type", getType())
.append("sizea", getSizea())
.append("url", getUrl())
.append("md5", getMd5())
.append("imgType", getImgType())
.append("goodsId", getGoodsId())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 商品关联规格对象 water_goods_spe
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterGoodsSpe extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String speTitle;
/** 规格 */
@Excel(name = "规格")
private String spe;
/** 规格值 */
@Excel(name = "规格值")
private String speVal;
/** 商品id */
@Excel(name = "商品id")
private Long goodsId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setSpeTitle(String speTitle)
{
this.speTitle = speTitle;
}
public String getSpeTitle()
{
return speTitle;
}
public void setSpe(String spe)
{
this.spe = spe;
}
public String getSpe()
{
return spe;
}
public void setSpeVal(String speVal)
{
this.speVal = speVal;
}
public String getSpeVal()
{
return speVal;
}
public void setGoodsId(Long goodsId)
{
this.goodsId = goodsId;
}
public Long getGoodsId()
{
return goodsId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("speTitle", getSpeTitle())
.append("spe", getSpe())
.append("speVal", getSpeVal())
.append("goodsId", getGoodsId())
.append("createTime", getCreateTime())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 商品分类对象 water_goods_type
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterGoodsType extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 名称 */
@Excel(name = "名称")
private String typeName;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTypeName(String typeName)
{
this.typeName = typeName;
}
public String getTypeName()
{
return typeName;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("typeName", getTypeName())
.append("createTime", getCreateTime())
.toString();
}
}
package com.qianhe.system.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
/**
* 订单对象 water_order
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterOrder extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 订单编号(生成规则当前年月日+当天下单0001开始+随机生成4位英文字母) */
@Excel(name = "订单编号(生成规则当前年月日+当天下单0001开始+随机生成4位英文字母)")
private String orderNum;
/** 用户id */
@Excel(name = "用户id")
private Long userId;
/** 用户名字 */
@Excel(name = "用户名字")
private String userName;
/** 用户手机号 */
@Excel(name = "用户手机号")
private Long userPhone;
/** 用户省 */
@Excel(name = "用户省")
private String userProvince;
/** 用户城市 */
@Excel(name = "用户城市")
private String userCity;
/** 用户区 */
@Excel(name = "用户区")
private String userArea;
/** 用户详细地址 */
@Excel(name = "用户详细地址")
private String userAddress;
/** 站点id */
@Excel(name = "站点id")
private Long stationId;
/** 站点名字 */
@Excel(name = "站点名字")
private String stationName;
/** 站点手机号 */
@Excel(name = "站点手机号")
private Long stationPhone;
/** 站点省份 */
@Excel(name = "站点省份")
private String stationProvince;
/** 站点城市 */
@Excel(name = "站点城市")
private String stationCity;
/** 站点市区 */
@Excel(name = "站点市区")
private String stationArea;
/** 站点详细地址 */
@Excel(name = "站点详细地址")
private String stationAddress;
/** 订单状态(1待付款2待接单3进行中4已完成5已取消6已退款) */
@Excel(name = "订单状态(1待付款2待接单3进行中4已完成5已取消6已退款)")
private Integer orderState;
/** 付款状态(0未付款1已付款) */
@Excel(name = "付款状态(0未付款1已付款)")
private Integer payState;
/** 支付方式(1银行2水票) */
@Excel(name = "支付方式(1银行2水票)")
private Integer payType;
/** 银行返回支付成功code */
@Excel(name = "银行返回支付成功code")
private String payNum;
/** 收货人名字 */
@Excel(name = "收货人名字")
private String name;
/** 省 */
@Excel(name = "省")
private String province;
/** 市 */
@Excel(name = "市")
private String city;
/** 区 */
@Excel(name = "区")
private String area;
/** 详细地址 */
@Excel(name = "详细地址")
private String address;
/** 收货人手机号 */
@Excel(name = "收货人手机号")
private Long mobile;
/** 送货时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "送货时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date delieverTime;
/** 送水工名字 */
@Excel(name = "送水工名字")
private String delieverName;
/** 送水工电话 */
@Excel(name = "送水工电话")
private String delieverMobile;
/** 创建人 */
@Excel(name = "创建人")
private String createUser;
/** 送达时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "送达时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date delieverOver;
/** 收货时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date takeTime;
/** 完成时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date finishTime;
/** 备注 */
@Excel(name = "备注")
private String ramark;
/** 商品总价 */
@Excel(name = "商品总价")
private BigDecimal goodsVal;
/** 订单类型(1普通订单2退款订单) */
@Excel(name = "订单类型", readConverterExp = "1=普通订单2退款订单")
private Integer orderType;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setOrderNum(String orderNum)
{
this.orderNum = orderNum;
}
public String getOrderNum()
{
return orderNum;
}
public void setUserId(Long userId)
{
this.userId = userId;
}
public Long getUserId()
{
return userId;
}
public void setUserName(String userName)
{
this.userName = userName;
}
public String getUserName()
{
return userName;
}
public void setUserPhone(Long userPhone)
{
this.userPhone = userPhone;
}
public Long getUserPhone()
{
return userPhone;
}
public void setUserProvince(String userProvince)
{
this.userProvince = userProvince;
}
public String getUserProvince()
{
return userProvince;
}
public void setUserCity(String userCity)
{
this.userCity = userCity;
}
public String getUserCity()
{
return userCity;
}
public void setUserArea(String userArea)
{
this.userArea = userArea;
}
public String getUserArea()
{
return userArea;
}
public void setUserAddress(String userAddress)
{
this.userAddress = userAddress;
}
public String getUserAddress()
{
return userAddress;
}
public void setStationId(Long stationId)
{
this.stationId = stationId;
}
public Long getStationId()
{
return stationId;
}
public void setStationName(String stationName)
{
this.stationName = stationName;
}
public String getStationName()
{
return stationName;
}
public void setStationPhone(Long stationPhone)
{
this.stationPhone = stationPhone;
}
public Long getStationPhone()
{
return stationPhone;
}
public void setStationProvince(String stationProvince)
{
this.stationProvince = stationProvince;
}
public String getStationProvince()
{
return stationProvince;
}
public void setStationCity(String stationCity)
{
this.stationCity = stationCity;
}
public String getStationCity()
{
return stationCity;
}
public void setStationArea(String stationArea)
{
this.stationArea = stationArea;
}
public String getStationArea()
{
return stationArea;
}
public void setStationAddress(String stationAddress)
{
this.stationAddress = stationAddress;
}
public String getStationAddress()
{
return stationAddress;
}
public void setOrderState(Integer orderState)
{
this.orderState = orderState;
}
public Integer getOrderState()
{
return orderState;
}
public void setPayState(Integer payState)
{
this.payState = payState;
}
public Integer getPayState()
{
return payState;
}
public void setPayType(Integer payType)
{
this.payType = payType;
}
public Integer getPayType()
{
return payType;
}
public void setPayNum(String payNum)
{
this.payNum = payNum;
}
public String getPayNum()
{
return payNum;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setArea(String area)
{
this.area = area;
}
public String getArea()
{
return area;
}
public void setAddress(String address)
{
this.address = address;
}
public String getAddress()
{
return address;
}
public void setMobile(Long mobile)
{
this.mobile = mobile;
}
public Long getMobile()
{
return mobile;
}
public void setDelieverTime(Date delieverTime)
{
this.delieverTime = delieverTime;
}
public Date getDelieverTime()
{
return delieverTime;
}
public void setDelieverName(String delieverName)
{
this.delieverName = delieverName;
}
public String getDelieverName()
{
return delieverName;
}
public void setDelieverMobile(String delieverMobile)
{
this.delieverMobile = delieverMobile;
}
public String getDelieverMobile()
{
return delieverMobile;
}
public void setCreateUser(String createUser)
{
this.createUser = createUser;
}
public String getCreateUser()
{
return createUser;
}
public void setDelieverOver(Date delieverOver)
{
this.delieverOver = delieverOver;
}
public Date getDelieverOver()
{
return delieverOver;
}
public void setTakeTime(Date takeTime)
{
this.takeTime = takeTime;
}
public Date getTakeTime()
{
return takeTime;
}
public void setFinishTime(Date finishTime)
{
this.finishTime = finishTime;
}
public Date getFinishTime()
{
return finishTime;
}
public void setRamark(String ramark)
{
this.ramark = ramark;
}
public String getRamark()
{
return ramark;
}
public void setGoodsVal(BigDecimal goodsVal)
{
this.goodsVal = goodsVal;
}
public BigDecimal getGoodsVal()
{
return goodsVal;
}
public void setOrderType(Integer orderType)
{
this.orderType = orderType;
}
public Integer getOrderType()
{
return orderType;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("orderNum", getOrderNum())
.append("userId", getUserId())
.append("userName", getUserName())
.append("userPhone", getUserPhone())
.append("userProvince", getUserProvince())
.append("userCity", getUserCity())
.append("userArea", getUserArea())
.append("userAddress", getUserAddress())
.append("stationId", getStationId())
.append("stationName", getStationName())
.append("stationPhone", getStationPhone())
.append("stationProvince", getStationProvince())
.append("stationCity", getStationCity())
.append("stationArea", getStationArea())
.append("stationAddress", getStationAddress())
.append("orderState", getOrderState())
.append("payState", getPayState())
.append("payType", getPayType())
.append("payNum", getPayNum())
.append("name", getName())
.append("province", getProvince())
.append("city", getCity())
.append("area", getArea())
.append("address", getAddress())
.append("mobile", getMobile())
.append("delieverTime", getDelieverTime())
.append("delieverName", getDelieverName())
.append("delieverMobile", getDelieverMobile())
.append("createTime", getCreateTime())
.append("createUser", getCreateUser())
.append("delieverOver", getDelieverOver())
.append("takeTime", getTakeTime())
.append("finishTime", getFinishTime())
.append("ramark", getRamark())
.append("goodsVal", getGoodsVal())
.append("orderType", getOrderType())
.toString();
}
}
package com.qianhe.system.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
/**
* 订单商品对象 water_order_goods
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterOrderGoods extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 订单id */
@Excel(name = "订单id")
private Long orderId;
/** 订单编号 */
@Excel(name = "订单编号")
private Long orderNum;
/** 商品分类id */
@Excel(name = "商品分类id")
private String goodsTypeId;
/** 商品分类 */
@Excel(name = "商品分类")
private String goodsType;
/** 规格详情 */
@Excel(name = "规格详情")
private String goodsSpe;
/** 商品id */
@Excel(name = "商品id")
private Long goodsId;
/** 商品名称 */
@Excel(name = "商品名称")
private String goodsTitle;
/** 商品数量 */
@Excel(name = "商品数量")
private BigDecimal goodsNum;
/** 商品单价 */
@Excel(name = "商品单价")
private BigDecimal goodsPrice;
/** 商品总价 */
@Excel(name = "商品总价")
private BigDecimal goodsTotal;
/** 创建时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date crateTime;
/** 创建人 */
@Excel(name = "创建人")
private String createUser;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setOrderId(Long orderId)
{
this.orderId = orderId;
}
public Long getOrderId()
{
return orderId;
}
public void setOrderNum(Long orderNum)
{
this.orderNum = orderNum;
}
public Long getOrderNum()
{
return orderNum;
}
public void setGoodsTypeId(String goodsTypeId)
{
this.goodsTypeId = goodsTypeId;
}
public String getGoodsTypeId()
{
return goodsTypeId;
}
public void setGoodsType(String goodsType)
{
this.goodsType = goodsType;
}
public String getGoodsType()
{
return goodsType;
}
public void setGoodsSpe(String goodsSpe)
{
this.goodsSpe = goodsSpe;
}
public String getGoodsSpe()
{
return goodsSpe;
}
public void setGoodsId(Long goodsId)
{
this.goodsId = goodsId;
}
public Long getGoodsId()
{
return goodsId;
}
public void setGoodsTitle(String goodsTitle)
{
this.goodsTitle = goodsTitle;
}
public String getGoodsTitle()
{
return goodsTitle;
}
public void setGoodsNum(BigDecimal goodsNum)
{
this.goodsNum = goodsNum;
}
public BigDecimal getGoodsNum()
{
return goodsNum;
}
public void setGoodsPrice(BigDecimal goodsPrice)
{
this.goodsPrice = goodsPrice;
}
public BigDecimal getGoodsPrice()
{
return goodsPrice;
}
public void setGoodsTotal(BigDecimal goodsTotal)
{
this.goodsTotal = goodsTotal;
}
public BigDecimal getGoodsTotal()
{
return goodsTotal;
}
public void setCrateTime(Date crateTime)
{
this.crateTime = crateTime;
}
public Date getCrateTime()
{
return crateTime;
}
public void setCreateUser(String createUser)
{
this.createUser = createUser;
}
public String getCreateUser()
{
return createUser;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("orderId", getOrderId())
.append("orderNum", getOrderNum())
.append("goodsTypeId", getGoodsTypeId())
.append("goodsType", getGoodsType())
.append("goodsSpe", getGoodsSpe())
.append("goodsId", getGoodsId())
.append("goodsTitle", getGoodsTitle())
.append("goodsNum", getGoodsNum())
.append("goodsPrice", getGoodsPrice())
.append("goodsTotal", getGoodsTotal())
.append("remark", getRemark())
.append("crateTime", getCrateTime())
.append("createUser", getCreateUser())
.toString();
}
}
package com.qianhe.system.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
import java.util.Date;
/**
* 订单日志对象 water_order_log
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterOrderLog extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 付款时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "付款时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date payTime;
/** 付款金额 */
@Excel(name = "付款金额")
private BigDecimal payMoney;
/** 银行返回code */
@Excel(name = "银行返回code")
private String payNum;
/** 退款时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date payBackTime;
/** 退款金额 */
@Excel(name = "退款金额")
private Long payBackMoney;
/** 订单id */
@Excel(name = "订单id")
private Long orderId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setPayTime(Date payTime)
{
this.payTime = payTime;
}
public Date getPayTime()
{
return payTime;
}
public void setPayMoney(BigDecimal payMoney)
{
this.payMoney = payMoney;
}
public BigDecimal getPayMoney()
{
return payMoney;
}
public void setPayNum(String payNum)
{
this.payNum = payNum;
}
public String getPayNum()
{
return payNum;
}
public void setPayBackTime(Date payBackTime)
{
this.payBackTime = payBackTime;
}
public Date getPayBackTime()
{
return payBackTime;
}
public void setPayBackMoney(Long payBackMoney)
{
this.payBackMoney = payBackMoney;
}
public Long getPayBackMoney()
{
return payBackMoney;
}
public void setOrderId(Long orderId)
{
this.orderId = orderId;
}
public Long getOrderId()
{
return orderId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("payTime", getPayTime())
.append("payMoney", getPayMoney())
.append("payNum", getPayNum())
.append("payBackTime", getPayBackTime())
.append("payBackMoney", getPayBackMoney())
.append("createTime", getCreateTime())
.append("orderId", getOrderId())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 商品规格对象 water_spe
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterSpe extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String speTitle;
/** 规格 */
@Excel(name = "规格")
private String spe;
/** 规格值 */
@Excel(name = "规格值")
private String speVal;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setSpeTitle(String speTitle)
{
this.speTitle = speTitle;
}
public String getSpeTitle()
{
return speTitle;
}
public void setSpe(String spe)
{
this.spe = spe;
}
public String getSpe()
{
return spe;
}
public void setSpeVal(String speVal)
{
this.speVal = speVal;
}
public String getSpeVal()
{
return speVal;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("speTitle", getSpeTitle())
.append("spe", getSpe())
.append("speVal", getSpeVal())
.append("createTime", getCreateTime())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.math.BigDecimal;
/**
* 站点对象 water_station
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterStation extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 站点名称 */
@Excel(name = "站点名称")
private String stationName;
/** 电话 */
@Excel(name = "电话")
private Long phoneNum;
/** 详细地址 */
@Excel(name = "详细地址")
private String stationAddress;
/** 经度 */
@Excel(name = "经度")
private BigDecimal stationLon;
/** 纬度 */
@Excel(name = "纬度")
private BigDecimal stationLat;
/** 省份 */
@Excel(name = "省份")
private String province;
/** 城市 */
@Excel(name = "城市")
private String city;
/** 市区 */
@Excel(name = "市区")
private String area;
/** 是否打烊(1营业0打烊) */
@Excel(name = "是否打烊(1营业0打烊)")
private Long isOpen;
/** 创建人 */
@Excel(name = "创建人")
private String createUser;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setStationName(String stationName)
{
this.stationName = stationName;
}
public String getStationName()
{
return stationName;
}
public void setPhoneNum(Long phoneNum)
{
this.phoneNum = phoneNum;
}
public Long getPhoneNum()
{
return phoneNum;
}
public void setStationAddress(String stationAddress)
{
this.stationAddress = stationAddress;
}
public String getStationAddress()
{
return stationAddress;
}
public void setStationLon(BigDecimal stationLon)
{
this.stationLon = stationLon;
}
public BigDecimal getStationLon()
{
return stationLon;
}
public void setStationLat(BigDecimal stationLat)
{
this.stationLat = stationLat;
}
public BigDecimal getStationLat()
{
return stationLat;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setArea(String area)
{
this.area = area;
}
public String getArea()
{
return area;
}
public void setIsOpen(Long isOpen)
{
this.isOpen = isOpen;
}
public Long getIsOpen()
{
return isOpen;
}
public void setCreateUser(String createUser)
{
this.createUser = createUser;
}
public String getCreateUser()
{
return createUser;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("stationName", getStationName())
.append("phoneNum", getPhoneNum())
.append("stationAddress", getStationAddress())
.append("stationLon", getStationLon())
.append("stationLat", getStationLat())
.append("createTime", getCreateTime())
.append("province", getProvince())
.append("city", getCity())
.append("area", getArea())
.append("isOpen", getIsOpen())
.append("createUser", getCreateUser())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 站点用户对象 water_station_user
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterStationUser extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 姓名 */
@Excel(name = "姓名")
private String name;
/** 年龄 */
@Excel(name = "年龄")
private Long age;
/** 性别 */
@Excel(name = "性别")
private Long gender;
/** 手机号 */
@Excel(name = "手机号")
private Long phone;
/** 身份证号 */
@Excel(name = "身份证号")
private String idNum;
/** 站点id */
@Excel(name = "站点id")
private Long stationId;
/** 创建人 */
@Excel(name = "创建人")
private String createUser;
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 setAge(Long age)
{
this.age = age;
}
public Long getAge()
{
return age;
}
public void setGender(Long gender)
{
this.gender = gender;
}
public Long getGender()
{
return gender;
}
public void setPhone(Long phone)
{
this.phone = phone;
}
public Long getPhone()
{
return phone;
}
public void setIdNum(String idNum)
{
this.idNum = idNum;
}
public String getIdNum()
{
return idNum;
}
public void setStationId(Long stationId)
{
this.stationId = stationId;
}
public Long getStationId()
{
return stationId;
}
public void setCreateUser(String createUser)
{
this.createUser = createUser;
}
public String getCreateUser()
{
return createUser;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("name", getName())
.append("age", getAge())
.append("gender", getGender())
.append("phone", getPhone())
.append("idNum", getIdNum())
.append("stationId", getStationId())
.append("createTime", getCreateTime())
.append("createUser", getCreateUser())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 通知公告文本对象 water_text
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterText extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 标题(首页公告,用户协议,隐私政策,关于我们) */
@Excel(name = "标题", readConverterExp = "首=页公告,用户协议,隐私政策,关于我们")
private String title;
/** 内容 */
@Excel(name = "内容")
private String content;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("content", getContent())
.append("createTime", getCreateTime())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 用户对象 water_user
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterUser extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 主键 */
private Long id;
/** 昵称 */
@Excel(name = "昵称")
private String nickName;
/** 手机号 */
@Excel(name = "手机号")
private Long phoneNum;
/** 站点名称 */
@Excel(name = "站点名称")
private String stationName;
/** 用户类型 */
@Excel(name = "用户类型")
private String userType;
/** 性别(1男0女) */
@Excel(name = "性别(1男0女)")
private Long userGender;
/** 状态(0逻辑删除) */
@Excel(name = "状态(0逻辑删除)")
private Long status;
/** 微信小程序open_id */
@Excel(name = "微信小程序open_id")
private String openId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setNickName(String nickName)
{
this.nickName = nickName;
}
public String getNickName()
{
return nickName;
}
public void setPhoneNum(Long phoneNum)
{
this.phoneNum = phoneNum;
}
public Long getPhoneNum()
{
return phoneNum;
}
public void setStationName(String stationName)
{
this.stationName = stationName;
}
public String getStationName()
{
return stationName;
}
public void setUserType(String userType)
{
this.userType = userType;
}
public String getUserType()
{
return userType;
}
public void setUserGender(Long userGender)
{
this.userGender = userGender;
}
public Long getUserGender()
{
return userGender;
}
public void setStatus(Long status)
{
this.status = status;
}
public Long getStatus()
{
return status;
}
public void setOpenId(String openId)
{
this.openId = openId;
}
public String getOpenId()
{
return openId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("nickName", getNickName())
.append("phoneNum", getPhoneNum())
.append("stationName", getStationName())
.append("userType", getUserType())
.append("userGender", getUserGender())
.append("createTime", getCreateTime())
.append("status", getStatus())
.append("openId", getOpenId())
.toString();
}
}
package com.qianhe.system.domain;
import com.qianhe.common.annotation.Excel;
import com.qianhe.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 用户地址对象 water_user_address
*
* @author qianhe
* @date 2023-11-23
*/
public class WaterUserAddress extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 用户id */
@Excel(name = "用户id")
private Long waterUserId;
/** 详细地址 */
@Excel(name = "详细地址")
private String userAddress;
/** 省 */
@Excel(name = "省")
private String province;
/** 市 */
@Excel(name = "市")
private String city;
/** 区 */
@Excel(name = "区")
private String area;
/** 收货人姓名 */
@Excel(name = "收货人姓名")
private String name;
/** 收货人手机号 */
@Excel(name = "收货人手机号")
private Long phone;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setWaterUserId(Long waterUserId)
{
this.waterUserId = waterUserId;
}
public Long getWaterUserId()
{
return waterUserId;
}
public void setUserAddress(String userAddress)
{
this.userAddress = userAddress;
}
public String getUserAddress()
{
return userAddress;
}
public void setProvince(String province)
{
this.province = province;
}
public String getProvince()
{
return province;
}
public void setCity(String city)
{
this.city = city;
}
public String getCity()
{
return city;
}
public void setArea(String area)
{
this.area = area;
}
public String getArea()
{
return area;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setPhone(Long phone)
{
this.phone = phone;
}
public Long getPhone()
{
return phone;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("waterUserId", getWaterUserId())
.append("userAddress", getUserAddress())
.append("province", getProvince())
.append("city", getCity())
.append("area", getArea())
.append("name", getName())
.append("phone", getPhone())
.toString();
}
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterGoodsImg;
import java.util.List;
/**
* 商品图片Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterGoodsImgMapper
{
/**
* 查询商品图片
*
* @param id 商品图片主键
* @return 商品图片
*/
public WaterGoodsImg selectWaterGoodsImgById(Long id);
/**
* 查询商品图片列表
*
* @param waterGoodsImg 商品图片
* @return 商品图片集合
*/
public List<WaterGoodsImg> selectWaterGoodsImgList(WaterGoodsImg waterGoodsImg);
/**
* 新增商品图片
*
* @param waterGoodsImg 商品图片
* @return 结果
*/
public int insertWaterGoodsImg(WaterGoodsImg waterGoodsImg);
/**
* 修改商品图片
*
* @param waterGoodsImg 商品图片
* @return 结果
*/
public int updateWaterGoodsImg(WaterGoodsImg waterGoodsImg);
/**
* 删除商品图片
*
* @param id 商品图片主键
* @return 结果
*/
public int deleteWaterGoodsImgById(Long id);
/**
* 批量删除商品图片
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterGoodsImgByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterGoods;
import java.util.List;
/**
* 商品Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterGoodsMapper
{
/**
* 查询商品
*
* @param id 商品主键
* @return 商品
*/
public WaterGoods selectWaterGoodsById(Long id);
/**
* 查询商品列表
*
* @param waterGoods 商品
* @return 商品集合
*/
public List<WaterGoods> selectWaterGoodsList(WaterGoods waterGoods);
/**
* 新增商品
*
* @param waterGoods 商品
* @return 结果
*/
public int insertWaterGoods(WaterGoods waterGoods);
/**
* 修改商品
*
* @param waterGoods 商品
* @return 结果
*/
public int updateWaterGoods(WaterGoods waterGoods);
/**
* 删除商品
*
* @param id 商品主键
* @return 结果
*/
public int deleteWaterGoodsById(Long id);
/**
* 批量删除商品
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterGoodsByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterGoodsSpe;
import java.util.List;
/**
* 商品关联规格Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterGoodsSpeMapper
{
/**
* 查询商品关联规格
*
* @param id 商品关联规格主键
* @return 商品关联规格
*/
public WaterGoodsSpe selectWaterGoodsSpeById(Long id);
/**
* 查询商品关联规格列表
*
* @param waterGoodsSpe 商品关联规格
* @return 商品关联规格集合
*/
public List<WaterGoodsSpe> selectWaterGoodsSpeList(WaterGoodsSpe waterGoodsSpe);
/**
* 新增商品关联规格
*
* @param waterGoodsSpe 商品关联规格
* @return 结果
*/
public int insertWaterGoodsSpe(WaterGoodsSpe waterGoodsSpe);
/**
* 修改商品关联规格
*
* @param waterGoodsSpe 商品关联规格
* @return 结果
*/
public int updateWaterGoodsSpe(WaterGoodsSpe waterGoodsSpe);
/**
* 删除商品关联规格
*
* @param id 商品关联规格主键
* @return 结果
*/
public int deleteWaterGoodsSpeById(Long id);
/**
* 批量删除商品关联规格
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterGoodsSpeByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterGoodsType;
import java.util.List;
/**
* 商品分类Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterGoodsTypeMapper
{
/**
* 查询商品分类
*
* @param id 商品分类主键
* @return 商品分类
*/
public WaterGoodsType selectWaterGoodsTypeById(Long id);
/**
* 查询商品分类列表
*
* @param waterGoodsType 商品分类
* @return 商品分类集合
*/
public List<WaterGoodsType> selectWaterGoodsTypeList(WaterGoodsType waterGoodsType);
/**
* 新增商品分类
*
* @param waterGoodsType 商品分类
* @return 结果
*/
public int insertWaterGoodsType(WaterGoodsType waterGoodsType);
/**
* 修改商品分类
*
* @param waterGoodsType 商品分类
* @return 结果
*/
public int updateWaterGoodsType(WaterGoodsType waterGoodsType);
/**
* 删除商品分类
*
* @param id 商品分类主键
* @return 结果
*/
public int deleteWaterGoodsTypeById(Long id);
/**
* 批量删除商品分类
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterGoodsTypeByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterOrderGoods;
import java.util.List;
/**
* 订单商品Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterOrderGoodsMapper
{
/**
* 查询订单商品
*
* @param id 订单商品主键
* @return 订单商品
*/
public WaterOrderGoods selectWaterOrderGoodsById(Long id);
/**
* 查询订单商品列表
*
* @param waterOrderGoods 订单商品
* @return 订单商品集合
*/
public List<WaterOrderGoods> selectWaterOrderGoodsList(WaterOrderGoods waterOrderGoods);
/**
* 新增订单商品
*
* @param waterOrderGoods 订单商品
* @return 结果
*/
public int insertWaterOrderGoods(WaterOrderGoods waterOrderGoods);
/**
* 修改订单商品
*
* @param waterOrderGoods 订单商品
* @return 结果
*/
public int updateWaterOrderGoods(WaterOrderGoods waterOrderGoods);
/**
* 删除订单商品
*
* @param id 订单商品主键
* @return 结果
*/
public int deleteWaterOrderGoodsById(Long id);
/**
* 批量删除订单商品
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterOrderGoodsByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterOrderLog;
import java.util.List;
/**
* 订单日志Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterOrderLogMapper
{
/**
* 查询订单日志
*
* @param id 订单日志主键
* @return 订单日志
*/
public WaterOrderLog selectWaterOrderLogById(Long id);
/**
* 查询订单日志列表
*
* @param waterOrderLog 订单日志
* @return 订单日志集合
*/
public List<WaterOrderLog> selectWaterOrderLogList(WaterOrderLog waterOrderLog);
/**
* 新增订单日志
*
* @param waterOrderLog 订单日志
* @return 结果
*/
public int insertWaterOrderLog(WaterOrderLog waterOrderLog);
/**
* 修改订单日志
*
* @param waterOrderLog 订单日志
* @return 结果
*/
public int updateWaterOrderLog(WaterOrderLog waterOrderLog);
/**
* 删除订单日志
*
* @param id 订单日志主键
* @return 结果
*/
public int deleteWaterOrderLogById(Long id);
/**
* 批量删除订单日志
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterOrderLogByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterOrder;
import java.util.List;
/**
* 订单Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterOrderMapper
{
/**
* 查询订单
*
* @param id 订单主键
* @return 订单
*/
public WaterOrder selectWaterOrderById(Long id);
/**
* 查询订单列表
*
* @param waterOrder 订单
* @return 订单集合
*/
public List<WaterOrder> selectWaterOrderList(WaterOrder waterOrder);
/**
* 新增订单
*
* @param waterOrder 订单
* @return 结果
*/
public int insertWaterOrder(WaterOrder waterOrder);
/**
* 修改订单
*
* @param waterOrder 订单
* @return 结果
*/
public int updateWaterOrder(WaterOrder waterOrder);
/**
* 删除订单
*
* @param id 订单主键
* @return 结果
*/
public int deleteWaterOrderById(Long id);
/**
* 批量删除订单
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterOrderByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterSpe;
import java.util.List;
/**
* 商品规格Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterSpeMapper
{
/**
* 查询商品规格
*
* @param id 商品规格主键
* @return 商品规格
*/
public WaterSpe selectWaterSpeById(Long id);
/**
* 查询商品规格列表
*
* @param waterSpe 商品规格
* @return 商品规格集合
*/
public List<WaterSpe> selectWaterSpeList(WaterSpe waterSpe);
/**
* 新增商品规格
*
* @param waterSpe 商品规格
* @return 结果
*/
public int insertWaterSpe(WaterSpe waterSpe);
/**
* 修改商品规格
*
* @param waterSpe 商品规格
* @return 结果
*/
public int updateWaterSpe(WaterSpe waterSpe);
/**
* 删除商品规格
*
* @param id 商品规格主键
* @return 结果
*/
public int deleteWaterSpeById(Long id);
/**
* 批量删除商品规格
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterSpeByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterStation;
import java.util.List;
/**
* 站点Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterStationMapper
{
/**
* 查询站点
*
* @param id 站点主键
* @return 站点
*/
public WaterStation selectWaterStationById(Long id);
/**
* 查询站点列表
*
* @param waterStation 站点
* @return 站点集合
*/
public List<WaterStation> selectWaterStationList(WaterStation waterStation);
/**
* 新增站点
*
* @param waterStation 站点
* @return 结果
*/
public int insertWaterStation(WaterStation waterStation);
/**
* 修改站点
*
* @param waterStation 站点
* @return 结果
*/
public int updateWaterStation(WaterStation waterStation);
/**
* 删除站点
*
* @param id 站点主键
* @return 结果
*/
public int deleteWaterStationById(Long id);
/**
* 批量删除站点
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterStationByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterStationUser;
import java.util.List;
/**
* 站点用户Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterStationUserMapper
{
/**
* 查询站点用户
*
* @param id 站点用户主键
* @return 站点用户
*/
public WaterStationUser selectWaterStationUserById(Long id);
/**
* 查询站点用户列表
*
* @param waterStationUser 站点用户
* @return 站点用户集合
*/
public List<WaterStationUser> selectWaterStationUserList(WaterStationUser waterStationUser);
/**
* 新增站点用户
*
* @param waterStationUser 站点用户
* @return 结果
*/
public int insertWaterStationUser(WaterStationUser waterStationUser);
/**
* 修改站点用户
*
* @param waterStationUser 站点用户
* @return 结果
*/
public int updateWaterStationUser(WaterStationUser waterStationUser);
/**
* 删除站点用户
*
* @param id 站点用户主键
* @return 结果
*/
public int deleteWaterStationUserById(Long id);
/**
* 批量删除站点用户
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterStationUserByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterText;
import java.util.List;
/**
* 通知公告文本Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterTextMapper
{
/**
* 查询通知公告文本
*
* @param id 通知公告文本主键
* @return 通知公告文本
*/
public WaterText selectWaterTextById(Long id);
/**
* 查询通知公告文本列表
*
* @param waterText 通知公告文本
* @return 通知公告文本集合
*/
public List<WaterText> selectWaterTextList(WaterText waterText);
/**
* 新增通知公告文本
*
* @param waterText 通知公告文本
* @return 结果
*/
public int insertWaterText(WaterText waterText);
/**
* 修改通知公告文本
*
* @param waterText 通知公告文本
* @return 结果
*/
public int updateWaterText(WaterText waterText);
/**
* 删除通知公告文本
*
* @param id 通知公告文本主键
* @return 结果
*/
public int deleteWaterTextById(Long id);
/**
* 批量删除通知公告文本
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterTextByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterUserAddress;
import java.util.List;
/**
* 用户地址Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterUserAddressMapper
{
/**
* 查询用户地址
*
* @param id 用户地址主键
* @return 用户地址
*/
public WaterUserAddress selectWaterUserAddressById(Long id);
/**
* 查询用户地址列表
*
* @param waterUserAddress 用户地址
* @return 用户地址集合
*/
public List<WaterUserAddress> selectWaterUserAddressList(WaterUserAddress waterUserAddress);
/**
* 新增用户地址
*
* @param waterUserAddress 用户地址
* @return 结果
*/
public int insertWaterUserAddress(WaterUserAddress waterUserAddress);
/**
* 修改用户地址
*
* @param waterUserAddress 用户地址
* @return 结果
*/
public int updateWaterUserAddress(WaterUserAddress waterUserAddress);
/**
* 删除用户地址
*
* @param id 用户地址主键
* @return 结果
*/
public int deleteWaterUserAddressById(Long id);
/**
* 批量删除用户地址
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterUserAddressByIds(Long[] ids);
}
package com.qianhe.system.mapper;
import com.qianhe.system.domain.WaterUser;
import java.util.List;
/**
* 用户Mapper接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface WaterUserMapper
{
/**
* 查询用户
*
* @param id 用户主键
* @return 用户
*/
public WaterUser selectWaterUserById(Long id);
/**
* 查询用户列表
*
* @param waterUser 用户
* @return 用户集合
*/
public List<WaterUser> selectWaterUserList(WaterUser waterUser);
/**
* 新增用户
*
* @param waterUser 用户
* @return 结果
*/
public int insertWaterUser(WaterUser waterUser);
/**
* 修改用户
*
* @param waterUser 用户
* @return 结果
*/
public int updateWaterUser(WaterUser waterUser);
/**
* 删除用户
*
* @param id 用户主键
* @return 结果
*/
public int deleteWaterUserById(Long id);
/**
* 批量删除用户
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteWaterUserByIds(Long[] ids);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterGoodsImg;
import java.util.List;
/**
* 商品图片Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterGoodsImgService
{
/**
* 查询商品图片
*
* @param id 商品图片主键
* @return 商品图片
*/
public WaterGoodsImg selectWaterGoodsImgById(Long id);
/**
* 查询商品图片列表
*
* @param waterGoodsImg 商品图片
* @return 商品图片集合
*/
public List<WaterGoodsImg> selectWaterGoodsImgList(WaterGoodsImg waterGoodsImg);
/**
* 新增商品图片
*
* @param waterGoodsImg 商品图片
* @return 结果
*/
public int insertWaterGoodsImg(WaterGoodsImg waterGoodsImg);
/**
* 修改商品图片
*
* @param waterGoodsImg 商品图片
* @return 结果
*/
public int updateWaterGoodsImg(WaterGoodsImg waterGoodsImg);
/**
* 批量删除商品图片
*
* @param ids 需要删除的商品图片主键集合
* @return 结果
*/
public int deleteWaterGoodsImgByIds(Long[] ids);
/**
* 删除商品图片信息
*
* @param id 商品图片主键
* @return 结果
*/
public int deleteWaterGoodsImgById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterGoods;
import java.util.List;
/**
* 商品Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterGoodsService
{
/**
* 查询商品
*
* @param id 商品主键
* @return 商品
*/
public WaterGoods selectWaterGoodsById(Long id);
/**
* 查询商品列表
*
* @param waterGoods 商品
* @return 商品集合
*/
public List<WaterGoods> selectWaterGoodsList(WaterGoods waterGoods);
/**
* 新增商品
*
* @param waterGoods 商品
* @return 结果
*/
public int insertWaterGoods(WaterGoods waterGoods);
/**
* 修改商品
*
* @param waterGoods 商品
* @return 结果
*/
public int updateWaterGoods(WaterGoods waterGoods);
/**
* 批量删除商品
*
* @param ids 需要删除的商品主键集合
* @return 结果
*/
public int deleteWaterGoodsByIds(Long[] ids);
/**
* 删除商品信息
*
* @param id 商品主键
* @return 结果
*/
public int deleteWaterGoodsById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterGoodsSpe;
import java.util.List;
/**
* 商品关联规格Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterGoodsSpeService
{
/**
* 查询商品关联规格
*
* @param id 商品关联规格主键
* @return 商品关联规格
*/
public WaterGoodsSpe selectWaterGoodsSpeById(Long id);
/**
* 查询商品关联规格列表
*
* @param waterGoodsSpe 商品关联规格
* @return 商品关联规格集合
*/
public List<WaterGoodsSpe> selectWaterGoodsSpeList(WaterGoodsSpe waterGoodsSpe);
/**
* 新增商品关联规格
*
* @param waterGoodsSpe 商品关联规格
* @return 结果
*/
public int insertWaterGoodsSpe(WaterGoodsSpe waterGoodsSpe);
/**
* 修改商品关联规格
*
* @param waterGoodsSpe 商品关联规格
* @return 结果
*/
public int updateWaterGoodsSpe(WaterGoodsSpe waterGoodsSpe);
/**
* 批量删除商品关联规格
*
* @param ids 需要删除的商品关联规格主键集合
* @return 结果
*/
public int deleteWaterGoodsSpeByIds(Long[] ids);
/**
* 删除商品关联规格信息
*
* @param id 商品关联规格主键
* @return 结果
*/
public int deleteWaterGoodsSpeById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterGoodsType;
import java.util.List;
/**
* 商品分类Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterGoodsTypeService
{
/**
* 查询商品分类
*
* @param id 商品分类主键
* @return 商品分类
*/
public WaterGoodsType selectWaterGoodsTypeById(Long id);
/**
* 查询商品分类列表
*
* @param waterGoodsType 商品分类
* @return 商品分类集合
*/
public List<WaterGoodsType> selectWaterGoodsTypeList(WaterGoodsType waterGoodsType);
/**
* 新增商品分类
*
* @param waterGoodsType 商品分类
* @return 结果
*/
public int insertWaterGoodsType(WaterGoodsType waterGoodsType);
/**
* 修改商品分类
*
* @param waterGoodsType 商品分类
* @return 结果
*/
public int updateWaterGoodsType(WaterGoodsType waterGoodsType);
/**
* 批量删除商品分类
*
* @param ids 需要删除的商品分类主键集合
* @return 结果
*/
public int deleteWaterGoodsTypeByIds(Long[] ids);
/**
* 删除商品分类信息
*
* @param id 商品分类主键
* @return 结果
*/
public int deleteWaterGoodsTypeById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterOrderGoods;
import java.util.List;
/**
* 订单商品Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterOrderGoodsService
{
/**
* 查询订单商品
*
* @param id 订单商品主键
* @return 订单商品
*/
public WaterOrderGoods selectWaterOrderGoodsById(Long id);
/**
* 查询订单商品列表
*
* @param waterOrderGoods 订单商品
* @return 订单商品集合
*/
public List<WaterOrderGoods> selectWaterOrderGoodsList(WaterOrderGoods waterOrderGoods);
/**
* 新增订单商品
*
* @param waterOrderGoods 订单商品
* @return 结果
*/
public int insertWaterOrderGoods(WaterOrderGoods waterOrderGoods);
/**
* 修改订单商品
*
* @param waterOrderGoods 订单商品
* @return 结果
*/
public int updateWaterOrderGoods(WaterOrderGoods waterOrderGoods);
/**
* 批量删除订单商品
*
* @param ids 需要删除的订单商品主键集合
* @return 结果
*/
public int deleteWaterOrderGoodsByIds(Long[] ids);
/**
* 删除订单商品信息
*
* @param id 订单商品主键
* @return 结果
*/
public int deleteWaterOrderGoodsById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterOrderLog;
import java.util.List;
/**
* 订单日志Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterOrderLogService
{
/**
* 查询订单日志
*
* @param id 订单日志主键
* @return 订单日志
*/
public WaterOrderLog selectWaterOrderLogById(Long id);
/**
* 查询订单日志列表
*
* @param waterOrderLog 订单日志
* @return 订单日志集合
*/
public List<WaterOrderLog> selectWaterOrderLogList(WaterOrderLog waterOrderLog);
/**
* 新增订单日志
*
* @param waterOrderLog 订单日志
* @return 结果
*/
public int insertWaterOrderLog(WaterOrderLog waterOrderLog);
/**
* 修改订单日志
*
* @param waterOrderLog 订单日志
* @return 结果
*/
public int updateWaterOrderLog(WaterOrderLog waterOrderLog);
/**
* 批量删除订单日志
*
* @param ids 需要删除的订单日志主键集合
* @return 结果
*/
public int deleteWaterOrderLogByIds(Long[] ids);
/**
* 删除订单日志信息
*
* @param id 订单日志主键
* @return 结果
*/
public int deleteWaterOrderLogById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterOrder;
import java.util.List;
/**
* 订单Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterOrderService
{
/**
* 查询订单
*
* @param id 订单主键
* @return 订单
*/
public WaterOrder selectWaterOrderById(Long id);
/**
* 查询订单列表
*
* @param waterOrder 订单
* @return 订单集合
*/
public List<WaterOrder> selectWaterOrderList(WaterOrder waterOrder);
/**
* 新增订单
*
* @param waterOrder 订单
* @return 结果
*/
public int insertWaterOrder(WaterOrder waterOrder);
/**
* 修改订单
*
* @param waterOrder 订单
* @return 结果
*/
public int updateWaterOrder(WaterOrder waterOrder);
/**
* 批量删除订单
*
* @param ids 需要删除的订单主键集合
* @return 结果
*/
public int deleteWaterOrderByIds(Long[] ids);
/**
* 删除订单信息
*
* @param id 订单主键
* @return 结果
*/
public int deleteWaterOrderById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterSpe;
import java.util.List;
/**
* 商品规格Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterSpeService
{
/**
* 查询商品规格
*
* @param id 商品规格主键
* @return 商品规格
*/
public WaterSpe selectWaterSpeById(Long id);
/**
* 查询商品规格列表
*
* @param waterSpe 商品规格
* @return 商品规格集合
*/
public List<WaterSpe> selectWaterSpeList(WaterSpe waterSpe);
/**
* 新增商品规格
*
* @param waterSpe 商品规格
* @return 结果
*/
public int insertWaterSpe(WaterSpe waterSpe);
/**
* 修改商品规格
*
* @param waterSpe 商品规格
* @return 结果
*/
public int updateWaterSpe(WaterSpe waterSpe);
/**
* 批量删除商品规格
*
* @param ids 需要删除的商品规格主键集合
* @return 结果
*/
public int deleteWaterSpeByIds(Long[] ids);
/**
* 删除商品规格信息
*
* @param id 商品规格主键
* @return 结果
*/
public int deleteWaterSpeById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterStation;
import java.util.List;
/**
* 站点Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterStationService
{
/**
* 查询站点
*
* @param id 站点主键
* @return 站点
*/
public WaterStation selectWaterStationById(Long id);
/**
* 查询站点列表
*
* @param waterStation 站点
* @return 站点集合
*/
public List<WaterStation> selectWaterStationList(WaterStation waterStation);
/**
* 新增站点
*
* @param waterStation 站点
* @return 结果
*/
public int insertWaterStation(WaterStation waterStation);
/**
* 修改站点
*
* @param waterStation 站点
* @return 结果
*/
public int updateWaterStation(WaterStation waterStation);
/**
* 批量删除站点
*
* @param ids 需要删除的站点主键集合
* @return 结果
*/
public int deleteWaterStationByIds(Long[] ids);
/**
* 删除站点信息
*
* @param id 站点主键
* @return 结果
*/
public int deleteWaterStationById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterStationUser;
import java.util.List;
/**
* 站点用户Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterStationUserService
{
/**
* 查询站点用户
*
* @param id 站点用户主键
* @return 站点用户
*/
public WaterStationUser selectWaterStationUserById(Long id);
/**
* 查询站点用户列表
*
* @param waterStationUser 站点用户
* @return 站点用户集合
*/
public List<WaterStationUser> selectWaterStationUserList(WaterStationUser waterStationUser);
/**
* 新增站点用户
*
* @param waterStationUser 站点用户
* @return 结果
*/
public int insertWaterStationUser(WaterStationUser waterStationUser);
/**
* 修改站点用户
*
* @param waterStationUser 站点用户
* @return 结果
*/
public int updateWaterStationUser(WaterStationUser waterStationUser);
/**
* 批量删除站点用户
*
* @param ids 需要删除的站点用户主键集合
* @return 结果
*/
public int deleteWaterStationUserByIds(Long[] ids);
/**
* 删除站点用户信息
*
* @param id 站点用户主键
* @return 结果
*/
public int deleteWaterStationUserById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterText;
import java.util.List;
/**
* 通知公告文本Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterTextService
{
/**
* 查询通知公告文本
*
* @param id 通知公告文本主键
* @return 通知公告文本
*/
public WaterText selectWaterTextById(Long id);
/**
* 查询通知公告文本列表
*
* @param waterText 通知公告文本
* @return 通知公告文本集合
*/
public List<WaterText> selectWaterTextList(WaterText waterText);
/**
* 新增通知公告文本
*
* @param waterText 通知公告文本
* @return 结果
*/
public int insertWaterText(WaterText waterText);
/**
* 修改通知公告文本
*
* @param waterText 通知公告文本
* @return 结果
*/
public int updateWaterText(WaterText waterText);
/**
* 批量删除通知公告文本
*
* @param ids 需要删除的通知公告文本主键集合
* @return 结果
*/
public int deleteWaterTextByIds(Long[] ids);
/**
* 删除通知公告文本信息
*
* @param id 通知公告文本主键
* @return 结果
*/
public int deleteWaterTextById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterUserAddress;
import java.util.List;
/**
* 用户地址Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterUserAddressService
{
/**
* 查询用户地址
*
* @param id 用户地址主键
* @return 用户地址
*/
public WaterUserAddress selectWaterUserAddressById(Long id);
/**
* 查询用户地址列表
*
* @param waterUserAddress 用户地址
* @return 用户地址集合
*/
public List<WaterUserAddress> selectWaterUserAddressList(WaterUserAddress waterUserAddress);
/**
* 新增用户地址
*
* @param waterUserAddress 用户地址
* @return 结果
*/
public int insertWaterUserAddress(WaterUserAddress waterUserAddress);
/**
* 修改用户地址
*
* @param waterUserAddress 用户地址
* @return 结果
*/
public int updateWaterUserAddress(WaterUserAddress waterUserAddress);
/**
* 批量删除用户地址
*
* @param ids 需要删除的用户地址主键集合
* @return 结果
*/
public int deleteWaterUserAddressByIds(Long[] ids);
/**
* 删除用户地址信息
*
* @param id 用户地址主键
* @return 结果
*/
public int deleteWaterUserAddressById(Long id);
}
package com.qianhe.system.service;
import com.qianhe.system.domain.WaterUser;
import java.util.List;
/**
* 用户Service接口
*
* @author qianhe
* @date 2023-11-23
*/
public interface IWaterUserService
{
/**
* 查询用户
*
* @param id 用户主键
* @return 用户
*/
public WaterUser selectWaterUserById(Long id);
/**
* 查询用户列表
*
* @param waterUser 用户
* @return 用户集合
*/
public List<WaterUser> selectWaterUserList(WaterUser waterUser);
/**
* 新增用户
*
* @param waterUser 用户
* @return 结果
*/
public int insertWaterUser(WaterUser waterUser);
/**
* 修改用户
*
* @param waterUser 用户
* @return 结果
*/
public int updateWaterUser(WaterUser waterUser);
/**
* 批量删除用户
*
* @param ids 需要删除的用户主键集合
* @return 结果
*/
public int deleteWaterUserByIds(Long[] ids);
/**
* 删除用户信息
*
* @param id 用户主键
* @return 结果
*/
public int deleteWaterUserById(Long id);
}
package com.qianhe.system.service.impl;
import com.qianhe.system.domain.WaterGoodsImg;
import com.qianhe.system.mapper.WaterGoodsImgMapper;
import com.qianhe.system.service.IWaterGoodsImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 商品图片Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterGoodsImgServiceImpl implements IWaterGoodsImgService
{
@Autowired
private WaterGoodsImgMapper waterGoodsImgMapper;
/**
* 查询商品图片
*
* @param id 商品图片主键
* @return 商品图片
*/
@Override
public WaterGoodsImg selectWaterGoodsImgById(Long id)
{
return waterGoodsImgMapper.selectWaterGoodsImgById(id);
}
/**
* 查询商品图片列表
*
* @param waterGoodsImg 商品图片
* @return 商品图片
*/
@Override
public List<WaterGoodsImg> selectWaterGoodsImgList(WaterGoodsImg waterGoodsImg)
{
return waterGoodsImgMapper.selectWaterGoodsImgList(waterGoodsImg);
}
/**
* 新增商品图片
*
* @param waterGoodsImg 商品图片
* @return 结果
*/
@Override
public int insertWaterGoodsImg(WaterGoodsImg waterGoodsImg)
{
return waterGoodsImgMapper.insertWaterGoodsImg(waterGoodsImg);
}
/**
* 修改商品图片
*
* @param waterGoodsImg 商品图片
* @return 结果
*/
@Override
public int updateWaterGoodsImg(WaterGoodsImg waterGoodsImg)
{
return waterGoodsImgMapper.updateWaterGoodsImg(waterGoodsImg);
}
/**
* 批量删除商品图片
*
* @param ids 需要删除的商品图片主键
* @return 结果
*/
@Override
public int deleteWaterGoodsImgByIds(Long[] ids)
{
return waterGoodsImgMapper.deleteWaterGoodsImgByIds(ids);
}
/**
* 删除商品图片信息
*
* @param id 商品图片主键
* @return 结果
*/
@Override
public int deleteWaterGoodsImgById(Long id)
{
return waterGoodsImgMapper.deleteWaterGoodsImgById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterGoods;
import com.qianhe.system.mapper.WaterGoodsMapper;
import com.qianhe.system.service.IWaterGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 商品Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterGoodsServiceImpl implements IWaterGoodsService
{
@Autowired
private WaterGoodsMapper waterGoodsMapper;
/**
* 查询商品
*
* @param id 商品主键
* @return 商品
*/
@Override
public WaterGoods selectWaterGoodsById(Long id)
{
return waterGoodsMapper.selectWaterGoodsById(id);
}
/**
* 查询商品列表
*
* @param waterGoods 商品
* @return 商品
*/
@Override
public List<WaterGoods> selectWaterGoodsList(WaterGoods waterGoods)
{
return waterGoodsMapper.selectWaterGoodsList(waterGoods);
}
/**
* 新增商品
*
* @param waterGoods 商品
* @return 结果
*/
@Override
public int insertWaterGoods(WaterGoods waterGoods)
{
waterGoods.setCreateTime(DateUtils.getNowDate());
return waterGoodsMapper.insertWaterGoods(waterGoods);
}
/**
* 修改商品
*
* @param waterGoods 商品
* @return 结果
*/
@Override
public int updateWaterGoods(WaterGoods waterGoods)
{
return waterGoodsMapper.updateWaterGoods(waterGoods);
}
/**
* 批量删除商品
*
* @param ids 需要删除的商品主键
* @return 结果
*/
@Override
public int deleteWaterGoodsByIds(Long[] ids)
{
return waterGoodsMapper.deleteWaterGoodsByIds(ids);
}
/**
* 删除商品信息
*
* @param id 商品主键
* @return 结果
*/
@Override
public int deleteWaterGoodsById(Long id)
{
return waterGoodsMapper.deleteWaterGoodsById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterGoodsSpe;
import com.qianhe.system.mapper.WaterGoodsSpeMapper;
import com.qianhe.system.service.IWaterGoodsSpeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 商品关联规格Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterGoodsSpeServiceImpl implements IWaterGoodsSpeService
{
@Autowired
private WaterGoodsSpeMapper waterGoodsSpeMapper;
/**
* 查询商品关联规格
*
* @param id 商品关联规格主键
* @return 商品关联规格
*/
@Override
public WaterGoodsSpe selectWaterGoodsSpeById(Long id)
{
return waterGoodsSpeMapper.selectWaterGoodsSpeById(id);
}
/**
* 查询商品关联规格列表
*
* @param waterGoodsSpe 商品关联规格
* @return 商品关联规格
*/
@Override
public List<WaterGoodsSpe> selectWaterGoodsSpeList(WaterGoodsSpe waterGoodsSpe)
{
return waterGoodsSpeMapper.selectWaterGoodsSpeList(waterGoodsSpe);
}
/**
* 新增商品关联规格
*
* @param waterGoodsSpe 商品关联规格
* @return 结果
*/
@Override
public int insertWaterGoodsSpe(WaterGoodsSpe waterGoodsSpe)
{
waterGoodsSpe.setCreateTime(DateUtils.getNowDate());
return waterGoodsSpeMapper.insertWaterGoodsSpe(waterGoodsSpe);
}
/**
* 修改商品关联规格
*
* @param waterGoodsSpe 商品关联规格
* @return 结果
*/
@Override
public int updateWaterGoodsSpe(WaterGoodsSpe waterGoodsSpe)
{
return waterGoodsSpeMapper.updateWaterGoodsSpe(waterGoodsSpe);
}
/**
* 批量删除商品关联规格
*
* @param ids 需要删除的商品关联规格主键
* @return 结果
*/
@Override
public int deleteWaterGoodsSpeByIds(Long[] ids)
{
return waterGoodsSpeMapper.deleteWaterGoodsSpeByIds(ids);
}
/**
* 删除商品关联规格信息
*
* @param id 商品关联规格主键
* @return 结果
*/
@Override
public int deleteWaterGoodsSpeById(Long id)
{
return waterGoodsSpeMapper.deleteWaterGoodsSpeById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterGoodsType;
import com.qianhe.system.mapper.WaterGoodsTypeMapper;
import com.qianhe.system.service.IWaterGoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 商品分类Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterGoodsTypeServiceImpl implements IWaterGoodsTypeService
{
@Autowired
private WaterGoodsTypeMapper waterGoodsTypeMapper;
/**
* 查询商品分类
*
* @param id 商品分类主键
* @return 商品分类
*/
@Override
public WaterGoodsType selectWaterGoodsTypeById(Long id)
{
return waterGoodsTypeMapper.selectWaterGoodsTypeById(id);
}
/**
* 查询商品分类列表
*
* @param waterGoodsType 商品分类
* @return 商品分类
*/
@Override
public List<WaterGoodsType> selectWaterGoodsTypeList(WaterGoodsType waterGoodsType)
{
return waterGoodsTypeMapper.selectWaterGoodsTypeList(waterGoodsType);
}
/**
* 新增商品分类
*
* @param waterGoodsType 商品分类
* @return 结果
*/
@Override
public int insertWaterGoodsType(WaterGoodsType waterGoodsType)
{
waterGoodsType.setCreateTime(DateUtils.getNowDate());
return waterGoodsTypeMapper.insertWaterGoodsType(waterGoodsType);
}
/**
* 修改商品分类
*
* @param waterGoodsType 商品分类
* @return 结果
*/
@Override
public int updateWaterGoodsType(WaterGoodsType waterGoodsType)
{
return waterGoodsTypeMapper.updateWaterGoodsType(waterGoodsType);
}
/**
* 批量删除商品分类
*
* @param ids 需要删除的商品分类主键
* @return 结果
*/
@Override
public int deleteWaterGoodsTypeByIds(Long[] ids)
{
return waterGoodsTypeMapper.deleteWaterGoodsTypeByIds(ids);
}
/**
* 删除商品分类信息
*
* @param id 商品分类主键
* @return 结果
*/
@Override
public int deleteWaterGoodsTypeById(Long id)
{
return waterGoodsTypeMapper.deleteWaterGoodsTypeById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.system.domain.WaterOrderGoods;
import com.qianhe.system.mapper.WaterOrderGoodsMapper;
import com.qianhe.system.service.IWaterOrderGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 订单商品Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterOrderGoodsServiceImpl implements IWaterOrderGoodsService
{
@Autowired
private WaterOrderGoodsMapper waterOrderGoodsMapper;
/**
* 查询订单商品
*
* @param id 订单商品主键
* @return 订单商品
*/
@Override
public WaterOrderGoods selectWaterOrderGoodsById(Long id)
{
return waterOrderGoodsMapper.selectWaterOrderGoodsById(id);
}
/**
* 查询订单商品列表
*
* @param waterOrderGoods 订单商品
* @return 订单商品
*/
@Override
public List<WaterOrderGoods> selectWaterOrderGoodsList(WaterOrderGoods waterOrderGoods)
{
return waterOrderGoodsMapper.selectWaterOrderGoodsList(waterOrderGoods);
}
/**
* 新增订单商品
*
* @param waterOrderGoods 订单商品
* @return 结果
*/
@Override
public int insertWaterOrderGoods(WaterOrderGoods waterOrderGoods)
{
return waterOrderGoodsMapper.insertWaterOrderGoods(waterOrderGoods);
}
/**
* 修改订单商品
*
* @param waterOrderGoods 订单商品
* @return 结果
*/
@Override
public int updateWaterOrderGoods(WaterOrderGoods waterOrderGoods)
{
return waterOrderGoodsMapper.updateWaterOrderGoods(waterOrderGoods);
}
/**
* 批量删除订单商品
*
* @param ids 需要删除的订单商品主键
* @return 结果
*/
@Override
public int deleteWaterOrderGoodsByIds(Long[] ids)
{
return waterOrderGoodsMapper.deleteWaterOrderGoodsByIds(ids);
}
/**
* 删除订单商品信息
*
* @param id 订单商品主键
* @return 结果
*/
@Override
public int deleteWaterOrderGoodsById(Long id)
{
return waterOrderGoodsMapper.deleteWaterOrderGoodsById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterOrderLog;
import com.qianhe.system.mapper.WaterOrderLogMapper;
import com.qianhe.system.service.IWaterOrderLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 订单日志Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterOrderLogServiceImpl implements IWaterOrderLogService
{
@Autowired
private WaterOrderLogMapper waterOrderLogMapper;
/**
* 查询订单日志
*
* @param id 订单日志主键
* @return 订单日志
*/
@Override
public WaterOrderLog selectWaterOrderLogById(Long id)
{
return waterOrderLogMapper.selectWaterOrderLogById(id);
}
/**
* 查询订单日志列表
*
* @param waterOrderLog 订单日志
* @return 订单日志
*/
@Override
public List<WaterOrderLog> selectWaterOrderLogList(WaterOrderLog waterOrderLog)
{
return waterOrderLogMapper.selectWaterOrderLogList(waterOrderLog);
}
/**
* 新增订单日志
*
* @param waterOrderLog 订单日志
* @return 结果
*/
@Override
public int insertWaterOrderLog(WaterOrderLog waterOrderLog)
{
waterOrderLog.setCreateTime(DateUtils.getNowDate());
return waterOrderLogMapper.insertWaterOrderLog(waterOrderLog);
}
/**
* 修改订单日志
*
* @param waterOrderLog 订单日志
* @return 结果
*/
@Override
public int updateWaterOrderLog(WaterOrderLog waterOrderLog)
{
return waterOrderLogMapper.updateWaterOrderLog(waterOrderLog);
}
/**
* 批量删除订单日志
*
* @param ids 需要删除的订单日志主键
* @return 结果
*/
@Override
public int deleteWaterOrderLogByIds(Long[] ids)
{
return waterOrderLogMapper.deleteWaterOrderLogByIds(ids);
}
/**
* 删除订单日志信息
*
* @param id 订单日志主键
* @return 结果
*/
@Override
public int deleteWaterOrderLogById(Long id)
{
return waterOrderLogMapper.deleteWaterOrderLogById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterOrder;
import com.qianhe.system.mapper.WaterOrderMapper;
import com.qianhe.system.service.IWaterOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 订单Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterOrderServiceImpl implements IWaterOrderService
{
@Autowired
private WaterOrderMapper waterOrderMapper;
/**
* 查询订单
*
* @param id 订单主键
* @return 订单
*/
@Override
public WaterOrder selectWaterOrderById(Long id)
{
return waterOrderMapper.selectWaterOrderById(id);
}
/**
* 查询订单列表
*
* @param waterOrder 订单
* @return 订单
*/
@Override
public List<WaterOrder> selectWaterOrderList(WaterOrder waterOrder)
{
return waterOrderMapper.selectWaterOrderList(waterOrder);
}
/**
* 新增订单
*
* @param waterOrder 订单
* @return 结果
*/
@Override
public int insertWaterOrder(WaterOrder waterOrder)
{
waterOrder.setCreateTime(DateUtils.getNowDate());
return waterOrderMapper.insertWaterOrder(waterOrder);
}
/**
* 修改订单
*
* @param waterOrder 订单
* @return 结果
*/
@Override
public int updateWaterOrder(WaterOrder waterOrder)
{
return waterOrderMapper.updateWaterOrder(waterOrder);
}
/**
* 批量删除订单
*
* @param ids 需要删除的订单主键
* @return 结果
*/
@Override
public int deleteWaterOrderByIds(Long[] ids)
{
return waterOrderMapper.deleteWaterOrderByIds(ids);
}
/**
* 删除订单信息
*
* @param id 订单主键
* @return 结果
*/
@Override
public int deleteWaterOrderById(Long id)
{
return waterOrderMapper.deleteWaterOrderById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterSpe;
import com.qianhe.system.mapper.WaterSpeMapper;
import com.qianhe.system.service.IWaterSpeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 商品规格Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterSpeServiceImpl implements IWaterSpeService
{
@Autowired
private WaterSpeMapper waterSpeMapper;
/**
* 查询商品规格
*
* @param id 商品规格主键
* @return 商品规格
*/
@Override
public WaterSpe selectWaterSpeById(Long id)
{
return waterSpeMapper.selectWaterSpeById(id);
}
/**
* 查询商品规格列表
*
* @param waterSpe 商品规格
* @return 商品规格
*/
@Override
public List<WaterSpe> selectWaterSpeList(WaterSpe waterSpe)
{
return waterSpeMapper.selectWaterSpeList(waterSpe);
}
/**
* 新增商品规格
*
* @param waterSpe 商品规格
* @return 结果
*/
@Override
public int insertWaterSpe(WaterSpe waterSpe)
{
waterSpe.setCreateTime(DateUtils.getNowDate());
return waterSpeMapper.insertWaterSpe(waterSpe);
}
/**
* 修改商品规格
*
* @param waterSpe 商品规格
* @return 结果
*/
@Override
public int updateWaterSpe(WaterSpe waterSpe)
{
return waterSpeMapper.updateWaterSpe(waterSpe);
}
/**
* 批量删除商品规格
*
* @param ids 需要删除的商品规格主键
* @return 结果
*/
@Override
public int deleteWaterSpeByIds(Long[] ids)
{
return waterSpeMapper.deleteWaterSpeByIds(ids);
}
/**
* 删除商品规格信息
*
* @param id 商品规格主键
* @return 结果
*/
@Override
public int deleteWaterSpeById(Long id)
{
return waterSpeMapper.deleteWaterSpeById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterStation;
import com.qianhe.system.mapper.WaterStationMapper;
import com.qianhe.system.service.IWaterStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 站点Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterStationServiceImpl implements IWaterStationService
{
@Autowired
private WaterStationMapper waterStationMapper;
/**
* 查询站点
*
* @param id 站点主键
* @return 站点
*/
@Override
public WaterStation selectWaterStationById(Long id)
{
return waterStationMapper.selectWaterStationById(id);
}
/**
* 查询站点列表
*
* @param waterStation 站点
* @return 站点
*/
@Override
public List<WaterStation> selectWaterStationList(WaterStation waterStation)
{
return waterStationMapper.selectWaterStationList(waterStation);
}
/**
* 新增站点
*
* @param waterStation 站点
* @return 结果
*/
@Override
public int insertWaterStation(WaterStation waterStation)
{
waterStation.setCreateTime(DateUtils.getNowDate());
return waterStationMapper.insertWaterStation(waterStation);
}
/**
* 修改站点
*
* @param waterStation 站点
* @return 结果
*/
@Override
public int updateWaterStation(WaterStation waterStation)
{
return waterStationMapper.updateWaterStation(waterStation);
}
/**
* 批量删除站点
*
* @param ids 需要删除的站点主键
* @return 结果
*/
@Override
public int deleteWaterStationByIds(Long[] ids)
{
return waterStationMapper.deleteWaterStationByIds(ids);
}
/**
* 删除站点信息
*
* @param id 站点主键
* @return 结果
*/
@Override
public int deleteWaterStationById(Long id)
{
return waterStationMapper.deleteWaterStationById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterStationUser;
import com.qianhe.system.mapper.WaterStationUserMapper;
import com.qianhe.system.service.IWaterStationUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 站点用户Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterStationUserServiceImpl implements IWaterStationUserService
{
@Autowired
private WaterStationUserMapper waterStationUserMapper;
/**
* 查询站点用户
*
* @param id 站点用户主键
* @return 站点用户
*/
@Override
public WaterStationUser selectWaterStationUserById(Long id)
{
return waterStationUserMapper.selectWaterStationUserById(id);
}
/**
* 查询站点用户列表
*
* @param waterStationUser 站点用户
* @return 站点用户
*/
@Override
public List<WaterStationUser> selectWaterStationUserList(WaterStationUser waterStationUser)
{
return waterStationUserMapper.selectWaterStationUserList(waterStationUser);
}
/**
* 新增站点用户
*
* @param waterStationUser 站点用户
* @return 结果
*/
@Override
public int insertWaterStationUser(WaterStationUser waterStationUser)
{
waterStationUser.setCreateTime(DateUtils.getNowDate());
return waterStationUserMapper.insertWaterStationUser(waterStationUser);
}
/**
* 修改站点用户
*
* @param waterStationUser 站点用户
* @return 结果
*/
@Override
public int updateWaterStationUser(WaterStationUser waterStationUser)
{
return waterStationUserMapper.updateWaterStationUser(waterStationUser);
}
/**
* 批量删除站点用户
*
* @param ids 需要删除的站点用户主键
* @return 结果
*/
@Override
public int deleteWaterStationUserByIds(Long[] ids)
{
return waterStationUserMapper.deleteWaterStationUserByIds(ids);
}
/**
* 删除站点用户信息
*
* @param id 站点用户主键
* @return 结果
*/
@Override
public int deleteWaterStationUserById(Long id)
{
return waterStationUserMapper.deleteWaterStationUserById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterText;
import com.qianhe.system.mapper.WaterTextMapper;
import com.qianhe.system.service.IWaterTextService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 通知公告文本Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterTextServiceImpl implements IWaterTextService
{
@Autowired
private WaterTextMapper waterTextMapper;
/**
* 查询通知公告文本
*
* @param id 通知公告文本主键
* @return 通知公告文本
*/
@Override
public WaterText selectWaterTextById(Long id)
{
return waterTextMapper.selectWaterTextById(id);
}
/**
* 查询通知公告文本列表
*
* @param waterText 通知公告文本
* @return 通知公告文本
*/
@Override
public List<WaterText> selectWaterTextList(WaterText waterText)
{
return waterTextMapper.selectWaterTextList(waterText);
}
/**
* 新增通知公告文本
*
* @param waterText 通知公告文本
* @return 结果
*/
@Override
public int insertWaterText(WaterText waterText)
{
waterText.setCreateTime(DateUtils.getNowDate());
return waterTextMapper.insertWaterText(waterText);
}
/**
* 修改通知公告文本
*
* @param waterText 通知公告文本
* @return 结果
*/
@Override
public int updateWaterText(WaterText waterText)
{
return waterTextMapper.updateWaterText(waterText);
}
/**
* 批量删除通知公告文本
*
* @param ids 需要删除的通知公告文本主键
* @return 结果
*/
@Override
public int deleteWaterTextByIds(Long[] ids)
{
return waterTextMapper.deleteWaterTextByIds(ids);
}
/**
* 删除通知公告文本信息
*
* @param id 通知公告文本主键
* @return 结果
*/
@Override
public int deleteWaterTextById(Long id)
{
return waterTextMapper.deleteWaterTextById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.system.domain.WaterUserAddress;
import com.qianhe.system.mapper.WaterUserAddressMapper;
import com.qianhe.system.service.IWaterUserAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 用户地址Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterUserAddressServiceImpl implements IWaterUserAddressService
{
@Autowired
private WaterUserAddressMapper waterUserAddressMapper;
/**
* 查询用户地址
*
* @param id 用户地址主键
* @return 用户地址
*/
@Override
public WaterUserAddress selectWaterUserAddressById(Long id)
{
return waterUserAddressMapper.selectWaterUserAddressById(id);
}
/**
* 查询用户地址列表
*
* @param waterUserAddress 用户地址
* @return 用户地址
*/
@Override
public List<WaterUserAddress> selectWaterUserAddressList(WaterUserAddress waterUserAddress)
{
return waterUserAddressMapper.selectWaterUserAddressList(waterUserAddress);
}
/**
* 新增用户地址
*
* @param waterUserAddress 用户地址
* @return 结果
*/
@Override
public int insertWaterUserAddress(WaterUserAddress waterUserAddress)
{
return waterUserAddressMapper.insertWaterUserAddress(waterUserAddress);
}
/**
* 修改用户地址
*
* @param waterUserAddress 用户地址
* @return 结果
*/
@Override
public int updateWaterUserAddress(WaterUserAddress waterUserAddress)
{
return waterUserAddressMapper.updateWaterUserAddress(waterUserAddress);
}
/**
* 批量删除用户地址
*
* @param ids 需要删除的用户地址主键
* @return 结果
*/
@Override
public int deleteWaterUserAddressByIds(Long[] ids)
{
return waterUserAddressMapper.deleteWaterUserAddressByIds(ids);
}
/**
* 删除用户地址信息
*
* @param id 用户地址主键
* @return 结果
*/
@Override
public int deleteWaterUserAddressById(Long id)
{
return waterUserAddressMapper.deleteWaterUserAddressById(id);
}
}
package com.qianhe.system.service.impl;
import com.qianhe.common.utils.DateUtils;
import com.qianhe.system.domain.WaterUser;
import com.qianhe.system.mapper.WaterUserMapper;
import com.qianhe.system.service.IWaterUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 用户Service业务层处理
*
* @author qianhe
* @date 2023-11-23
*/
@Service
public class WaterUserServiceImpl implements IWaterUserService
{
@Autowired
private WaterUserMapper waterUserMapper;
/**
* 查询用户
*
* @param id 用户主键
* @return 用户
*/
@Override
public WaterUser selectWaterUserById(Long id)
{
return waterUserMapper.selectWaterUserById(id);
}
/**
* 查询用户列表
*
* @param waterUser 用户
* @return 用户
*/
@Override
public List<WaterUser> selectWaterUserList(WaterUser waterUser)
{
return waterUserMapper.selectWaterUserList(waterUser);
}
/**
* 新增用户
*
* @param waterUser 用户
* @return 结果
*/
@Override
public int insertWaterUser(WaterUser waterUser)
{
waterUser.setCreateTime(DateUtils.getNowDate());
return waterUserMapper.insertWaterUser(waterUser);
}
/**
* 修改用户
*
* @param waterUser 用户
* @return 结果
*/
@Override
public int updateWaterUser(WaterUser waterUser)
{
return waterUserMapper.updateWaterUser(waterUser);
}
/**
* 批量删除用户
*
* @param ids 需要删除的用户主键
* @return 结果
*/
@Override
public int deleteWaterUserByIds(Long[] ids)
{
return waterUserMapper.deleteWaterUserByIds(ids);
}
/**
* 删除用户信息
*
* @param id 用户主键
* @return 结果
*/
@Override
public int deleteWaterUserById(Long id)
{
return waterUserMapper.deleteWaterUserById(id);
}
}
<?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.qianhe.system.mapper.WaterGoodsImgMapper">
<resultMap type="WaterGoodsImg" id="WaterGoodsImgResult">
<result property="id" column="id" />
<result property="imgName" column="img_name" />
<result property="type" column="type" />
<result property="sizea" column="sizea" />
<result property="url" column="url" />
<result property="md5" column="md5" />
<result property="imgType" column="img_type" />
<result property="goodsId" column="goods_id" />
</resultMap>
<sql id="selectWaterGoodsImgVo">
select id, img_name, type, sizea, url, md5, img_type, goods_id from water_goods_img
</sql>
<select id="selectWaterGoodsImgList" parameterType="WaterGoodsImg" resultMap="WaterGoodsImgResult">
<include refid="selectWaterGoodsImgVo"/>
<where>
<if test="imgName != null and imgName != ''"> and img_name like concat('%', #{imgName}, '%')</if>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="sizea != null and sizea != ''"> and sizea = #{sizea}</if>
<if test="url != null and url != ''"> and url = #{url}</if>
<if test="md5 != null and md5 != ''"> and md5 = #{md5}</if>
<if test="imgType != null "> and img_type = #{imgType}</if>
<if test="goodsId != null "> and goods_id = #{goodsId}</if>
</where>
</select>
<select id="selectWaterGoodsImgById" parameterType="Long" resultMap="WaterGoodsImgResult">
<include refid="selectWaterGoodsImgVo"/>
where id = #{id}
</select>
<insert id="insertWaterGoodsImg" parameterType="WaterGoodsImg" useGeneratedKeys="true" keyProperty="id">
insert into water_goods_img
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="imgName != null">img_name,</if>
<if test="type != null">type,</if>
<if test="sizea != null">sizea,</if>
<if test="url != null">url,</if>
<if test="md5 != null">md5,</if>
<if test="imgType != null">img_type,</if>
<if test="goodsId != null">goods_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="imgName != null">#{imgName},</if>
<if test="type != null">#{type},</if>
<if test="sizea != null">#{sizea},</if>
<if test="url != null">#{url},</if>
<if test="md5 != null">#{md5},</if>
<if test="imgType != null">#{imgType},</if>
<if test="goodsId != null">#{goodsId},</if>
</trim>
</insert>
<update id="updateWaterGoodsImg" parameterType="WaterGoodsImg">
update water_goods_img
<trim prefix="SET" suffixOverrides=",">
<if test="imgName != null">img_name = #{imgName},</if>
<if test="type != null">type = #{type},</if>
<if test="sizea != null">sizea = #{sizea},</if>
<if test="url != null">url = #{url},</if>
<if test="md5 != null">md5 = #{md5},</if>
<if test="imgType != null">img_type = #{imgType},</if>
<if test="goodsId != null">goods_id = #{goodsId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterGoodsImgById" parameterType="Long">
delete from water_goods_img where id = #{id}
</delete>
<delete id="deleteWaterGoodsImgByIds" parameterType="String">
delete from water_goods_img where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterGoodsMapper">
<resultMap type="WaterGoods" id="WaterGoodsResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="goodsTypeId" column="goods_type_id" />
<result property="belongStationId" column="belong_station_id" />
<result property="coverImg" column="cover_img" />
<result property="detailsImg" column="details_img" />
<result property="price" column="price" />
<result property="createTime" column="create_time" />
<result property="status" column="status" />
</resultMap>
<sql id="selectWaterGoodsVo">
select id, title, goods_type_id, belong_station_id, cover_img, details_img, price, create_time, status from water_goods
</sql>
<select id="selectWaterGoodsList" parameterType="WaterGoods" resultMap="WaterGoodsResult">
<include refid="selectWaterGoodsVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="goodsTypeId != null "> and goods_type_id = #{goodsTypeId}</if>
<if test="belongStationId != null "> and belong_station_id = #{belongStationId}</if>
<if test="coverImg != null and coverImg != ''"> and cover_img = #{coverImg}</if>
<if test="detailsImg != null and detailsImg != ''"> and details_img = #{detailsImg}</if>
<if test="price != null and price != ''"> and price = #{price}</if>
<if test="status != null "> and status = #{status}</if>
</where>
</select>
<select id="selectWaterGoodsById" parameterType="Long" resultMap="WaterGoodsResult">
<include refid="selectWaterGoodsVo"/>
where id = #{id}
</select>
<insert id="insertWaterGoods" parameterType="WaterGoods" useGeneratedKeys="true" keyProperty="id">
insert into water_goods
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="goodsTypeId != null">goods_type_id,</if>
<if test="belongStationId != null">belong_station_id,</if>
<if test="coverImg != null">cover_img,</if>
<if test="detailsImg != null">details_img,</if>
<if test="price != null">price,</if>
<if test="createTime != null">create_time,</if>
<if test="status != null">status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="goodsTypeId != null">#{goodsTypeId},</if>
<if test="belongStationId != null">#{belongStationId},</if>
<if test="coverImg != null">#{coverImg},</if>
<if test="detailsImg != null">#{detailsImg},</if>
<if test="price != null">#{price},</if>
<if test="createTime != null">#{createTime},</if>
<if test="status != null">#{status},</if>
</trim>
</insert>
<update id="updateWaterGoods" parameterType="WaterGoods">
update water_goods
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="goodsTypeId != null">goods_type_id = #{goodsTypeId},</if>
<if test="belongStationId != null">belong_station_id = #{belongStationId},</if>
<if test="coverImg != null">cover_img = #{coverImg},</if>
<if test="detailsImg != null">details_img = #{detailsImg},</if>
<if test="price != null">price = #{price},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="status != null">status = #{status},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterGoodsById" parameterType="Long">
delete from water_goods where id = #{id}
</delete>
<delete id="deleteWaterGoodsByIds" parameterType="String">
delete from water_goods where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterGoodsSpeMapper">
<resultMap type="WaterGoodsSpe" id="WaterGoodsSpeResult">
<result property="id" column="id" />
<result property="speTitle" column="spe_title" />
<result property="spe" column="spe" />
<result property="speVal" column="spe_val" />
<result property="goodsId" column="goods_id" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectWaterGoodsSpeVo">
select id, spe_title, spe, spe_val, goods_id, create_time from water_goods_spe
</sql>
<select id="selectWaterGoodsSpeList" parameterType="WaterGoodsSpe" resultMap="WaterGoodsSpeResult">
<include refid="selectWaterGoodsSpeVo"/>
<where>
<if test="speTitle != null and speTitle != ''"> and spe_title = #{speTitle}</if>
<if test="spe != null and spe != ''"> and spe = #{spe}</if>
<if test="speVal != null and speVal != ''"> and spe_val = #{speVal}</if>
<if test="goodsId != null "> and goods_id = #{goodsId}</if>
</where>
</select>
<select id="selectWaterGoodsSpeById" parameterType="Long" resultMap="WaterGoodsSpeResult">
<include refid="selectWaterGoodsSpeVo"/>
where id = #{id}
</select>
<insert id="insertWaterGoodsSpe" parameterType="WaterGoodsSpe" useGeneratedKeys="true" keyProperty="id">
insert into water_goods_spe
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="speTitle != null">spe_title,</if>
<if test="spe != null">spe,</if>
<if test="speVal != null">spe_val,</if>
<if test="goodsId != null">goods_id,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="speTitle != null">#{speTitle},</if>
<if test="spe != null">#{spe},</if>
<if test="speVal != null">#{speVal},</if>
<if test="goodsId != null">#{goodsId},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateWaterGoodsSpe" parameterType="WaterGoodsSpe">
update water_goods_spe
<trim prefix="SET" suffixOverrides=",">
<if test="speTitle != null">spe_title = #{speTitle},</if>
<if test="spe != null">spe = #{spe},</if>
<if test="speVal != null">spe_val = #{speVal},</if>
<if test="goodsId != null">goods_id = #{goodsId},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterGoodsSpeById" parameterType="Long">
delete from water_goods_spe where id = #{id}
</delete>
<delete id="deleteWaterGoodsSpeByIds" parameterType="String">
delete from water_goods_spe where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterGoodsTypeMapper">
<resultMap type="WaterGoodsType" id="WaterGoodsTypeResult">
<result property="id" column="id" />
<result property="typeName" column="type_name" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectWaterGoodsTypeVo">
select id, type_name, create_time from water_goods_type
</sql>
<select id="selectWaterGoodsTypeList" parameterType="WaterGoodsType" resultMap="WaterGoodsTypeResult">
<include refid="selectWaterGoodsTypeVo"/>
<where>
<if test="typeName != null and typeName != ''"> and type_name like concat('%', #{typeName}, '%')</if>
</where>
</select>
<select id="selectWaterGoodsTypeById" parameterType="Long" resultMap="WaterGoodsTypeResult">
<include refid="selectWaterGoodsTypeVo"/>
where id = #{id}
</select>
<insert id="insertWaterGoodsType" parameterType="WaterGoodsType" useGeneratedKeys="true" keyProperty="id">
insert into water_goods_type
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="typeName != null">type_name,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="typeName != null">#{typeName},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateWaterGoodsType" parameterType="WaterGoodsType">
update water_goods_type
<trim prefix="SET" suffixOverrides=",">
<if test="typeName != null">type_name = #{typeName},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterGoodsTypeById" parameterType="Long">
delete from water_goods_type where id = #{id}
</delete>
<delete id="deleteWaterGoodsTypeByIds" parameterType="String">
delete from water_goods_type where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterOrderGoodsMapper">
<resultMap type="WaterOrderGoods" id="WaterOrderGoodsResult">
<result property="id" column="id" />
<result property="orderId" column="order_id" />
<result property="orderNum" column="order_num" />
<result property="goodsTypeId" column="goods_type_id" />
<result property="goodsType" column="goods_type" />
<result property="goodsSpe" column="goods_spe" />
<result property="goodsId" column="goods_id" />
<result property="goodsTitle" column="goods_title" />
<result property="goodsNum" column="goods_num" />
<result property="goodsPrice" column="goods_price" />
<result property="goodsTotal" column="goods_total" />
<result property="remark" column="remark" />
<result property="crateTime" column="crate_time" />
<result property="createUser" column="create_user" />
</resultMap>
<sql id="selectWaterOrderGoodsVo">
select id, order_id, order_num, goods_type_id, goods_type, goods_spe, goods_id, goods_title, goods_num, goods_price, goods_total, remark, crate_time, create_user from water_order_goods
</sql>
<select id="selectWaterOrderGoodsList" parameterType="WaterOrderGoods" resultMap="WaterOrderGoodsResult">
<include refid="selectWaterOrderGoodsVo"/>
<where>
<if test="orderId != null "> and order_id = #{orderId}</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="goodsTypeId != null and goodsTypeId != ''"> and goods_type_id = #{goodsTypeId}</if>
<if test="goodsType != null and goodsType != ''"> and goods_type = #{goodsType}</if>
<if test="goodsSpe != null and goodsSpe != ''"> and goods_spe = #{goodsSpe}</if>
<if test="goodsId != null "> and goods_id = #{goodsId}</if>
<if test="goodsTitle != null and goodsTitle != ''"> and goods_title = #{goodsTitle}</if>
<if test="goodsNum != null "> and goods_num = #{goodsNum}</if>
<if test="goodsPrice != null "> and goods_price = #{goodsPrice}</if>
<if test="goodsTotal != null "> and goods_total = #{goodsTotal}</if>
<if test="crateTime != null "> and crate_time = #{crateTime}</if>
<if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if>
</where>
</select>
<select id="selectWaterOrderGoodsById" parameterType="Long" resultMap="WaterOrderGoodsResult">
<include refid="selectWaterOrderGoodsVo"/>
where id = #{id}
</select>
<insert id="insertWaterOrderGoods" parameterType="WaterOrderGoods" useGeneratedKeys="true" keyProperty="id">
insert into water_order_goods
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderId != null">order_id,</if>
<if test="orderNum != null">order_num,</if>
<if test="goodsTypeId != null">goods_type_id,</if>
<if test="goodsType != null">goods_type,</if>
<if test="goodsSpe != null">goods_spe,</if>
<if test="goodsId != null">goods_id,</if>
<if test="goodsTitle != null">goods_title,</if>
<if test="goodsNum != null">goods_num,</if>
<if test="goodsPrice != null">goods_price,</if>
<if test="goodsTotal != null">goods_total,</if>
<if test="remark != null">remark,</if>
<if test="crateTime != null">crate_time,</if>
<if test="createUser != null">create_user,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderId != null">#{orderId},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="goodsTypeId != null">#{goodsTypeId},</if>
<if test="goodsType != null">#{goodsType},</if>
<if test="goodsSpe != null">#{goodsSpe},</if>
<if test="goodsId != null">#{goodsId},</if>
<if test="goodsTitle != null">#{goodsTitle},</if>
<if test="goodsNum != null">#{goodsNum},</if>
<if test="goodsPrice != null">#{goodsPrice},</if>
<if test="goodsTotal != null">#{goodsTotal},</if>
<if test="remark != null">#{remark},</if>
<if test="crateTime != null">#{crateTime},</if>
<if test="createUser != null">#{createUser},</if>
</trim>
</insert>
<update id="updateWaterOrderGoods" parameterType="WaterOrderGoods">
update water_order_goods
<trim prefix="SET" suffixOverrides=",">
<if test="orderId != null">order_id = #{orderId},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="goodsTypeId != null">goods_type_id = #{goodsTypeId},</if>
<if test="goodsType != null">goods_type = #{goodsType},</if>
<if test="goodsSpe != null">goods_spe = #{goodsSpe},</if>
<if test="goodsId != null">goods_id = #{goodsId},</if>
<if test="goodsTitle != null">goods_title = #{goodsTitle},</if>
<if test="goodsNum != null">goods_num = #{goodsNum},</if>
<if test="goodsPrice != null">goods_price = #{goodsPrice},</if>
<if test="goodsTotal != null">goods_total = #{goodsTotal},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="crateTime != null">crate_time = #{crateTime},</if>
<if test="createUser != null">create_user = #{createUser},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterOrderGoodsById" parameterType="Long">
delete from water_order_goods where id = #{id}
</delete>
<delete id="deleteWaterOrderGoodsByIds" parameterType="String">
delete from water_order_goods where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterOrderLogMapper">
<resultMap type="WaterOrderLog" id="WaterOrderLogResult">
<result property="id" column="id" />
<result property="payTime" column="pay_time" />
<result property="payMoney" column="pay_money" />
<result property="payNum" column="pay_num" />
<result property="payBackTime" column="pay_back_time" />
<result property="payBackMoney" column="pay_back_money" />
<result property="createTime" column="create_time" />
<result property="orderId" column="order_id" />
</resultMap>
<sql id="selectWaterOrderLogVo">
select id, pay_time, pay_money, pay_num, pay_back_time, pay_back_money, create_time, order_id from water_order_log
</sql>
<select id="selectWaterOrderLogList" parameterType="WaterOrderLog" resultMap="WaterOrderLogResult">
<include refid="selectWaterOrderLogVo"/>
<where>
<if test="payTime != null "> and pay_time = #{payTime}</if>
<if test="payMoney != null "> and pay_money = #{payMoney}</if>
<if test="payNum != null and payNum != ''"> and pay_num = #{payNum}</if>
<if test="payBackTime != null "> and pay_back_time = #{payBackTime}</if>
<if test="payBackMoney != null "> and pay_back_money = #{payBackMoney}</if>
<if test="orderId != null "> and order_id = #{orderId}</if>
</where>
</select>
<select id="selectWaterOrderLogById" parameterType="Long" resultMap="WaterOrderLogResult">
<include refid="selectWaterOrderLogVo"/>
where id = #{id}
</select>
<insert id="insertWaterOrderLog" parameterType="WaterOrderLog" useGeneratedKeys="true" keyProperty="id">
insert into water_order_log
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="payTime != null">pay_time,</if>
<if test="payMoney != null">pay_money,</if>
<if test="payNum != null">pay_num,</if>
<if test="payBackTime != null">pay_back_time,</if>
<if test="payBackMoney != null">pay_back_money,</if>
<if test="createTime != null">create_time,</if>
<if test="orderId != null">order_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="payTime != null">#{payTime},</if>
<if test="payMoney != null">#{payMoney},</if>
<if test="payNum != null">#{payNum},</if>
<if test="payBackTime != null">#{payBackTime},</if>
<if test="payBackMoney != null">#{payBackMoney},</if>
<if test="createTime != null">#{createTime},</if>
<if test="orderId != null">#{orderId},</if>
</trim>
</insert>
<update id="updateWaterOrderLog" parameterType="WaterOrderLog">
update water_order_log
<trim prefix="SET" suffixOverrides=",">
<if test="payTime != null">pay_time = #{payTime},</if>
<if test="payMoney != null">pay_money = #{payMoney},</if>
<if test="payNum != null">pay_num = #{payNum},</if>
<if test="payBackTime != null">pay_back_time = #{payBackTime},</if>
<if test="payBackMoney != null">pay_back_money = #{payBackMoney},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="orderId != null">order_id = #{orderId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterOrderLogById" parameterType="Long">
delete from water_order_log where id = #{id}
</delete>
<delete id="deleteWaterOrderLogByIds" parameterType="String">
delete from water_order_log where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterOrderMapper">
<resultMap type="WaterOrder" id="WaterOrderResult">
<result property="id" column="id" />
<result property="orderNum" column="order_num" />
<result property="userId" column="user_id" />
<result property="userName" column="user_name" />
<result property="userPhone" column="user_phone" />
<result property="userProvince" column="user_province" />
<result property="userCity" column="user_city" />
<result property="userArea" column="user_area" />
<result property="userAddress" column="user_address" />
<result property="stationId" column="station_id" />
<result property="stationName" column="station_name" />
<result property="stationPhone" column="station_phone" />
<result property="stationProvince" column="station_province" />
<result property="stationCity" column="station_city" />
<result property="stationArea" column="station_area" />
<result property="stationAddress" column="station_address" />
<result property="orderState" column="order_state" />
<result property="payState" column="pay_state" />
<result property="payType" column="pay_type" />
<result property="payNum" column="pay_num" />
<result property="name" column="name" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="area" column="area" />
<result property="address" column="address" />
<result property="mobile" column="mobile" />
<result property="delieverTime" column="deliever_time" />
<result property="delieverName" column="deliever_name" />
<result property="delieverMobile" column="deliever_mobile" />
<result property="createTime" column="create_time" />
<result property="createUser" column="create_user" />
<result property="delieverOver" column="deliever_over" />
<result property="takeTime" column="take_time" />
<result property="finishTime" column="finish_time" />
<result property="ramark" column="ramark" />
<result property="goodsVal" column="goods_val" />
<result property="orderType" column="order_type" />
</resultMap>
<sql id="selectWaterOrderVo">
select id, order_num, user_id, user_name, user_phone, user_province, user_city, user_area, user_address, station_id, station_name, station_phone, station_province, station_city, station_area, station_address, order_state, pay_state, pay_type, pay_num, name, province, city, area, address, mobile, deliever_time, deliever_name, deliever_mobile, create_time, create_user, deliever_over, take_time, finish_time, ramark, goods_val, order_type from water_order
</sql>
<select id="selectWaterOrderList" parameterType="WaterOrder" resultMap="WaterOrderResult">
<include refid="selectWaterOrderVo"/>
<where>
<if test="orderNum != null and orderNum != ''"> and order_num = #{orderNum}</if>
<if test="userId != null "> and user_id = #{userId}</if>
<if test="userName != null and userName != ''"> and user_name like concat('%', #{userName}, '%')</if>
<if test="userPhone != null "> and user_phone = #{userPhone}</if>
<if test="userProvince != null and userProvince != ''"> and user_province = #{userProvince}</if>
<if test="userCity != null and userCity != ''"> and user_city = #{userCity}</if>
<if test="userArea != null and userArea != ''"> and user_area = #{userArea}</if>
<if test="userAddress != null and userAddress != ''"> and user_address = #{userAddress}</if>
<if test="stationId != null "> and station_id = #{stationId}</if>
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
<if test="stationPhone != null "> and station_phone = #{stationPhone}</if>
<if test="stationProvince != null and stationProvince != ''"> and station_province = #{stationProvince}</if>
<if test="stationCity != null and stationCity != ''"> and station_city = #{stationCity}</if>
<if test="stationArea != null and stationArea != ''"> and station_area = #{stationArea}</if>
<if test="stationAddress != null and stationAddress != ''"> and station_address = #{stationAddress}</if>
<if test="orderState != null "> and order_state = #{orderState}</if>
<if test="payState != null "> and pay_state = #{payState}</if>
<if test="payType != null "> and pay_type = #{payType}</if>
<if test="payNum != null and payNum != ''"> and pay_num = #{payNum}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="address != null and address != ''"> and address = #{address}</if>
<if test="mobile != null "> and mobile = #{mobile}</if>
<if test="delieverTime != null "> and deliever_time = #{delieverTime}</if>
<if test="delieverName != null and delieverName != ''"> and deliever_name like concat('%', #{delieverName}, '%')</if>
<if test="delieverMobile != null and delieverMobile != ''"> and deliever_mobile = #{delieverMobile}</if>
<if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if>
<if test="delieverOver != null "> and deliever_over = #{delieverOver}</if>
<if test="takeTime != null "> and take_time = #{takeTime}</if>
<if test="finishTime != null "> and finish_time = #{finishTime}</if>
<if test="ramark != null and ramark != ''"> and ramark = #{ramark}</if>
<if test="goodsVal != null "> and goods_val = #{goodsVal}</if>
<if test="orderType != null "> and order_type = #{orderType}</if>
</where>
</select>
<select id="selectWaterOrderById" parameterType="Long" resultMap="WaterOrderResult">
<include refid="selectWaterOrderVo"/>
where id = #{id}
</select>
<insert id="insertWaterOrder" parameterType="WaterOrder" useGeneratedKeys="true" keyProperty="id">
insert into water_order
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderNum != null">order_num,</if>
<if test="userId != null">user_id,</if>
<if test="userName != null">user_name,</if>
<if test="userPhone != null">user_phone,</if>
<if test="userProvince != null">user_province,</if>
<if test="userCity != null">user_city,</if>
<if test="userArea != null">user_area,</if>
<if test="userAddress != null">user_address,</if>
<if test="stationId != null">station_id,</if>
<if test="stationName != null">station_name,</if>
<if test="stationPhone != null">station_phone,</if>
<if test="stationProvince != null">station_province,</if>
<if test="stationCity != null">station_city,</if>
<if test="stationArea != null">station_area,</if>
<if test="stationAddress != null">station_address,</if>
<if test="orderState != null">order_state,</if>
<if test="payState != null">pay_state,</if>
<if test="payType != null">pay_type,</if>
<if test="payNum != null">pay_num,</if>
<if test="name != null">name,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="area != null">area,</if>
<if test="address != null">address,</if>
<if test="mobile != null">mobile,</if>
<if test="delieverTime != null">deliever_time,</if>
<if test="delieverName != null">deliever_name,</if>
<if test="delieverMobile != null">deliever_mobile,</if>
<if test="createTime != null">create_time,</if>
<if test="createUser != null">create_user,</if>
<if test="delieverOver != null">deliever_over,</if>
<if test="takeTime != null">take_time,</if>
<if test="finishTime != null">finish_time,</if>
<if test="ramark != null">ramark,</if>
<if test="goodsVal != null">goods_val,</if>
<if test="orderType != null">order_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="orderNum != null">#{orderNum},</if>
<if test="userId != null">#{userId},</if>
<if test="userName != null">#{userName},</if>
<if test="userPhone != null">#{userPhone},</if>
<if test="userProvince != null">#{userProvince},</if>
<if test="userCity != null">#{userCity},</if>
<if test="userArea != null">#{userArea},</if>
<if test="userAddress != null">#{userAddress},</if>
<if test="stationId != null">#{stationId},</if>
<if test="stationName != null">#{stationName},</if>
<if test="stationPhone != null">#{stationPhone},</if>
<if test="stationProvince != null">#{stationProvince},</if>
<if test="stationCity != null">#{stationCity},</if>
<if test="stationArea != null">#{stationArea},</if>
<if test="stationAddress != null">#{stationAddress},</if>
<if test="orderState != null">#{orderState},</if>
<if test="payState != null">#{payState},</if>
<if test="payType != null">#{payType},</if>
<if test="payNum != null">#{payNum},</if>
<if test="name != null">#{name},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="area != null">#{area},</if>
<if test="address != null">#{address},</if>
<if test="mobile != null">#{mobile},</if>
<if test="delieverTime != null">#{delieverTime},</if>
<if test="delieverName != null">#{delieverName},</if>
<if test="delieverMobile != null">#{delieverMobile},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createUser != null">#{createUser},</if>
<if test="delieverOver != null">#{delieverOver},</if>
<if test="takeTime != null">#{takeTime},</if>
<if test="finishTime != null">#{finishTime},</if>
<if test="ramark != null">#{ramark},</if>
<if test="goodsVal != null">#{goodsVal},</if>
<if test="orderType != null">#{orderType},</if>
</trim>
</insert>
<update id="updateWaterOrder" parameterType="WaterOrder">
update water_order
<trim prefix="SET" suffixOverrides=",">
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="userName != null">user_name = #{userName},</if>
<if test="userPhone != null">user_phone = #{userPhone},</if>
<if test="userProvince != null">user_province = #{userProvince},</if>
<if test="userCity != null">user_city = #{userCity},</if>
<if test="userArea != null">user_area = #{userArea},</if>
<if test="userAddress != null">user_address = #{userAddress},</if>
<if test="stationId != null">station_id = #{stationId},</if>
<if test="stationName != null">station_name = #{stationName},</if>
<if test="stationPhone != null">station_phone = #{stationPhone},</if>
<if test="stationProvince != null">station_province = #{stationProvince},</if>
<if test="stationCity != null">station_city = #{stationCity},</if>
<if test="stationArea != null">station_area = #{stationArea},</if>
<if test="stationAddress != null">station_address = #{stationAddress},</if>
<if test="orderState != null">order_state = #{orderState},</if>
<if test="payState != null">pay_state = #{payState},</if>
<if test="payType != null">pay_type = #{payType},</if>
<if test="payNum != null">pay_num = #{payNum},</if>
<if test="name != null">name = #{name},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="area != null">area = #{area},</if>
<if test="address != null">address = #{address},</if>
<if test="mobile != null">mobile = #{mobile},</if>
<if test="delieverTime != null">deliever_time = #{delieverTime},</if>
<if test="delieverName != null">deliever_name = #{delieverName},</if>
<if test="delieverMobile != null">deliever_mobile = #{delieverMobile},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createUser != null">create_user = #{createUser},</if>
<if test="delieverOver != null">deliever_over = #{delieverOver},</if>
<if test="takeTime != null">take_time = #{takeTime},</if>
<if test="finishTime != null">finish_time = #{finishTime},</if>
<if test="ramark != null">ramark = #{ramark},</if>
<if test="goodsVal != null">goods_val = #{goodsVal},</if>
<if test="orderType != null">order_type = #{orderType},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterOrderById" parameterType="Long">
delete from water_order where id = #{id}
</delete>
<delete id="deleteWaterOrderByIds" parameterType="String">
delete from water_order where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterSpeMapper">
<resultMap type="WaterSpe" id="WaterSpeResult">
<result property="id" column="id" />
<result property="speTitle" column="spe_title" />
<result property="spe" column="spe" />
<result property="speVal" column="spe_val" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectWaterSpeVo">
select id, spe_title, spe, spe_val, create_time from water_spe
</sql>
<select id="selectWaterSpeList" parameterType="WaterSpe" resultMap="WaterSpeResult">
<include refid="selectWaterSpeVo"/>
<where>
<if test="speTitle != null and speTitle != ''"> and spe_title = #{speTitle}</if>
<if test="spe != null and spe != ''"> and spe = #{spe}</if>
<if test="speVal != null and speVal != ''"> and spe_val = #{speVal}</if>
</where>
</select>
<select id="selectWaterSpeById" parameterType="Long" resultMap="WaterSpeResult">
<include refid="selectWaterSpeVo"/>
where id = #{id}
</select>
<insert id="insertWaterSpe" parameterType="WaterSpe" useGeneratedKeys="true" keyProperty="id">
insert into water_spe
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="speTitle != null">spe_title,</if>
<if test="spe != null">spe,</if>
<if test="speVal != null">spe_val,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="speTitle != null">#{speTitle},</if>
<if test="spe != null">#{spe},</if>
<if test="speVal != null">#{speVal},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateWaterSpe" parameterType="WaterSpe">
update water_spe
<trim prefix="SET" suffixOverrides=",">
<if test="speTitle != null">spe_title = #{speTitle},</if>
<if test="spe != null">spe = #{spe},</if>
<if test="speVal != null">spe_val = #{speVal},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterSpeById" parameterType="Long">
delete from water_spe where id = #{id}
</delete>
<delete id="deleteWaterSpeByIds" parameterType="String">
delete from water_spe where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterStationMapper">
<resultMap type="WaterStation" id="WaterStationResult">
<result property="id" column="id" />
<result property="stationName" column="station_name" />
<result property="phoneNum" column="phone_num" />
<result property="stationAddress" column="station_address" />
<result property="stationLon" column="station_lon" />
<result property="stationLat" column="station_lat" />
<result property="createTime" column="create_time" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="area" column="area" />
<result property="isOpen" column="is_open" />
<result property="createUser" column="create_user" />
</resultMap>
<sql id="selectWaterStationVo">
select id, station_name, phone_num, station_address, station_lon, station_lat, create_time, province, city, area, is_open, create_user from water_station
</sql>
<select id="selectWaterStationList" parameterType="WaterStation" resultMap="WaterStationResult">
<include refid="selectWaterStationVo"/>
<where>
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
<if test="phoneNum != null "> and phone_num = #{phoneNum}</if>
<if test="stationAddress != null and stationAddress != ''"> and station_address = #{stationAddress}</if>
<if test="stationLon != null "> and station_lon = #{stationLon}</if>
<if test="stationLat != null "> and station_lat = #{stationLat}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="isOpen != null "> and is_open = #{isOpen}</if>
<if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if>
</where>
</select>
<select id="selectWaterStationById" parameterType="Long" resultMap="WaterStationResult">
<include refid="selectWaterStationVo"/>
where id = #{id}
</select>
<insert id="insertWaterStation" parameterType="WaterStation" useGeneratedKeys="true" keyProperty="id">
insert into water_station
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="stationName != null">station_name,</if>
<if test="phoneNum != null">phone_num,</if>
<if test="stationAddress != null">station_address,</if>
<if test="stationLon != null">station_lon,</if>
<if test="stationLat != null">station_lat,</if>
<if test="createTime != null">create_time,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="area != null">area,</if>
<if test="isOpen != null">is_open,</if>
<if test="createUser != null">create_user,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="stationName != null">#{stationName},</if>
<if test="phoneNum != null">#{phoneNum},</if>
<if test="stationAddress != null">#{stationAddress},</if>
<if test="stationLon != null">#{stationLon},</if>
<if test="stationLat != null">#{stationLat},</if>
<if test="createTime != null">#{createTime},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="area != null">#{area},</if>
<if test="isOpen != null">#{isOpen},</if>
<if test="createUser != null">#{createUser},</if>
</trim>
</insert>
<update id="updateWaterStation" parameterType="WaterStation">
update water_station
<trim prefix="SET" suffixOverrides=",">
<if test="stationName != null">station_name = #{stationName},</if>
<if test="phoneNum != null">phone_num = #{phoneNum},</if>
<if test="stationAddress != null">station_address = #{stationAddress},</if>
<if test="stationLon != null">station_lon = #{stationLon},</if>
<if test="stationLat != null">station_lat = #{stationLat},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="area != null">area = #{area},</if>
<if test="isOpen != null">is_open = #{isOpen},</if>
<if test="createUser != null">create_user = #{createUser},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterStationById" parameterType="Long">
delete from water_station where id = #{id}
</delete>
<delete id="deleteWaterStationByIds" parameterType="String">
delete from water_station where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterStationUserMapper">
<resultMap type="WaterStationUser" id="WaterStationUserResult">
<result property="id" column="id" />
<result property="name" column="name" />
<result property="age" column="age" />
<result property="gender" column="gender" />
<result property="phone" column="phone" />
<result property="idNum" column="id_num" />
<result property="stationId" column="station_id" />
<result property="createTime" column="create_time" />
<result property="createUser" column="create_user" />
</resultMap>
<sql id="selectWaterStationUserVo">
select id, name, age, gender, phone, id_num, station_id, create_time, create_user from water_station_user
</sql>
<select id="selectWaterStationUserList" parameterType="WaterStationUser" resultMap="WaterStationUserResult">
<include refid="selectWaterStationUserVo"/>
<where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="age != null "> and age = #{age}</if>
<if test="gender != null "> and gender = #{gender}</if>
<if test="phone != null "> and phone = #{phone}</if>
<if test="idNum != null and idNum != ''"> and id_num = #{idNum}</if>
<if test="stationId != null "> and station_id = #{stationId}</if>
<if test="createUser != null and createUser != ''"> and create_user = #{createUser}</if>
</where>
</select>
<select id="selectWaterStationUserById" parameterType="Long" resultMap="WaterStationUserResult">
<include refid="selectWaterStationUserVo"/>
where id = #{id}
</select>
<insert id="insertWaterStationUser" parameterType="WaterStationUser" useGeneratedKeys="true" keyProperty="id">
insert into water_station_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">name,</if>
<if test="age != null">age,</if>
<if test="gender != null">gender,</if>
<if test="phone != null">phone,</if>
<if test="idNum != null">id_num,</if>
<if test="stationId != null">station_id,</if>
<if test="createTime != null">create_time,</if>
<if test="createUser != null">create_user,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">#{name},</if>
<if test="age != null">#{age},</if>
<if test="gender != null">#{gender},</if>
<if test="phone != null">#{phone},</if>
<if test="idNum != null">#{idNum},</if>
<if test="stationId != null">#{stationId},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createUser != null">#{createUser},</if>
</trim>
</insert>
<update id="updateWaterStationUser" parameterType="WaterStationUser">
update water_station_user
<trim prefix="SET" suffixOverrides=",">
<if test="name != null">name = #{name},</if>
<if test="age != null">age = #{age},</if>
<if test="gender != null">gender = #{gender},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="idNum != null">id_num = #{idNum},</if>
<if test="stationId != null">station_id = #{stationId},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createUser != null">create_user = #{createUser},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterStationUserById" parameterType="Long">
delete from water_station_user where id = #{id}
</delete>
<delete id="deleteWaterStationUserByIds" parameterType="String">
delete from water_station_user where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterTextMapper">
<resultMap type="WaterText" id="WaterTextResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="content" column="content" />
<result property="createTime" column="create_time" />
</resultMap>
<sql id="selectWaterTextVo">
select id, title, content, create_time from water_text
</sql>
<select id="selectWaterTextList" parameterType="WaterText" resultMap="WaterTextResult">
<include refid="selectWaterTextVo"/>
<where>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
</where>
</select>
<select id="selectWaterTextById" parameterType="Long" resultMap="WaterTextResult">
<include refid="selectWaterTextVo"/>
where id = #{id}
</select>
<insert id="insertWaterText" parameterType="WaterText" useGeneratedKeys="true" keyProperty="id">
insert into water_text
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="content != null">content,</if>
<if test="createTime != null">create_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="content != null">#{content},</if>
<if test="createTime != null">#{createTime},</if>
</trim>
</insert>
<update id="updateWaterText" parameterType="WaterText">
update water_text
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="content != null">content = #{content},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterTextById" parameterType="Long">
delete from water_text where id = #{id}
</delete>
<delete id="deleteWaterTextByIds" parameterType="String">
delete from water_text where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterUserAddressMapper">
<resultMap type="WaterUserAddress" id="WaterUserAddressResult">
<result property="id" column="id" />
<result property="waterUserId" column="water_user_id" />
<result property="userAddress" column="user_address" />
<result property="province" column="province" />
<result property="city" column="city" />
<result property="area" column="area" />
<result property="name" column="name" />
<result property="phone" column="phone" />
</resultMap>
<sql id="selectWaterUserAddressVo">
select id, water_user_id, user_address, province, city, area, name, phone from water_user_address
</sql>
<select id="selectWaterUserAddressList" parameterType="WaterUserAddress" resultMap="WaterUserAddressResult">
<include refid="selectWaterUserAddressVo"/>
<where>
<if test="waterUserId != null "> and water_user_id = #{waterUserId}</if>
<if test="userAddress != null and userAddress != ''"> and user_address = #{userAddress}</if>
<if test="province != null and province != ''"> and province = #{province}</if>
<if test="city != null and city != ''"> and city = #{city}</if>
<if test="area != null and area != ''"> and area = #{area}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="phone != null "> and phone = #{phone}</if>
</where>
</select>
<select id="selectWaterUserAddressById" parameterType="Long" resultMap="WaterUserAddressResult">
<include refid="selectWaterUserAddressVo"/>
where id = #{id}
</select>
<insert id="insertWaterUserAddress" parameterType="WaterUserAddress" useGeneratedKeys="true" keyProperty="id">
insert into water_user_address
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="waterUserId != null">water_user_id,</if>
<if test="userAddress != null">user_address,</if>
<if test="province != null">province,</if>
<if test="city != null">city,</if>
<if test="area != null">area,</if>
<if test="name != null">name,</if>
<if test="phone != null">phone,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="waterUserId != null">#{waterUserId},</if>
<if test="userAddress != null">#{userAddress},</if>
<if test="province != null">#{province},</if>
<if test="city != null">#{city},</if>
<if test="area != null">#{area},</if>
<if test="name != null">#{name},</if>
<if test="phone != null">#{phone},</if>
</trim>
</insert>
<update id="updateWaterUserAddress" parameterType="WaterUserAddress">
update water_user_address
<trim prefix="SET" suffixOverrides=",">
<if test="waterUserId != null">water_user_id = #{waterUserId},</if>
<if test="userAddress != null">user_address = #{userAddress},</if>
<if test="province != null">province = #{province},</if>
<if test="city != null">city = #{city},</if>
<if test="area != null">area = #{area},</if>
<if test="name != null">name = #{name},</if>
<if test="phone != null">phone = #{phone},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterUserAddressById" parameterType="Long">
delete from water_user_address where id = #{id}
</delete>
<delete id="deleteWaterUserAddressByIds" parameterType="String">
delete from water_user_address where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
<?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.qianhe.system.mapper.WaterUserMapper">
<resultMap type="WaterUser" id="WaterUserResult">
<result property="id" column="id" />
<result property="nickName" column="nick_name" />
<result property="phoneNum" column="phone_num" />
<result property="stationName" column="station_name" />
<result property="userType" column="user_type" />
<result property="userGender" column="user_gender" />
<result property="createTime" column="create_time" />
<result property="status" column="status" />
<result property="openId" column="open_id" />
</resultMap>
<sql id="selectWaterUserVo">
select id, nick_name, phone_num, station_name, user_type, user_gender, create_time, status, open_id from water_user
</sql>
<select id="selectWaterUserList" parameterType="WaterUser" resultMap="WaterUserResult">
<include refid="selectWaterUserVo"/>
<where>
<if test="nickName != null and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if>
<if test="phoneNum != null "> and phone_num = #{phoneNum}</if>
<if test="stationName != null and stationName != ''"> and station_name like concat('%', #{stationName}, '%')</if>
<if test="userType != null and userType != ''"> and user_type = #{userType}</if>
<if test="userGender != null "> and user_gender = #{userGender}</if>
<if test="status != null "> and status = #{status}</if>
<if test="openId != null and openId != ''"> and open_id = #{openId}</if>
</where>
</select>
<select id="selectWaterUserById" parameterType="Long" resultMap="WaterUserResult">
<include refid="selectWaterUserVo"/>
where id = #{id}
</select>
<insert id="insertWaterUser" parameterType="WaterUser" useGeneratedKeys="true" keyProperty="id">
insert into water_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="nickName != null">nick_name,</if>
<if test="phoneNum != null">phone_num,</if>
<if test="stationName != null">station_name,</if>
<if test="userType != null">user_type,</if>
<if test="userGender != null">user_gender,</if>
<if test="createTime != null">create_time,</if>
<if test="status != null">status,</if>
<if test="openId != null">open_id,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="nickName != null">#{nickName},</if>
<if test="phoneNum != null">#{phoneNum},</if>
<if test="stationName != null">#{stationName},</if>
<if test="userType != null">#{userType},</if>
<if test="userGender != null">#{userGender},</if>
<if test="createTime != null">#{createTime},</if>
<if test="status != null">#{status},</if>
<if test="openId != null">#{openId},</if>
</trim>
</insert>
<update id="updateWaterUser" parameterType="WaterUser">
update water_user
<trim prefix="SET" suffixOverrides=",">
<if test="nickName != null">nick_name = #{nickName},</if>
<if test="phoneNum != null">phone_num = #{phoneNum},</if>
<if test="stationName != null">station_name = #{stationName},</if>
<if test="userType != null">user_type = #{userType},</if>
<if test="userGender != null">user_gender = #{userGender},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="status != null">status = #{status},</if>
<if test="openId != null">open_id = #{openId},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteWaterUserById" parameterType="Long">
delete from water_user where id = #{id}
</delete>
<delete id="deleteWaterUserByIds" parameterType="String">
delete from water_user where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment