Commit 451dcfa2 authored by dmy's avatar dmy

中医药小程序代码提交

parent 82604655
......@@ -17,7 +17,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @author Administrator
*/
@SpringBootApplication(scanBasePackages = {
"com..*",
"com.*",
"com.yanzuoguang.*",
"org.springframework.jdbc.*"
})
......
package com.tcm.product.dao;
import com.yanzuoguang.dao.BaseDao;
public interface ProductCategoryDao extends BaseDao {
}
package com.tcm.product.dao;
import com.yanzuoguang.dao.BaseDao;
public interface ProductDao extends BaseDao {
}
package com.tcm.product.dao;
import com.yanzuoguang.dao.BaseDao;
public interface ProductExtendDao extends BaseDao {
}
package com.tcm.product.dao;
import com.yanzuoguang.dao.BaseDao;
public interface ProductPriceDao extends BaseDao {
}
package com.tcm.product.dao;
import com.yanzuoguang.dao.BaseDao;
public interface ProductStockDao extends BaseDao {
}
package com.tcm.product.dao.impl;
import com.tcm.product.dao.ProductCategoryDao;
import com.tcm.util.product.ProductCategoryVo;
import com.yanzuoguang.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Component;
@Component
public class ProductCategoryDaoImpl extends BaseDaoImpl implements ProductCategoryDao {
@Override
protected void init() {
register(ProductCategoryVo.class);
}
}
package com.tcm.product.dao.impl;
import com.tcm.product.dao.ProductDao;
import com.tcm.util.product.ProductVo;
import com.yanzuoguang.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Component;
@Component
public class ProductDaoImpl extends BaseDaoImpl implements ProductDao {
@Override
protected void init() {
register(ProductVo.class);
}
}
package com.tcm.product.dao.impl;
import com.tcm.product.dao.ProductExtendDao;
import com.tcm.util.product.ProductExtendVo;
import com.yanzuoguang.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Component;
@Component
public class ProductExtendDaoImpl extends BaseDaoImpl implements ProductExtendDao {
@Override
protected void init() {
register(ProductExtendVo.class);
}
}
package com.tcm.product.dao.impl;
import com.tcm.product.dao.ProductPriceDao;
import com.tcm.util.product.ProductPriceVo;
import com.yanzuoguang.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Component;
@Component
public class ProductPriceDaoImpl extends BaseDaoImpl implements ProductPriceDao {
@Override
protected void init() {
register(ProductPriceVo.class);
}
}
package com.tcm.product.dao.impl;
import com.tcm.product.dao.ProductStockDao;
import com.tcm.util.product.ProductStockVo;
import com.yanzuoguang.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Component;
@Component
public class ProductStockDaoImpl extends BaseDaoImpl implements ProductStockDao {
@Override
protected void init() {
register(ProductStockVo.class);
}
}
package com.tcm.product.service;
import com.tcm.util.product.req.ProductCategoryLoadPageReqVo;
import com.tcm.util.product.req.ProductCategoryReqVo;
import com.tcm.util.product.res.ProductCategoryResVo;
import com.yanzuoguang.util.vo.PageSizeData;
public interface ProductCategoryService {
/**
* 产品分类保存
*
* @param req
* @return
*/
String save(ProductCategoryReqVo req);
/**
* 产品分类加载
*
* @param req
* @return
*/
ProductCategoryResVo load(ProductCategoryReqVo req);
/**
* 产品分类分页
*
* @param req
* @return
*/
PageSizeData<ProductCategoryResVo> loadPage(ProductCategoryLoadPageReqVo req);
/**
* 产品分类删除
*
* @param req
* @return
*/
String remove(ProductCategoryReqVo req);
}
package com.tcm.product.service;
import com.tcm.util.product.req.ProductLoadPageReqVo;
import com.tcm.util.product.req.ProductReqVo;
import com.tcm.util.product.res.ProductResVo;
import com.yanzuoguang.util.vo.PageSizeData;
public interface ProductService {
/**
* 产品保存
*
* @param req
* @return
*/
String save(ProductReqVo req);
/**
* 产品加载
*
* @param req
* @return
*/
ProductResVo load(ProductReqVo req);
/**
* 产品分页
*
* @param req
* @return
*/
PageSizeData<ProductResVo> loadPage(ProductLoadPageReqVo req);
/**
* 产品删除
*
* @param req
* @return
*/
String remove(ProductReqVo req);
}
package com.tcm.product.service.impl;
import com.tcm.product.dao.ProductCategoryDao;
import com.tcm.product.dao.ProductDao;
import com.tcm.product.service.ProductCategoryService;
import com.tcm.util.product.req.ProductCategoryLoadPageReqVo;
import com.tcm.util.product.req.ProductCategoryReqVo;
import com.tcm.util.product.res.ProductCategoryResVo;
import com.yanzuoguang.util.vo.PageSizeData;
import org.springframework.stereotype.Service;
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
private final ProductCategoryDao productCategoryDao;
private final ProductDao productDao;
public ProductCategoryServiceImpl(ProductCategoryDao productCategoryDao,
ProductDao productDao) {
this.productCategoryDao = productCategoryDao;
this.productDao = productDao;
}
@Override
public String save(ProductCategoryReqVo req) {
return null;
}
@Override
public ProductCategoryResVo load(ProductCategoryReqVo req) {
return null;
}
@Override
public PageSizeData<ProductCategoryResVo> loadPage(ProductCategoryLoadPageReqVo req) {
return null;
}
@Override
public String remove(ProductCategoryReqVo req) {
return null;
}
}
package com.tcm.product.service.impl;
import com.tcm.product.dao.ProductCategoryDao;
import com.tcm.product.dao.ProductDao;
import com.tcm.product.dao.ProductExtendDao;
import com.tcm.product.service.ProductService;
import com.tcm.util.product.req.ProductLoadPageReqVo;
import com.tcm.util.product.req.ProductReqVo;
import com.tcm.util.product.res.ProductResVo;
import com.yanzuoguang.util.vo.PageSizeData;
import org.springframework.stereotype.Service;
@Service
public class ProductServiceImpl implements ProductService {
private final ProductDao productDao;
private final ProductExtendDao productExtendDao;
private final ProductCategoryDao productCategoryDao;
public ProductServiceImpl(ProductDao productDao,
ProductExtendDao productExtendDao,
ProductCategoryDao productCategoryDao) {
this.productDao = productDao;
this.productExtendDao = productExtendDao;
this.productCategoryDao = productCategoryDao;
}
@Override
public String save(ProductReqVo req) {
return null;
}
@Override
public ProductResVo load(ProductReqVo req) {
return null;
}
@Override
public PageSizeData<ProductResVo> loadPage(ProductLoadPageReqVo req) {
return null;
}
@Override
public String remove(ProductReqVo req) {
return null;
}
}
package com.tcm.product.web;
import com.tcm.product.service.ProductCategoryService;
import com.tcm.util.product.req.ProductCategoryLoadPageReqVo;
import com.tcm.util.product.req.ProductCategoryReqVo;
import com.tcm.util.product.req.ProductLoadPageReqVo;
import com.tcm.util.product.req.ProductReqVo;
import com.tcm.util.product.res.ProductCategoryResVo;
import com.tcm.util.product.res.ProductResVo;
import com.yanzuoguang.util.vo.PageSizeData;
import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 产品分类管理
*/
@RestController
@RequestMapping("/productCategory")
public class ProductCategoryController {
private final ProductCategoryService productCategoryService;
public ProductCategoryController(ProductCategoryService productCategoryService) {
this.productCategoryService = productCategoryService;
}
/**
* 产品分类新增
*/
@RequestMapping("/save")
public ResponseResult<String> save(@RequestBody ProductCategoryReqVo req) {
return ResponseResult.result(productCategoryService.save(req));
}
/**
* 产品分类加载
*/
@RequestMapping("/load")
public ResponseResult<ProductCategoryResVo> load(@RequestBody ProductCategoryReqVo req) {
return ResponseResult.result(productCategoryService.load(req));
}
/**
* 产品分类分页查询
*/
@RequestMapping("/loadPage")
public ResponseResult<PageSizeData<ProductCategoryResVo>> loadPage(@RequestBody ProductCategoryLoadPageReqVo req) {
return ResponseResult.result(productCategoryService.loadPage(req));
}
/**
* 产品分类删除
*/
@RequestMapping("/remove")
public ResponseResult<String> remove(@RequestBody ProductCategoryReqVo req) {
return ResponseResult.result(productCategoryService.remove(req));
}
}
package com.tcm.product.web;
import com.tcm.product.service.ProductService;
import com.tcm.util.product.req.ProductLoadPageReqVo;
import com.tcm.util.product.req.ProductReqVo;
import com.tcm.util.product.res.ProductResVo;
import com.yanzuoguang.util.vo.PageSizeData;
import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/product")
public class ProductController {
private final ProductService productService;
public ProductController(ProductService productService) {
this.productService = productService;
}
/**
* 产品新增
*/
@RequestMapping("/save")
public ResponseResult<String> save(@RequestBody ProductReqVo req) {
return ResponseResult.result(productService.save(req));
}
/**
* 产品加载
*/
@RequestMapping("/load")
public ResponseResult<ProductResVo> load(@RequestBody ProductReqVo req) {
return ResponseResult.result(productService.load(req));
}
/**
* 产品分页查询
*/
@RequestMapping("/loadPage")
public ResponseResult<PageSizeData<ProductResVo>> loadPage(@RequestBody ProductLoadPageReqVo req) {
return ResponseResult.result(productService.loadPage(req));
}
/**
* 产品删除
*/
@RequestMapping("/remove")
public ResponseResult<String> remove(@RequestBody ProductReqVo req) {
return ResponseResult.result(productService.remove(req));
}
}
package com.tcm.util.area;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
@TableAnnotation("tcm_floor_area")
public class FloorAreaVo {
/**
* 区域主键id
*/
@TableAnnotation("area_id")
@ApiModelProperty(notes = "区域主键id")
private String areaId;
/**
* 楼层主键id
*/
@TableAnnotation("floor_id")
@ApiModelProperty(notes = "楼层主键id")
private String floorId;
/**
* 区域名称
*/
@TableAnnotation("area_name")
@ApiModelProperty(notes = "区域名称")
private String areaName;
/**
* 是否特殊区0是1否
*/
@TableAnnotation("is_feature")
@ApiModelProperty(notes = "是否特殊区0是1否")
private Integer isFeature;
/**
* 区域描述
*/
@TableAnnotation("area_desc")
@ApiModelProperty(notes = "区域描述")
private String areaDesc;
/**
* 区域具体位置介绍
*/
@TableAnnotation("position")
@ApiModelProperty(notes = "区域具体位置介绍")
private String position;
/**
* 区域图标
*/
@TableAnnotation("area_icon")
@ApiModelProperty(notes = "区域图标")
private String areaIcon;
/**
* 排序
*/
@TableAnnotation("sort")
@ApiModelProperty(notes = "排序")
private Integer sort;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public FloorAreaVo() {
}
public String getAreaId() {
return areaId;
}
public void setAreaId(String areaId) {
this.areaId = areaId;
}
public String getFloorId() {
return floorId;
}
public void setFloorId(String floorId) {
this.floorId = floorId;
}
public String getAreaName() {
return areaName;
}
public void setAreaName(String areaName) {
this.areaName = areaName;
}
public Integer getIsFeature() {
return isFeature;
}
public void setIsFeature(Integer isFeature) {
this.isFeature = isFeature;
}
public String getAreaDesc() {
return areaDesc;
}
public void setAreaDesc(String areaDesc) {
this.areaDesc = areaDesc;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public String getAreaIcon() {
return areaIcon;
}
public void setAreaIcon(String areaIcon) {
this.areaIcon = areaIcon;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.area;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_floor")
public class FloorVo {
/**
* 楼层主键id
*/
@TableAnnotation("floor_id")
@ApiModelProperty(notes = "楼层主键id")
private String floorId;
/**
* 楼层名称
*/
@TableAnnotation("floor_name")
@ApiModelProperty(notes = "楼层名称")
private String floorName;
/**
* 楼层描述
*/
@TableAnnotation("floor_desc")
@ApiModelProperty(notes = "楼层描述")
private String floorDesc;
/**
* 楼层图标
*/
@TableAnnotation("floor_icon")
@ApiModelProperty(notes = "楼层图标")
private String floorIcon;
/**
* 楼层状态
*/
@TableAnnotation("floor_status")
@ApiModelProperty(notes = "楼层状态")
private Integer floorStatus;
/**
* 排序
*/
@TableAnnotation("sort")
@ApiModelProperty(notes = "排序")
private Integer sort;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public FloorVo() {
}
public String getFloorId() {
return floorId;
}
public void setFloorId(String floorId) {
this.floorId = floorId;
}
public String getFloorName() {
return floorName;
}
public void setFloorName(String floorName) {
this.floorName = floorName;
}
public String getFloorDesc() {
return floorDesc;
}
public void setFloorDesc(String floorDesc) {
this.floorDesc = floorDesc;
}
public String getFloorIcon() {
return floorIcon;
}
public void setFloorIcon(String floorIcon) {
this.floorIcon = floorIcon;
}
public Integer getFloorStatus() {
return floorStatus;
}
public void setFloorStatus(Integer floorStatus) {
this.floorStatus = floorStatus;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.common;
public class CarouselVo {
}
package com.tcm.util.common;
public class CenterDisplayVo {
}
package com.tcm.util.common;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_image")
public class ImageVo {
/**
* 图片主键id
*/
@TableAnnotation("image_id")
@ApiModelProperty(notes = "图片主键id")
private String imageId;
/**
* 关联id
*/
@TableAnnotation("relation_id")
@ApiModelProperty(notes = "关联id")
private String relationId;
/**
* 图片类型
*/
@TableAnnotation("image_type")
@ApiModelProperty(notes = "图片类型")
private Integer imageType;
/**
* 图片位置
*/
@TableAnnotation("location")
@ApiModelProperty(notes = "图片位置")
private Integer location;
/**
* 图片地址
*/
@TableAnnotation("image_url")
@ApiModelProperty(notes = "图片地址")
private String imageUrl;
/**
* 图片状态0启用1禁用
*/
@TableAnnotation("image_status")
@ApiModelProperty(notes = "图片状态0启用1禁用")
private Integer imageStatus;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public ImageVo() {
}
public String getImageId() {
return imageId;
}
public void setImageId(String imageId) {
this.imageId = imageId;
}
public String getRelationId() {
return relationId;
}
public void setRelationId(String relationId) {
this.relationId = relationId;
}
public Integer getImageType() {
return imageType;
}
public void setImageType(Integer imageType) {
this.imageType = imageType;
}
public Integer getLocation() {
return location;
}
public void setLocation(Integer location) {
this.location = location;
}
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public Integer getImageStatus() {
return imageStatus;
}
public void setImageStatus(Integer imageStatus) {
this.imageStatus = imageStatus;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.common;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_enum")
public class TcmEnumVo {
/**
* 枚举主键id
*/
@TableAnnotation("enum_id")
@ApiModelProperty(notes = "枚举主键id")
private String enumId;
/**
* 枚举类型
*/
@TableAnnotation("enum_type")
@ApiModelProperty(notes = "枚举类型")
private Integer enumType;
/**
* 枚举名称
*/
@TableAnnotation("enum_name")
@ApiModelProperty(notes = "枚举名称")
private String enumName;
/**
* 枚举子类型
*/
@TableAnnotation("child_type")
@ApiModelProperty(notes = "枚举子类型")
private String childType;
/**
* 枚举key
*/
@TableAnnotation("enum_key")
@ApiModelProperty(notes = "枚举key")
private String enumKey;
/**
* 枚举value
*/
@TableAnnotation("enum_value")
@ApiModelProperty(notes = "枚举value")
private String enumValue;
/**
* 排序
*/
@TableAnnotation("sort")
@ApiModelProperty(notes = "排序")
private Integer sort;
/**
* 枚举状态0启用1禁用
*/
@TableAnnotation("enum_status")
@ApiModelProperty(notes = "枚举状态0启用1禁用")
private Integer enumStatus;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public TcmEnumVo() {
}
public String getEnumId() {
return enumId;
}
public void setEnumId(String enumId) {
this.enumId = enumId;
}
public Integer getEnumType() {
return enumType;
}
public void setEnumType(Integer enumType) {
this.enumType = enumType;
}
public String getEnumName() {
return enumName;
}
public void setEnumName(String enumName) {
this.enumName = enumName;
}
public String getChildType() {
return childType;
}
public void setChildType(String childType) {
this.childType = childType;
}
public String getEnumKey() {
return enumKey;
}
public void setEnumKey(String enumKey) {
this.enumKey = enumKey;
}
public String getEnumValue() {
return enumValue;
}
public void setEnumValue(String enumValue) {
this.enumValue = enumValue;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Integer getEnumStatus() {
return enumStatus;
}
public void setEnumStatus(Integer enumStatus) {
this.enumStatus = enumStatus;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.common;
public class VisitorVo {
}
package com.tcm.util.product;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_product_category")
public class ProductCategoryVo {
/**
* 主键id
*/
@TableAnnotation("category_id")
@ApiModelProperty(notes = "主键id")
private String categoryId;
/**
* 类别名称
*/
@TableAnnotation("category_name")
@ApiModelProperty(notes = "类别名称")
private String categoryName;
/**
* 父类id
*/
@TableAnnotation("parent_id")
@ApiModelProperty(notes = "父类id")
private String parentId;
/**
* 排序
*/
@TableAnnotation("sort")
@ApiModelProperty(notes = "排序")
private Integer sort;
/**
* 状态0启用1禁用
*/
@TableAnnotation("status")
@ApiModelProperty(notes = "状态0启用1禁用")
private Integer status;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public ProductCategoryVo() {
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public String getCategoryName() {
return categoryName;
}
public void setCategoryName(String categoryName) {
this.categoryName = categoryName;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.product;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_product_extend")
public class ProductExtendVo {
/**
* 产品扩展主键id
*/
@TableAnnotation("product_extend_id")
@ApiModelProperty(notes = "产品扩展主键id")
private String productExtendId;
/**
* 关联产品id
*/
@TableAnnotation("product_id")
@ApiModelProperty(notes = "关联产品id")
private String productId;
/**
* 标题
*/
@TableAnnotation("title")
@ApiModelProperty(notes = "标题")
private String title;
/**
* 描述详情
*/
@TableAnnotation("description")
@ApiModelProperty(notes = "描述详情")
private String description;
/**
* 位置
*/
@TableAnnotation("position")
@ApiModelProperty(notes = "位置")
private String position;
/**
* 服务类型
*/
@TableAnnotation("service_type")
@ApiModelProperty(notes = "服务类型")
private Integer serviceType;
/**
* 服务时长
*/
@TableAnnotation("service_duration")
@ApiModelProperty(notes = "服务时长")
private String serviceDuration;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public ProductExtendVo() {
}
public String getProductExtendId() {
return productExtendId;
}
public void setProductExtendId(String productExtendId) {
this.productExtendId = productExtendId;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public Integer getServiceType() {
return serviceType;
}
public void setServiceType(Integer serviceType) {
this.serviceType = serviceType;
}
public String getServiceDuration() {
return serviceDuration;
}
public void setServiceDuration(String serviceDuration) {
this.serviceDuration = serviceDuration;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.product;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_product_price")
public class ProductPriceVo {
/**
* 价格主键id
*/
@TableAnnotation("price_id")
@ApiModelProperty(notes = "价格主键id")
private String priceId;
/**
* 产品id
*/
@TableAnnotation("product_id")
@ApiModelProperty(notes = "产品id")
private String productId;
/**
* 价格类型
*/
@TableAnnotation("price_type")
@ApiModelProperty(notes = "价格类型")
private Integer priceType;
/**
* 开始时间
*/
@TableAnnotation("start_date")
@ApiModelProperty(notes = "开始时间")
private String startDate;
/**
* 结束时间
*/
@TableAnnotation("end_date")
@ApiModelProperty(notes = "结束时间")
private String endDate;
/**
* 价格
*/
@TableAnnotation("price")
@ApiModelProperty(notes = "价格")
private Double price;
/**
* 市场价
*/
@TableAnnotation("market_price")
@ApiModelProperty(notes = "市场价")
private Double marketPrice;
/**
* 结算价
*/
@TableAnnotation("settlement_price")
@ApiModelProperty(notes = "结算价")
private Double settlementPrice;
/**
* 价格状态0上架1下架
*/
@TableAnnotation("price_status")
@ApiModelProperty(notes = "价格状态0上架1下架")
private Integer priceStatus;
/**
* 备注
*/
@TableAnnotation("remark")
@ApiModelProperty(notes = "备注")
private String remark;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public ProductPriceVo() {
}
public String getPriceId() {
return priceId;
}
public void setPriceId(String priceId) {
this.priceId = priceId;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public Integer getPriceType() {
return priceType;
}
public void setPriceType(Integer priceType) {
this.priceType = priceType;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Double getMarketPrice() {
return marketPrice;
}
public void setMarketPrice(Double marketPrice) {
this.marketPrice = marketPrice;
}
public Double getSettlementPrice() {
return settlementPrice;
}
public void setSettlementPrice(Double settlementPrice) {
this.settlementPrice = settlementPrice;
}
public Integer getPriceStatus() {
return priceStatus;
}
public void setPriceStatus(Integer priceStatus) {
this.priceStatus = priceStatus;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.product;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_product_stock")
public class ProductStockVo {
/**
* 库存主键id
*/
@TableAnnotation("stock_id")
@ApiModelProperty(notes = "库存主键id")
private String stockId;
/**
* 产品id
*/
@TableAnnotation("product_id")
@ApiModelProperty(notes = "产品id")
private String productId;
/**
* 库存类型
*/
@TableAnnotation("stock_type")
@ApiModelProperty(notes = "库存类型")
private Integer stockType;
/**
* 总量
*/
@TableAnnotation("total")
@ApiModelProperty(notes = "总量")
private Integer total;
/**
* 剩余量
*/
@TableAnnotation("surplus")
@ApiModelProperty(notes = "剩余量")
private Integer surplus;
/**
* 库存状态0上架1下架
*/
@TableAnnotation("stock_status")
@ApiModelProperty(notes = "库存状态0上架1下架")
private Integer stockStatus;
/**
* 开始时间
*/
@TableAnnotation("start_date")
@ApiModelProperty(notes = "开始时间")
private String startDate;
/**
* 结束时间
*/
@TableAnnotation("end_date")
@ApiModelProperty(notes = "结束时间")
private String endDate;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public ProductStockVo() {
}
public String getStockId() {
return stockId;
}
public void setStockId(String stockId) {
this.stockId = stockId;
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public Integer getStockType() {
return stockType;
}
public void setStockType(Integer stockType) {
this.stockType = stockType;
}
public Integer getTotal() {
return total;
}
public void setTotal(Integer total) {
this.total = total;
}
public Integer getSurplus() {
return surplus;
}
public void setSurplus(Integer surplus) {
this.surplus = surplus;
}
public Integer getStockStatus() {
return stockStatus;
}
public void setStockStatus(Integer stockStatus) {
this.stockStatus = stockStatus;
}
public String getStartDate() {
return startDate;
}
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.product;
import com.yanzuoguang.dao.TableAnnotation;
import io.swagger.annotations.ApiModelProperty;
@TableAnnotation("tcm_product")
public class ProductVo {
/**
* 产品主键id
*/
@TableAnnotation("product_id")
@ApiModelProperty(notes = "产品主键id")
private String productId;
/**
* 产品名称
*/
@TableAnnotation("product_name")
@ApiModelProperty(notes = "产品名称")
private String productName;
/**
* 类别id
*/
@TableAnnotation("category_id")
@ApiModelProperty(notes = "类别id")
private String categoryId;
/**
* 产品类型1 - 大健康产品,2 - 预约产品
*/
@TableAnnotation("product_type")
@ApiModelProperty(notes = "产品类型1 - 大健康产品,2 - 预约产品")
private Integer productType;
/**
* 可约人数 / 天(仅预约产品)
*/
@TableAnnotation("max_people")
@ApiModelProperty(notes = "可约人数 / 天(仅预约产品)")
private Integer maxPeople;
/**
* 已预约人数
*/
@TableAnnotation("booked_people")
@ApiModelProperty(notes = "已预约人数")
private Integer bookedPeople;
/**
* 售价
*/
@TableAnnotation("price")
@ApiModelProperty(notes = "售价")
private Double price;
/**
* 门市价
*/
@TableAnnotation("market_price")
@ApiModelProperty(notes = "门市价")
private Double marketPrice;
/**
* 结算价
*/
@TableAnnotation("settlement_price")
@ApiModelProperty(notes = "结算价")
private Double settlementPrice;
/**
* 状态
*/
@TableAnnotation("status")
@ApiModelProperty(notes = "状态")
private Integer status;
/**
* 排序
*/
@TableAnnotation("sort")
@ApiModelProperty(notes = "排序")
private Integer sort;
/**
* 创建时间
*/
@TableAnnotation("create_time")
@ApiModelProperty(notes = "创建时间")
private String createTime;
/**
* 更新时间
*/
@TableAnnotation("update_time")
@ApiModelProperty(notes = "更新时间")
private String updateTime;
public ProductVo() {
}
public String getProductId() {
return productId;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getCategoryId() {
return categoryId;
}
public void setCategoryId(String categoryId) {
this.categoryId = categoryId;
}
public Integer getProductType() {
return productType;
}
public void setProductType(Integer productType) {
this.productType = productType;
}
public Integer getMaxPeople() {
return maxPeople;
}
public void setMaxPeople(Integer maxPeople) {
this.maxPeople = maxPeople;
}
public Integer getBookedPeople() {
return bookedPeople;
}
public void setBookedPeople(Integer bookedPeople) {
this.bookedPeople = bookedPeople;
}
public Double getPrice() {
return price;
}
public void setPrice(Double price) {
this.price = price;
}
public Double getMarketPrice() {
return marketPrice;
}
public void setMarketPrice(Double marketPrice) {
this.marketPrice = marketPrice;
}
public Double getSettlementPrice() {
return settlementPrice;
}
public void setSettlementPrice(Double settlementPrice) {
this.settlementPrice = settlementPrice;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getCreateTime() {
return createTime;
}
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
public String getUpdateTime() {
return updateTime;
}
public void setUpdateTime(String updateTime) {
this.updateTime = updateTime;
}
}
package com.tcm.util.product.req;
import com.yanzuoguang.util.vo.PageSizeReqVo;
public class ProductCategoryLoadPageReqVo extends PageSizeReqVo {
}
package com.tcm.util.product.req;
import com.tcm.util.product.ProductCategoryVo;
public class ProductCategoryReqVo extends ProductCategoryVo {
}
package com.tcm.util.product.req;
import com.tcm.util.product.ProductExtendVo;
public class ProductExtendReqVo extends ProductExtendVo {
}
package com.tcm.util.product.req;
import com.yanzuoguang.util.vo.PageSizeReqVo;
public class ProductLoadPageReqVo extends PageSizeReqVo {
}
package com.tcm.util.product.req;
import com.tcm.util.product.ProductExtendVo;
import com.tcm.util.product.ProductVo;
public class ProductReqVo extends ProductVo {
private ProductExtendVo productExtendVo;
public ProductExtendVo getProductExtendVo() {
return productExtendVo;
}
public void setProductExtendVo(ProductExtendVo productExtendVo) {
this.productExtendVo = productExtendVo;
}
}
package com.tcm.util.product.res;
import com.tcm.util.product.ProductCategoryVo;
public class ProductCategoryResVo extends ProductCategoryVo {
}
package com.tcm.util.product.res;
import com.tcm.util.product.ProductExtendVo;
public class ProductExtendResVo extends ProductExtendVo {
}
package com.tcm.util.product.res;
import com.tcm.util.product.ProductExtendVo;
import com.tcm.util.product.ProductVo;
public class ProductResVo extends ProductVo {
private ProductExtendVo productExtendVo;
public ProductExtendVo getProductExtendVo() {
return productExtendVo;
}
public void setProductExtendVo(ProductExtendVo productExtendVo) {
this.productExtendVo = productExtendVo;
}
}
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