zhc4dev
wangjiadong 2 years ago
parent 39751a342d
commit b1cc460783
  1. 171
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customermeasure/controller/CustomerMeasureController.java
  2. 144
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customermeasure/entity/CustomerMeasure.java
  3. 17
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customermeasure/mapper/CustomerMeasureMapper.java
  4. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customermeasure/mapper/xml/CustomerMeasureMapper.xml
  5. 14
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customermeasure/service/ICustomerMeasureService.java
  6. 19
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customermeasure/service/impl/CustomerMeasureServiceImpl.java
  7. 171
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/controller/CustomerPaymentController.java
  8. 75
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/entity/CustomerPayment.java
  9. 17
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/mapper/CustomerPaymentMapper.java
  10. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/mapper/xml/CustomerPaymentMapper.xml
  11. 14
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/ICustomerPaymentService.java
  12. 19
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerpayment/service/impl/CustomerPaymentServiceImpl.java
  13. 171
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/controller/CustomerReceivingAddressController.java
  14. 90
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/entity/CustomerReceivingAddress.java
  15. 17
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/mapper/CustomerReceivingAddressMapper.java
  16. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/mapper/xml/CustomerReceivingAddressMapper.xml
  17. 14
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/service/ICustomerReceivingAddressService.java
  18. 19
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/service/impl/CustomerReceivingAddressServiceImpl.java

