Commit 8b127d5d authored by mengmeng's avatar mengmeng

add new module serviceOrder

parent 345d86ab
package io.hmit.modules.serviceOrder.controller;
import io.hmit.common.annotation.LogOperation;
import io.hmit.common.constant.Constant;
import io.hmit.common.page.PageData;
import io.hmit.common.utils.ExcelUtils;
import io.hmit.common.utils.Result;
import io.hmit.common.validator.AssertUtils;
import io.hmit.common.validator.ValidatorUtils;
import io.hmit.common.validator.group.AddGroup;
import io.hmit.common.validator.group.DefaultGroup;
import io.hmit.common.validator.group.UpdateGroup;
import io.hmit.modules.serviceOrder.dto.PensionOrderDTO;
import io.hmit.modules.serviceOrder.excel.PensionOrderExcel;
import io.hmit.modules.serviceOrder.service.PensionOrderService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@RestController
@RequestMapping("serviceOrder/pensionorder")
@Api(tags="订单表")
public class PensionOrderController {
@Autowired
private PensionOrderService pensionOrderService;
@GetMapping("page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String")
})
@RequiresPermissions("serviceOrder:pensionorder:page")
public Result<PageData<PensionOrderDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<PensionOrderDTO> page = pensionOrderService.page(params);
return new Result<PageData<PensionOrderDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@RequiresPermissions("serviceOrder:pensionorder:info")
public Result<PensionOrderDTO> get(@PathVariable("id") Long id){
PensionOrderDTO data = pensionOrderService.get(id);
return new Result<PensionOrderDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@RequiresPermissions("serviceOrder:pensionorder:save")
public Result save(@RequestBody PensionOrderDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
pensionOrderService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("serviceOrder:pensionorder:update")
public Result update(@RequestBody PensionOrderDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
pensionOrderService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@RequiresPermissions("serviceOrder:pensionorder:delete")
public Result delete(@RequestBody Long[] ids){
//校验数据
AssertUtils.isArrayEmpty(ids, "id");
pensionOrderService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@RequiresPermissions("serviceOrder:pensionorder:export")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PensionOrderDTO> list = pensionOrderService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, PensionOrderExcel.class);
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.controller;
import io.hmit.common.annotation.LogOperation;
import io.hmit.common.constant.Constant;
import io.hmit.common.page.PageData;
import io.hmit.common.utils.ExcelUtils;
import io.hmit.common.utils.Result;
import io.hmit.common.validator.AssertUtils;
import io.hmit.common.validator.ValidatorUtils;
import io.hmit.common.validator.group.AddGroup;
import io.hmit.common.validator.group.DefaultGroup;
import io.hmit.common.validator.group.UpdateGroup;
import io.hmit.modules.serviceOrder.dto.PensionOrderServiceDTO;
import io.hmit.modules.serviceOrder.excel.PensionOrderServiceExcel;
import io.hmit.modules.serviceOrder.service.PensionOrderServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@RestController
@RequestMapping("serviceOrder/pensionorderservice")
@Api(tags="订单服务关联表")
public class PensionOrderServiceController {
@Autowired
private PensionOrderServiceService pensionOrderServiceService;
@GetMapping("page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String")
})
@RequiresPermissions("serviceOrder:pensionorderservice:page")
public Result<PageData<PensionOrderServiceDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<PensionOrderServiceDTO> page = pensionOrderServiceService.page(params);
return new Result<PageData<PensionOrderServiceDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@RequiresPermissions("serviceOrder:pensionorderservice:info")
public Result<PensionOrderServiceDTO> get(@PathVariable("id") Long id){
PensionOrderServiceDTO data = pensionOrderServiceService.get(id);
return new Result<PensionOrderServiceDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@RequiresPermissions("serviceOrder:pensionorderservice:save")
public Result save(@RequestBody PensionOrderServiceDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
pensionOrderServiceService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("serviceOrder:pensionorderservice:update")
public Result update(@RequestBody PensionOrderServiceDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
pensionOrderServiceService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@RequiresPermissions("serviceOrder:pensionorderservice:delete")
public Result delete(@RequestBody Long[] ids){
//校验数据
AssertUtils.isArrayEmpty(ids, "id");
pensionOrderServiceService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@RequiresPermissions("serviceOrder:pensionorderservice:export")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PensionOrderServiceDTO> list = pensionOrderServiceService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, PensionOrderServiceExcel.class);
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.controller;
import io.hmit.common.annotation.LogOperation;
import io.hmit.common.constant.Constant;
import io.hmit.common.page.PageData;
import io.hmit.common.utils.ExcelUtils;
import io.hmit.common.utils.Result;
import io.hmit.common.validator.AssertUtils;
import io.hmit.common.validator.ValidatorUtils;
import io.hmit.common.validator.group.AddGroup;
import io.hmit.common.validator.group.DefaultGroup;
import io.hmit.common.validator.group.UpdateGroup;
import io.hmit.modules.serviceOrder.dto.PensionServiceDTO;
import io.hmit.modules.serviceOrder.excel.PensionServiceExcel;
import io.hmit.modules.serviceOrder.service.PensionServiceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@RestController
@RequestMapping("serviceOrder/pensionservice")
@Api(tags="服务表")
public class PensionServiceController {
@Autowired
private PensionServiceService pensionServiceService;
@GetMapping("page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String")
})
@RequiresPermissions("serviceOrder:pensionservice:page")
public Result<PageData<PensionServiceDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<PensionServiceDTO> page = pensionServiceService.page(params);
return new Result<PageData<PensionServiceDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@RequiresPermissions("serviceOrder:pensionservice:info")
public Result<PensionServiceDTO> get(@PathVariable("id") Long id){
PensionServiceDTO data = pensionServiceService.get(id);
return new Result<PensionServiceDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@RequiresPermissions("serviceOrder:pensionservice:save")
public Result save(@RequestBody PensionServiceDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
pensionServiceService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("serviceOrder:pensionservice:update")
public Result update(@RequestBody PensionServiceDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
pensionServiceService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@RequiresPermissions("serviceOrder:pensionservice:delete")
public Result delete(@RequestBody Long[] ids){
//校验数据
AssertUtils.isArrayEmpty(ids, "id");
pensionServiceService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@RequiresPermissions("serviceOrder:pensionservice:export")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PensionServiceDTO> list = pensionServiceService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, PensionServiceExcel.class);
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.controller;
import io.hmit.common.annotation.LogOperation;
import io.hmit.common.constant.Constant;
import io.hmit.common.page.PageData;
import io.hmit.common.utils.ExcelUtils;
import io.hmit.common.utils.Result;
import io.hmit.common.validator.AssertUtils;
import io.hmit.common.validator.ValidatorUtils;
import io.hmit.common.validator.group.AddGroup;
import io.hmit.common.validator.group.DefaultGroup;
import io.hmit.common.validator.group.UpdateGroup;
import io.hmit.modules.serviceOrder.dto.PensionServiceDocumentDTO;
import io.hmit.modules.serviceOrder.excel.PensionServiceDocumentExcel;
import io.hmit.modules.serviceOrder.service.PensionServiceDocumentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@RestController
@RequestMapping("serviceOrder/pensionservicedocument")
@Api(tags="服务及相关图片附件关联表")
public class PensionServiceDocumentController {
@Autowired
private PensionServiceDocumentService pensionServiceDocumentService;
@GetMapping("page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String")
})
@RequiresPermissions("serviceOrder:pensionservicedocument:page")
public Result<PageData<PensionServiceDocumentDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<PensionServiceDocumentDTO> page = pensionServiceDocumentService.page(params);
return new Result<PageData<PensionServiceDocumentDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@RequiresPermissions("serviceOrder:pensionservicedocument:info")
public Result<PensionServiceDocumentDTO> get(@PathVariable("id") Long id){
PensionServiceDocumentDTO data = pensionServiceDocumentService.get(id);
return new Result<PensionServiceDocumentDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@RequiresPermissions("serviceOrder:pensionservicedocument:save")
public Result save(@RequestBody PensionServiceDocumentDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
pensionServiceDocumentService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("serviceOrder:pensionservicedocument:update")
public Result update(@RequestBody PensionServiceDocumentDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
pensionServiceDocumentService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@RequiresPermissions("serviceOrder:pensionservicedocument:delete")
public Result delete(@RequestBody Long[] ids){
//校验数据
AssertUtils.isArrayEmpty(ids, "id");
pensionServiceDocumentService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@RequiresPermissions("serviceOrder:pensionservicedocument:export")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PensionServiceDocumentDTO> list = pensionServiceDocumentService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, PensionServiceDocumentExcel.class);
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.controller;
import io.hmit.common.annotation.LogOperation;
import io.hmit.common.constant.Constant;
import io.hmit.common.page.PageData;
import io.hmit.common.utils.ExcelUtils;
import io.hmit.common.utils.Result;
import io.hmit.common.validator.AssertUtils;
import io.hmit.common.validator.ValidatorUtils;
import io.hmit.common.validator.group.AddGroup;
import io.hmit.common.validator.group.DefaultGroup;
import io.hmit.common.validator.group.UpdateGroup;
import io.hmit.modules.serviceOrder.dto.PensionServiceTypeDTO;
import io.hmit.modules.serviceOrder.excel.PensionServiceTypeExcel;
import io.hmit.modules.serviceOrder.service.PensionServiceTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@RestController
@RequestMapping("serviceOrder/pensionservicetype")
@Api(tags="服务种类表")
public class PensionServiceTypeController {
@Autowired
private PensionServiceTypeService pensionServiceTypeService;
@GetMapping("page")
@ApiOperation("分页")
@ApiImplicitParams({
@ApiImplicitParam(name = Constant.PAGE, value = "当前页码,从1开始", paramType = "query", required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.LIMIT, value = "每页显示记录数", paramType = "query",required = true, dataType="int") ,
@ApiImplicitParam(name = Constant.ORDER_FIELD, value = "排序字段", paramType = "query", dataType="String") ,
@ApiImplicitParam(name = Constant.ORDER, value = "排序方式,可选值(asc、desc)", paramType = "query", dataType="String")
})
@RequiresPermissions("serviceOrder:pensionservicetype:page")
public Result<PageData<PensionServiceTypeDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<PensionServiceTypeDTO> page = pensionServiceTypeService.page(params);
return new Result<PageData<PensionServiceTypeDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@RequiresPermissions("serviceOrder:pensionservicetype:info")
public Result<PensionServiceTypeDTO> get(@PathVariable("id") Long id){
PensionServiceTypeDTO data = pensionServiceTypeService.get(id);
return new Result<PensionServiceTypeDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@RequiresPermissions("serviceOrder:pensionservicetype:save")
public Result save(@RequestBody PensionServiceTypeDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
pensionServiceTypeService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@RequiresPermissions("serviceOrder:pensionservicetype:update")
public Result update(@RequestBody PensionServiceTypeDTO dto){
//校验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
pensionServiceTypeService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@RequiresPermissions("serviceOrder:pensionservicetype:delete")
public Result delete(@RequestBody Long[] ids){
//校验数据
AssertUtils.isArrayEmpty(ids, "id");
pensionServiceTypeService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@RequiresPermissions("serviceOrder:pensionservicetype:export")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<PensionServiceTypeDTO> list = pensionServiceTypeService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, PensionServiceTypeExcel.class);
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dao;
import io.hmit.common.dao.BaseDao;
import io.hmit.modules.serviceOrder.entity.PensionOrderEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Mapper
public interface PensionOrderDao extends BaseDao<PensionOrderEntity> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dao;
import io.hmit.common.dao.BaseDao;
import io.hmit.modules.serviceOrder.entity.PensionOrderServiceEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Mapper
public interface PensionOrderServiceDao extends BaseDao<PensionOrderServiceEntity> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dao;
import io.hmit.common.dao.BaseDao;
import io.hmit.modules.serviceOrder.entity.PensionServiceEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Mapper
public interface PensionServiceDao extends BaseDao<PensionServiceEntity> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dao;
import io.hmit.common.dao.BaseDao;
import io.hmit.modules.serviceOrder.entity.PensionServiceDocumentEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Mapper
public interface PensionServiceDocumentDao extends BaseDao<PensionServiceDocumentEntity> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dao;
import io.hmit.common.dao.BaseDao;
import io.hmit.modules.serviceOrder.entity.PensionServiceTypeEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Mapper
public interface PensionServiceTypeDao extends BaseDao<PensionServiceTypeEntity> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@ApiModel(value = "订单表")
public class PensionOrderDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id")
private Long id;
@ApiModelProperty(value = "订单编号")
private String orderNum;
@ApiModelProperty(value = "订单状态")
private Integer status;
@ApiModelProperty(value = "订单状态名称")
private String statusName;
@ApiModelProperty(value = "详细地址")
private String address;
@ApiModelProperty(value = "订单所属的服务id")
private Long serviceId;
@ApiModelProperty(value = "订单所属的服务名称")
private String serviceName;
@ApiModelProperty(value = "预约人")
private String appointmentPerson;
@ApiModelProperty(value = "预约人电话")
private String appointmentPhone;
@ApiModelProperty(value = "预约时间")
private Date appointmentTime;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "接单人id")
private Long orderRecipientId;
@ApiModelProperty(value = "接单人姓名")
private String orderRecipientName;
@ApiModelProperty(value = "接单时间")
private Date orderRecipientTime;
@ApiModelProperty(value = "接单人电话")
private String orderRecipientPhone;
@ApiModelProperty(value = "部门ID")
private Long deptId;
@ApiModelProperty(value = "创建者")
private Long creator;
@ApiModelProperty(value = "订单发起人")
private String creatorName;
@ApiModelProperty(value = "订单发起人联系电话")
private String creatorTel;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新者")
private Long updater;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
package io.hmit.modules.serviceOrder.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@ApiModel(value = "订单服务关联表")
public class PensionOrderServiceDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "")
private Long id;
@ApiModelProperty(value = "订单id")
private Long orderId;
@ApiModelProperty(value = "服务id")
private Long serviceId;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "创建者")
private Long creator;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新者")
private Long updater;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@ApiModel(value = "服务表")
public class PensionServiceDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id")
private Long id;
@ApiModelProperty(value = "服务名称")
private String name;
@ApiModelProperty(value = "服务类型")
private Long serviceTypeId;
@ApiModelProperty(value = "排序")
private Integer sort;
@ApiModelProperty(value = "首页图标地址")
private String icon;
@ApiModelProperty(value = "详情页大图地址")
private String detailPicture;
@ApiModelProperty(value = "价格")
private BigDecimal price;
@ApiModelProperty(value = "积分值")
private Integer giftPoint;
@ApiModelProperty(value = "服务次数")
private Integer timesNum;
@ApiModelProperty(value = "服务时间")
private String serviceTime;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "部门ID")
private Long deptId;
@ApiModelProperty(value = "创建者")
private Long creator;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新者")
private Long updater;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@ApiModel(value = "服务及相关图片附件关联表")
public class PensionServiceDocumentDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "")
private Long id;
@ApiModelProperty(value = "服务id")
private Long serviceId;
@ApiModelProperty(value = "文件id")
private Long docId;
@ApiModelProperty(value = "文件名")
private String fileName;
@ApiModelProperty(value = "文件链接")
private String filePath;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "创建者")
private Long creator;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新者")
private Long updater;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@ApiModel(value = "服务种类表")
public class PensionServiceTypeDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id")
private Long id;
@ApiModelProperty(value = "类型名称")
private String name;
@ApiModelProperty(value = "排序")
private Integer sort;
@ApiModelProperty(value = "图标地址")
private String icon;
@ApiModelProperty(value = "备注")
private String remark;
@ApiModelProperty(value = "部门ID")
private Long deptId;
@ApiModelProperty(value = "创建者")
private Long creator;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新者")
private Long updater;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.hmit.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("pension_order")
public class PensionOrderEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 订单编号
*/
private String orderNum;
/**
* 订单状态
*/
private Integer status;
/**
* 订单状态名称
*/
private String statusName;
/**
* 详细地址
*/
private String address;
/**
* 订单所属的服务id
*/
private Long serviceId;
/**
* 订单所属的服务名称
*/
private String serviceName;
/**
* 预约人
*/
private String appointmentPerson;
/**
* 预约人电话
*/
private String appointmentPhone;
/**
* 预约时间
*/
private Date appointmentTime;
/**
* 备注
*/
private String remark;
/**
* 接单人id
*/
private Long orderRecipientId;
/**
* 接单人姓名
*/
private String orderRecipientName;
/**
* 接单时间
*/
private Date orderRecipientTime;
/**
* 接单人电话
*/
private String orderRecipientPhone;
/**
* 部门ID
*/
private Long deptId;
/**
* 订单发起人
*/
private String creatorName;
/**
* 订单发起人联系电话
*/
private String creatorTel;
/**
* 更新者
*/
private Long updater;
/**
* 更新时间
*/
private Date updateDate;
}
package io.hmit.modules.serviceOrder.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.hmit.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("pension_order_service")
public class PensionOrderServiceEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 订单id
*/
private Long orderId;
/**
* 服务id
*/
private Long serviceId;
/**
* 备注
*/
private String remark;
/**
* 更新者
*/
private Long updater;
/**
* 更新时间
*/
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.hmit.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("pension_service_document")
public class PensionServiceDocumentEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 服务id
*/
private Long serviceId;
/**
* 文件id
*/
private Long docId;
/**
* 文件名
*/
private String fileName;
/**
* 文件链接
*/
private String filePath;
/**
* 备注
*/
private String remark;
/**
* 更新者
*/
private Long updater;
/**
* 更新时间
*/
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.hmit.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("pension_service")
public class PensionServiceEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 服务名称
*/
private String name;
/**
* 服务类型
*/
private Long serviceTypeId;
/**
* 排序
*/
private Integer sort;
/**
* 首页图标地址
*/
private String icon;
/**
* 详情页大图地址
*/
private String detailPicture;
/**
* 价格
*/
private BigDecimal price;
/**
* 积分值
*/
private Integer giftPoint;
/**
* 服务次数
*/
private Integer timesNum;
/**
* 服务时间
*/
private String serviceTime;
/**
* 备注
*/
private String remark;
/**
* 部门ID
*/
private Long deptId;
/**
* 更新者
*/
private Long updater;
/**
* 更新时间
*/
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.hmit.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("pension_service_type")
public class PensionServiceTypeEntity extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 类型名称
*/
private String name;
/**
* 排序
*/
private Integer sort;
/**
* 图标地址
*/
private String icon;
/**
* 备注
*/
private String remark;
/**
* 部门ID
*/
private Long deptId;
/**
* 更新者
*/
private Long updater;
/**
* 更新时间
*/
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
public class PensionOrderExcel {
@Excel(name = "id")
private Long id;
@Excel(name = "订单编号")
private String orderNum;
@Excel(name = "订单状态")
private Integer status;
@Excel(name = "订单状态名称")
private String statusName;
@Excel(name = "详细地址")
private String address;
@Excel(name = "订单所属的服务id")
private Long serviceId;
@Excel(name = "订单所属的服务名称")
private String serviceName;
@Excel(name = "预约人")
private String appointmentPerson;
@Excel(name = "预约人电话")
private String appointmentPhone;
@Excel(name = "预约时间")
private Date appointmentTime;
@Excel(name = "备注")
private String remark;
@Excel(name = "接单人id")
private Long orderRecipientId;
@Excel(name = "接单人姓名")
private String orderRecipientName;
@Excel(name = "接单时间")
private Date orderRecipientTime;
@Excel(name = "接单人电话")
private String orderRecipientPhone;
@Excel(name = "部门ID")
private Long deptId;
@Excel(name = "创建者")
private Long creator;
@Excel(name = "订单发起人")
private String creatorName;
@Excel(name = "订单发起人联系电话")
private String creatorTel;
@Excel(name = "创建时间")
private Date createDate;
@Excel(name = "更新者")
private Long updater;
@Excel(name = "更新时间")
private Date updateDate;
}
package io.hmit.modules.serviceOrder.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
public class PensionOrderServiceExcel {
@Excel(name = "")
private Long id;
@Excel(name = "订单id")
private Long orderId;
@Excel(name = "服务id")
private Long serviceId;
@Excel(name = "备注")
private String remark;
@Excel(name = "创建者")
private Long creator;
@Excel(name = "创建时间")
private Date createDate;
@Excel(name = "更新者")
private Long updater;
@Excel(name = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
public class PensionServiceDocumentExcel {
@Excel(name = "")
private Long id;
@Excel(name = "服务id")
private Long serviceId;
@Excel(name = "文件id")
private Long docId;
@Excel(name = "文件名")
private String fileName;
@Excel(name = "文件链接")
private String filePath;
@Excel(name = "备注")
private String remark;
@Excel(name = "创建者")
private Long creator;
@Excel(name = "创建时间")
private Date createDate;
@Excel(name = "更新者")
private Long updater;
@Excel(name = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
public class PensionServiceExcel {
@Excel(name = "id")
private Long id;
@Excel(name = "服务名称")
private String name;
@Excel(name = "服务类型")
private Long serviceTypeId;
@Excel(name = "排序")
private Integer sort;
@Excel(name = "首页图标地址")
private String icon;
@Excel(name = "详情页大图地址")
private String detailPicture;
@Excel(name = "价格")
private BigDecimal price;
@Excel(name = "积分值")
private Integer giftPoint;
@Excel(name = "服务次数")
private Integer timesNum;
@Excel(name = "服务时间")
private String serviceTime;
@Excel(name = "备注")
private String remark;
@Excel(name = "部门ID")
private Long deptId;
@Excel(name = "创建者")
private Long creator;
@Excel(name = "创建时间")
private Date createDate;
@Excel(name = "更新者")
private Long updater;
@Excel(name = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Data
public class PensionServiceTypeExcel {
@Excel(name = "id")
private Long id;
@Excel(name = "类型名称")
private String name;
@Excel(name = "排序")
private Integer sort;
@Excel(name = "图标地址")
private String icon;
@Excel(name = "备注")
private String remark;
@Excel(name = "部门ID")
private Long deptId;
@Excel(name = "创建者")
private Long creator;
@Excel(name = "创建时间")
private Date createDate;
@Excel(name = "更新者")
private Long updater;
@Excel(name = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service;
import io.hmit.common.service.CrudService;
import io.hmit.modules.serviceOrder.dto.PensionOrderDTO;
import io.hmit.modules.serviceOrder.entity.PensionOrderEntity;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
public interface PensionOrderService extends CrudService<PensionOrderEntity, PensionOrderDTO> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service;
import io.hmit.common.service.CrudService;
import io.hmit.modules.serviceOrder.dto.PensionOrderServiceDTO;
import io.hmit.modules.serviceOrder.entity.PensionOrderServiceEntity;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
public interface PensionOrderServiceService extends CrudService<PensionOrderServiceEntity, PensionOrderServiceDTO> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service;
import io.hmit.common.service.CrudService;
import io.hmit.modules.serviceOrder.dto.PensionServiceDocumentDTO;
import io.hmit.modules.serviceOrder.entity.PensionServiceDocumentEntity;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
public interface PensionServiceDocumentService extends CrudService<PensionServiceDocumentEntity, PensionServiceDocumentDTO> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service;
import io.hmit.common.service.CrudService;
import io.hmit.modules.serviceOrder.dto.PensionServiceDTO;
import io.hmit.modules.serviceOrder.entity.PensionServiceEntity;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
public interface PensionServiceService extends CrudService<PensionServiceEntity, PensionServiceDTO> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service;
import io.hmit.common.service.CrudService;
import io.hmit.modules.serviceOrder.dto.PensionServiceTypeDTO;
import io.hmit.modules.serviceOrder.entity.PensionServiceTypeEntity;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
public interface PensionServiceTypeService extends CrudService<PensionServiceTypeEntity, PensionServiceTypeDTO> {
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.hmit.common.service.impl.CrudServiceImpl;
import io.hmit.modules.serviceOrder.dao.PensionOrderDao;
import io.hmit.modules.serviceOrder.dto.PensionOrderDTO;
import io.hmit.modules.serviceOrder.entity.PensionOrderEntity;
import io.hmit.modules.serviceOrder.service.PensionOrderService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 订单表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Service
public class PensionOrderServiceImpl extends CrudServiceImpl<PensionOrderDao, PensionOrderEntity, PensionOrderDTO> implements PensionOrderService {
@Override
public QueryWrapper<PensionOrderEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get("id");
QueryWrapper<PensionOrderEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
return wrapper;
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.hmit.common.service.impl.CrudServiceImpl;
import io.hmit.modules.serviceOrder.dao.PensionOrderServiceDao;
import io.hmit.modules.serviceOrder.dto.PensionOrderServiceDTO;
import io.hmit.modules.serviceOrder.entity.PensionOrderServiceEntity;
import io.hmit.modules.serviceOrder.service.PensionOrderServiceService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 订单服务关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Service
public class PensionOrderServiceServiceImpl extends CrudServiceImpl<PensionOrderServiceDao, PensionOrderServiceEntity, PensionOrderServiceDTO> implements PensionOrderServiceService {
@Override
public QueryWrapper<PensionOrderServiceEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get("id");
QueryWrapper<PensionOrderServiceEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
return wrapper;
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.hmit.common.service.impl.CrudServiceImpl;
import io.hmit.modules.serviceOrder.dao.PensionServiceDocumentDao;
import io.hmit.modules.serviceOrder.dto.PensionServiceDocumentDTO;
import io.hmit.modules.serviceOrder.entity.PensionServiceDocumentEntity;
import io.hmit.modules.serviceOrder.service.PensionServiceDocumentService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 服务及相关图片附件关联表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Service
public class PensionServiceDocumentServiceImpl extends CrudServiceImpl<PensionServiceDocumentDao, PensionServiceDocumentEntity, PensionServiceDocumentDTO> implements PensionServiceDocumentService {
@Override
public QueryWrapper<PensionServiceDocumentEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get("id");
QueryWrapper<PensionServiceDocumentEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
return wrapper;
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.hmit.common.service.impl.CrudServiceImpl;
import io.hmit.modules.serviceOrder.dao.PensionServiceDao;
import io.hmit.modules.serviceOrder.dto.PensionServiceDTO;
import io.hmit.modules.serviceOrder.entity.PensionServiceEntity;
import io.hmit.modules.serviceOrder.service.PensionServiceService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 服务表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Service
public class PensionServiceServiceImpl extends CrudServiceImpl<PensionServiceDao, PensionServiceEntity, PensionServiceDTO> implements PensionServiceService {
@Override
public QueryWrapper<PensionServiceEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get("id");
QueryWrapper<PensionServiceEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
return wrapper;
}
}
\ No newline at end of file
package io.hmit.modules.serviceOrder.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.hmit.common.service.impl.CrudServiceImpl;
import io.hmit.modules.serviceOrder.dao.PensionServiceTypeDao;
import io.hmit.modules.serviceOrder.dto.PensionServiceTypeDTO;
import io.hmit.modules.serviceOrder.entity.PensionServiceTypeEntity;
import io.hmit.modules.serviceOrder.service.PensionServiceTypeService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 服务种类表
*
* @author zsh 408538940@qq.com
* @since 1.0.0 2021-01-26
*/
@Service
public class PensionServiceTypeServiceImpl extends CrudServiceImpl<PensionServiceTypeDao, PensionServiceTypeEntity, PensionServiceTypeDTO> implements PensionServiceTypeService {
@Override
public QueryWrapper<PensionServiceTypeEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get("id");
QueryWrapper<PensionServiceTypeEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), "id", id);
return wrapper;
}
}
\ 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="io.hmit.modules.serviceOrder.dao.PensionOrderDao">
<resultMap type="io.hmit.modules.serviceOrder.entity.PensionOrderEntity" id="pensionOrderMap">
<result property="id" column="id"/>
<result property="orderNum" column="order_num"/>
<result property="status" column="status"/>
<result property="statusName" column="status_name"/>
<result property="address" column="address"/>
<result property="serviceId" column="service_id"/>
<result property="serviceName" column="service_name"/>
<result property="appointmentPerson" column="appointment_person"/>
<result property="appointmentPhone" column="appointment_phone"/>
<result property="appointmentTime" column="appointment_time"/>
<result property="remark" column="remark"/>
<result property="orderRecipientId" column="order_recipient_id"/>
<result property="orderRecipientName" column="order_recipient_name"/>
<result property="orderRecipientTime" column="order_recipient_time"/>
<result property="orderRecipientPhone" column="order_recipient_phone"/>
<result property="deptId" column="dept_id"/>
<result property="creator" column="creator"/>
<result property="creatorName" column="creator_name"/>
<result property="creatorTel" column="creator_tel"/>
<result property="createDate" column="create_date"/>
<result property="updater" column="updater"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</mapper>
<?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="io.hmit.modules.serviceOrder.dao.PensionOrderServiceDao">
<resultMap type="io.hmit.modules.serviceOrder.entity.PensionOrderServiceEntity" id="pensionOrderServiceMap">
<result property="id" column="id"/>
<result property="orderId" column="order_id"/>
<result property="serviceId" column="service_id"/>
<result property="remark" column="remark"/>
<result property="creator" column="creator"/>
<result property="createDate" column="create_date"/>
<result property="updater" column="updater"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</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="io.hmit.modules.serviceOrder.dao.PensionServiceDao">
<resultMap type="io.hmit.modules.serviceOrder.entity.PensionServiceEntity" id="pensionServiceMap">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="serviceTypeId" column="service_type_id"/>
<result property="sort" column="sort"/>
<result property="icon" column="icon"/>
<result property="detailPicture" column="detail_picture"/>
<result property="price" column="price"/>
<result property="giftPoint" column="gift_point"/>
<result property="timesNum" column="times_num"/>
<result property="serviceTime" column="service_time"/>
<result property="remark" column="remark"/>
<result property="deptId" column="dept_id"/>
<result property="creator" column="creator"/>
<result property="createDate" column="create_date"/>
<result property="updater" column="updater"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</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="io.hmit.modules.serviceOrder.dao.PensionServiceDocumentDao">
<resultMap type="io.hmit.modules.serviceOrder.entity.PensionServiceDocumentEntity" id="pensionServiceDocumentMap">
<result property="id" column="id"/>
<result property="serviceId" column="service_id"/>
<result property="docId" column="doc_id"/>
<result property="fileName" column="file_name"/>
<result property="filePath" column="file_path"/>
<result property="remark" column="remark"/>
<result property="creator" column="creator"/>
<result property="createDate" column="create_date"/>
<result property="updater" column="updater"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</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="io.hmit.modules.serviceOrder.dao.PensionServiceTypeDao">
<resultMap type="io.hmit.modules.serviceOrder.entity.PensionServiceTypeEntity" id="pensionServiceTypeMap">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="sort" column="sort"/>
<result property="icon" column="icon"/>
<result property="remark" column="remark"/>
<result property="deptId" column="dept_id"/>
<result property="creator" column="creator"/>
<result property="createDate" column="create_date"/>
<result property="updater" column="updater"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</mapper>
\ No newline at end of file
......@@ -2,7 +2,7 @@
#\u5305\u540D
package=io.hmit
moduleName=demo
moduleName=serviceOrder
#\u4F5C\u8005
author=zsh
#Email
......
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