@ -0,0 +1,171 @@
package org.jeecg.modules.demo.customermeasure.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.demo.customermeasure.entity.CustomerMeasure;
import org.jeecg.modules.demo.customermeasure.service.ICustomerMeasureService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
/**
* @Description: 顾客测体管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
@Api(tags="顾客测体管理")
@RestController
@RequestMapping("/customermeasure/customerMeasure")
@Slf4j
public class CustomerMeasureController extends JeecgController<CustomerMeasure, ICustomerMeasureService> {
@Autowired
private ICustomerMeasureService customerMeasureService;
/**
* 分页列表查询
*
* @param customerMeasure
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "顾客测体管理-分页列表查询")
@ApiOperation(value="顾客测体管理-分页列表查询", notes="顾客测体管理-分页列表查询")
@GetMapping(value = "/list")
public Result<?> queryPageList(CustomerMeasure customerMeasure,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<CustomerMeasure> queryWrapper = QueryGenerator.initQueryWrapper(customerMeasure, req.getParameterMap());
Page<CustomerMeasure> page = new Page<CustomerMeasure>(pageNo, pageSize);
IPage<CustomerMeasure> pageList = customerMeasureService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param customerMeasure
* @return
*/
@AutoLog(value = "顾客测体管理-添加")
@ApiOperation(value="顾客测体管理-添加", notes="顾客测体管理-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody CustomerMeasure customerMeasure) {
customerMeasureService.save(customerMeasure);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param customerMeasure
* @return
*/
@AutoLog(value = "顾客测体管理-编辑")
@ApiOperation(value="顾客测体管理-编辑", notes="顾客测体管理-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody CustomerMeasure customerMeasure) {
customerMeasureService.updateById(customerMeasure);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "顾客测体管理-通过id删除")
@ApiOperation(value="顾客测体管理-通过id删除", notes="顾客测体管理-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
customerMeasureService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "顾客测体管理-批量删除")
@ApiOperation(value="顾客测体管理-批量删除", notes="顾客测体管理-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.customerMeasureService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "顾客测体管理-通过id查询")
@ApiOperation(value="顾客测体管理-通过id查询", notes="顾客测体管理-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
CustomerMeasure customerMeasure = customerMeasureService.getById(id);
if(customerMeasure==null) {
return Result.error("未找到对应数据");
}
return Result.OK(customerMeasure);
}
/**
* 导出excel
*
* @param request
* @param customerMeasure
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, CustomerMeasure customerMeasure) {
return super.exportXls(request, customerMeasure, CustomerMeasure.class, "顾客测体管理");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, CustomerMeasure.class);
}
}

@ -0,0 +1,144 @@
package org.jeecg.modules.demo.customermeasure.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 顾客测体管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
@Data
@TableName("customer_measure")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="customer_measure对象", description="顾客测体管理")
public class CustomerMeasure implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private String sysOrgCode;
/**用户*/
@Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
@ApiModelProperty(value = "用户")
private String userId;
/**排序*/
@Excel(name = "排序", width = 15)
@ApiModelProperty(value = "排序")
private Integer sort;
/**身高(厘米)*/
@Excel(name = "身高(厘米)", width = 15)
@ApiModelProperty(value = "身高(厘米)")
private Double height;
/**体重(千克)*/
@Excel(name = "体重(千克)", width = 15)
@ApiModelProperty(value = "体重(千克)")
private Double weight;
/**下摆(厘米)*/
@Excel(name = "下摆(厘米)", width = 15)
@ApiModelProperty(value = "下摆(厘米)")
private Double hem;
/**袖口(厘米)*/
@Excel(name = "袖口(厘米)", width = 15)
@ApiModelProperty(value = "袖口(厘米)")
private Double cuff;
/**袖长(厘米)*/
@Excel(name = "袖长(厘米)", width = 15)
@ApiModelProperty(value = "袖长(厘米)")
private Double sleeveLength;
/**胸围(厘米)*/
@Excel(name = "胸围(厘米)", width = 15)
@ApiModelProperty(value = "胸围(厘米)")
private Double bust;
/**腰围(厘米)*/
@Excel(name = "腰围(厘米)", width = 15)
@ApiModelProperty(value = "腰围(厘米)")
private Double theWaist;
/**肩宽(厘米)*/
@Excel(name = "肩宽(厘米)", width = 15)
@ApiModelProperty(value = "肩宽(厘米)")
private Double shoulderWidth;
/**前身长(厘米)*/
@Excel(name = "前身长(厘米)", width = 15)
@ApiModelProperty(value = "前身长(厘米)")
private Double forebodyLength;
/**领围(厘米)*/
@Excel(name = "领围(厘米)", width = 15)
@ApiModelProperty(value = "领围(厘米)")
private Double neck;
/**臀围(厘米)*/
@Excel(name = "臀围(厘米)", width = 15)
@ApiModelProperty(value = "臀围(厘米)")
private Double hipline;
/**衣长*/
@Excel(name = "衣长", width = 15)
@ApiModelProperty(value = "衣长")
private Double length;
/**胸距*/
@Excel(name = "胸距", width = 15)
@ApiModelProperty(value = "胸距")
private Double sternalDistance;
/**量体方式*/
@Excel(name = "量体方式", width = 15, dicCode = "ctfs")
@Dict(dicCode = "ctfs")
@ApiModelProperty(value = "量体方式")
private String measurementMethod;
/**量体店铺*/
@Excel(name = "量体店铺", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
@ApiModelProperty(value = "量体店铺")
private String storeId;
/**量体设备*/
@Excel(name = "量体设备", width = 15, dictTable = "se_equipmenttype", dicText = "name", dicCode = "id")
@Dict(dictTable = "se_equipmenttype", dicText = "name", dicCode = "id")
@ApiModelProperty(value = "量体设备")
private String deviceId;
/**量体师*/
@Excel(name = "量体师", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
@ApiModelProperty(value = "量体师")
private String measurerId;
/**量体时间*/
@Excel(name = "量体时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "量体时间")
private Date measurementTime;
}

@ -0,0 +1,17 @@
package org.jeecg.modules.demo.customermeasure.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.customermeasure.entity.CustomerMeasure;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 顾客测体管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
public interface CustomerMeasureMapper extends BaseMapper<CustomerMeasure> {
}

@ -0,0 +1,5 @@
<?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="org.jeecg.modules.demo.customermeasure.mapper.CustomerMeasureMapper">
</mapper>

@ -0,0 +1,14 @@
package org.jeecg.modules.demo.customermeasure.service;
import org.jeecg.modules.demo.customermeasure.entity.CustomerMeasure;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 顾客测体管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
public interface ICustomerMeasureService extends IService<CustomerMeasure> {
}

@ -0,0 +1,19 @@
package org.jeecg.modules.demo.customermeasure.service.impl;
import org.jeecg.modules.demo.customermeasure.entity.CustomerMeasure;
import org.jeecg.modules.demo.customermeasure.mapper.CustomerMeasureMapper;
import org.jeecg.modules.demo.customermeasure.service.ICustomerMeasureService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 顾客测体管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
@Service
public class CustomerMeasureServiceImpl extends ServiceImpl<CustomerMeasureMapper, CustomerMeasure> implements ICustomerMeasureService {
}

@ -0,0 +1,171 @@
package org.jeecg.modules.demo.customerpayment.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
import org.jeecg.modules.demo.customerpayment.service.ICustomerPaymentService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
/**
* @Description: 顾客支付信息管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
@Api(tags="顾客支付信息管理")
@RestController
@RequestMapping("/customerpayment/customerPayment")
@Slf4j
public class CustomerPaymentController extends JeecgController<CustomerPayment, ICustomerPaymentService> {
@Autowired
private ICustomerPaymentService customerPaymentService;
/**
* 分页列表查询
*
* @param customerPayment
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "顾客支付信息管理-分页列表查询")
@ApiOperation(value="顾客支付信息管理-分页列表查询", notes="顾客支付信息管理-分页列表查询")
@GetMapping(value = "/list")
public Result<?> queryPageList(CustomerPayment customerPayment,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<CustomerPayment> queryWrapper = QueryGenerator.initQueryWrapper(customerPayment, req.getParameterMap());
Page<CustomerPayment> page = new Page<CustomerPayment>(pageNo, pageSize);
IPage<CustomerPayment> pageList = customerPaymentService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param customerPayment
* @return
*/
@AutoLog(value = "顾客支付信息管理-添加")
@ApiOperation(value="顾客支付信息管理-添加", notes="顾客支付信息管理-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody CustomerPayment customerPayment) {
customerPaymentService.save(customerPayment);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param customerPayment
* @return
*/
@AutoLog(value = "顾客支付信息管理-编辑")
@ApiOperation(value="顾客支付信息管理-编辑", notes="顾客支付信息管理-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody CustomerPayment customerPayment) {
customerPaymentService.updateById(customerPayment);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "顾客支付信息管理-通过id删除")
@ApiOperation(value="顾客支付信息管理-通过id删除", notes="顾客支付信息管理-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
customerPaymentService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "顾客支付信息管理-批量删除")
@ApiOperation(value="顾客支付信息管理-批量删除", notes="顾客支付信息管理-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.customerPaymentService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "顾客支付信息管理-通过id查询")
@ApiOperation(value="顾客支付信息管理-通过id查询", notes="顾客支付信息管理-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
CustomerPayment customerPayment = customerPaymentService.getById(id);
if(customerPayment==null) {
return Result.error("未找到对应数据");
}
return Result.OK(customerPayment);
}
/**
* 导出excel
*
* @param request
* @param customerPayment
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, CustomerPayment customerPayment) {
return super.exportXls(request, customerPayment, CustomerPayment.class, "顾客支付信息管理");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, CustomerPayment.class);
}
}

@ -0,0 +1,75 @@
package org.jeecg.modules.demo.customerpayment.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 顾客支付信息管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
@Data
@TableName("customer_payment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="customer_payment对象", description="顾客支付信息管理")
public class CustomerPayment implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private String sysOrgCode;
/**用户*/
@Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
@ApiModelProperty(value = "用户")
private String userId;
/**支付类型*/
@Excel(name = "支付类型", width = 15, dicCode = "zflx")
@Dict(dicCode = "zflx")
@ApiModelProperty(value = "支付类型")
private String paymentType;
/**账号/卡号*/
@Excel(name = "账号/卡号", width = 15)
@ApiModelProperty(value = "账号/卡号")
private String accountNo;
/**开户银行*/
@Excel(name = "开户银行", width = 15)
@ApiModelProperty(value = "开户银行")
private String bankDeposit;
}

@ -0,0 +1,17 @@
package org.jeecg.modules.demo.customerpayment.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 顾客支付信息管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
public interface CustomerPaymentMapper extends BaseMapper<CustomerPayment> {
}

@ -0,0 +1,5 @@
<?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="org.jeecg.modules.demo.customerpayment.mapper.CustomerPaymentMapper">
</mapper>

@ -0,0 +1,14 @@
package org.jeecg.modules.demo.customerpayment.service;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 顾客支付信息管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
public interface ICustomerPaymentService extends IService<CustomerPayment> {
}

@ -0,0 +1,19 @@
package org.jeecg.modules.demo.customerpayment.service.impl;
import org.jeecg.modules.demo.customerpayment.entity.CustomerPayment;
import org.jeecg.modules.demo.customerpayment.mapper.CustomerPaymentMapper;
import org.jeecg.modules.demo.customerpayment.service.ICustomerPaymentService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 顾客支付信息管理
* @Author: jeecg-boot
* @Date: 2022-12-03
* @Version: V1.0
*/
@Service
public class CustomerPaymentServiceImpl extends ServiceImpl<CustomerPaymentMapper, CustomerPayment> implements ICustomerPaymentService {
}

@ -0,0 +1,171 @@
package org.jeecg.modules.demo.customerreceivingaddress.controller;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.oConvertUtils;
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress;
import org.jeecg.modules.demo.customerreceivingaddress.service.ICustomerReceivingAddressService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
import org.jeecgframework.poi.excel.entity.ImportParams;
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.aspect.annotation.AutoLog;
/**
* @Description: 顾客地址表
* @Author: jeecg-boot
* @Date: 2022-12-05
* @Version: V1.0
*/
@Api(tags="顾客地址表")
@RestController
@RequestMapping("/customerreceivingaddress/customerReceivingAddress")
@Slf4j
public class CustomerReceivingAddressController extends JeecgController<CustomerReceivingAddress, ICustomerReceivingAddressService> {
@Autowired
private ICustomerReceivingAddressService customerReceivingAddressService;
/**
* 分页列表查询
*
* @param customerReceivingAddress
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "顾客地址表-分页列表查询")
@ApiOperation(value="顾客地址表-分页列表查询", notes="顾客地址表-分页列表查询")
@GetMapping(value = "/list")
public Result<?> queryPageList(CustomerReceivingAddress customerReceivingAddress,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<CustomerReceivingAddress> queryWrapper = QueryGenerator.initQueryWrapper(customerReceivingAddress, req.getParameterMap());
Page<CustomerReceivingAddress> page = new Page<CustomerReceivingAddress>(pageNo, pageSize);
IPage<CustomerReceivingAddress> pageList = customerReceivingAddressService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
* @param customerReceivingAddress
* @return
*/
@AutoLog(value = "顾客地址表-添加")
@ApiOperation(value="顾客地址表-添加", notes="顾客地址表-添加")
@PostMapping(value = "/add")
public Result<?> add(@RequestBody CustomerReceivingAddress customerReceivingAddress) {
customerReceivingAddressService.save(customerReceivingAddress);
return Result.OK("添加成功!");
}
/**
* 编辑
*
* @param customerReceivingAddress
* @return
*/
@AutoLog(value = "顾客地址表-编辑")
@ApiOperation(value="顾客地址表-编辑", notes="顾客地址表-编辑")
@PutMapping(value = "/edit")
public Result<?> edit(@RequestBody CustomerReceivingAddress customerReceivingAddress) {
customerReceivingAddressService.updateById(customerReceivingAddress);
return Result.OK("编辑成功!");
}
/**
* 通过id删除
*
* @param id
* @return
*/
@AutoLog(value = "顾客地址表-通过id删除")
@ApiOperation(value="顾客地址表-通过id删除", notes="顾客地址表-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
customerReceivingAddressService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
* @param ids
* @return
*/
@AutoLog(value = "顾客地址表-批量删除")
@ApiOperation(value="顾客地址表-批量删除", notes="顾客地址表-批量删除")
@DeleteMapping(value = "/deleteBatch")
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
this.customerReceivingAddressService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
* @param id
* @return
*/
@AutoLog(value = "顾客地址表-通过id查询")
@ApiOperation(value="顾客地址表-通过id查询", notes="顾客地址表-通过id查询")
@GetMapping(value = "/queryById")
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
CustomerReceivingAddress customerReceivingAddress = customerReceivingAddressService.getById(id);
if(customerReceivingAddress==null) {
return Result.error("未找到对应数据");
}
return Result.OK(customerReceivingAddress);
}
/**
* 导出excel
*
* @param request
* @param customerReceivingAddress
*/
@RequestMapping(value = "/exportXls")
public ModelAndView exportXls(HttpServletRequest request, CustomerReceivingAddress customerReceivingAddress) {
return super.exportXls(request, customerReceivingAddress, CustomerReceivingAddress.class, "顾客地址表");
}
/**
* 通过excel导入数据
*
* @param request
* @param response
* @return
*/
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
return super.importExcel(request, response, CustomerReceivingAddress.class);
}
}

@ -0,0 +1,90 @@
package org.jeecg.modules.demo.customerreceivingaddress.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
/**
* @Description: 顾客地址表
* @Author: jeecg-boot
* @Date: 2022-12-05
* @Version: V1.0
*/
@Data
@TableName("customer_receiving_address")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="customer_receiving_address对象", description="顾客地址表")
public class CustomerReceivingAddress implements Serializable {
private static final long serialVersionUID = 1L;
/**主键*/
@TableId(type = IdType.ASSIGN_ID)
@ApiModelProperty(value = "主键")
private String id;
/**创建人*/
@ApiModelProperty(value = "创建人")
private String createBy;
/**创建日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "创建日期")
private Date createTime;
/**更新人*/
@ApiModelProperty(value = "更新人")
private String updateBy;
/**更新日期*/
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private Date updateTime;
/**所属部门*/
@ApiModelProperty(value = "所属部门")
private String sysOrgCode;
/**用户*/
@Excel(name = "用户", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
@ApiModelProperty(value = "用户")
private String userId;
/**城市*/
@Excel(name = "城市", width = 15)
@ApiModelProperty(value = "城市")
private String cityId;
/**地址*/
@Excel(name = "地址", width = 15)
@ApiModelProperty(value = "地址")
private String address;
/**邮编*/
@Excel(name = "邮编", width = 15)
@ApiModelProperty(value = "邮编")
private String zipCode;
/**收货人*/
@Excel(name = "收货人", width = 15)
@ApiModelProperty(value = "收货人")
private String receiver;
/**联系电话*/
@Excel(name = "联系电话", width = 15)
@ApiModelProperty(value = "联系电话")
private String mobile;
/**排序*/
@Excel(name = "排序", width = 15)
@ApiModelProperty(value = "排序")
private Integer sort;
/**标识*/
@Excel(name = "标识", width = 15)
@ApiModelProperty(value = "标识")
private String labelcl;
}

@ -0,0 +1,17 @@
package org.jeecg.modules.demo.customerreceivingaddress.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* @Description: 顾客地址表
* @Author: jeecg-boot
* @Date: 2022-12-05
* @Version: V1.0
*/
public interface CustomerReceivingAddressMapper extends BaseMapper<CustomerReceivingAddress> {
}

@ -0,0 +1,5 @@
<?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="org.jeecg.modules.demo.customerreceivingaddress.mapper.CustomerReceivingAddressMapper">
</mapper>

@ -0,0 +1,14 @@
package org.jeecg.modules.demo.customerreceivingaddress.service;
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* @Description: 顾客地址表
* @Author: jeecg-boot
* @Date: 2022-12-05
* @Version: V1.0
*/
public interface ICustomerReceivingAddressService extends IService<CustomerReceivingAddress> {
}

@ -0,0 +1,19 @@
package org.jeecg.modules.demo.customerreceivingaddress.service.impl;
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress;
import org.jeecg.modules.demo.customerreceivingaddress.mapper.CustomerReceivingAddressMapper;
import org.jeecg.modules.demo.customerreceivingaddress.service.ICustomerReceivingAddressService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/**
* @Description: 顾客地址表
* @Author: jeecg-boot
* @Date: 2022-12-05
* @Version: V1.0
*/
@Service
public class CustomerReceivingAddressServiceImpl extends ServiceImpl<CustomerReceivingAddressMapper, CustomerReceivingAddress> implements ICustomerReceivingAddressService {
}
Loading…
Cancel
Save