| | |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>sales</artifactId> |
| | | <artifactId>eyes</artifactId> |
| | | <groupId>com</groupId> |
| | | <version>0.0.1-SNAPSHOT</version> |
| | | </parent> |
| | |
| | | xmlns="http://maven.apache.org/POM/4.0.0" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>sales</artifactId> |
| | | <artifactId>eyes</artifactId> |
| | | <groupId>com</groupId> |
| | | <version>0.0.1-SNAPSHOT</version> |
| | | </parent> |
| | |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>sales</artifactId> |
| | | <artifactId>eyes</artifactId> |
| | | <groupId>com</groupId> |
| | | <version>0.0.1-SNAPSHOT</version> |
| | | </parent> |
| | |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>sales</artifactId> |
| | | <artifactId>eyes</artifactId> |
| | | <groupId>com</groupId> |
| | | <version>0.0.1-SNAPSHOT</version> |
| | | </parent> |
| | |
| | | @TableField("deptId") |
| | | private Long deptId; |
| | | |
| | | @ApiModelProperty(value = "用户类型 1=平台管理员,2=验光师") |
| | | @ApiModelProperty(value = "类型1平台管理员2验光师3员工") |
| | | @TableField("userType") |
| | | private Integer userType; |
| | | @ApiModelProperty(value = "门店id") |
| | | @TableField("storeId") |
| | | private Integer storeId; |
| | | @ApiModelProperty(value = "省code") |
| | | @TableField("provinceCode") |
| | | private String provinceCode; |
| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import com.jilongda.manage.query.TBrandQuery; |
| | | import com.jilongda.manage.service.TBrandService; |
| | | import com.jilongda.manage.utils.LoginInfoUtil; |
| | | import com.jilongda.manage.vo.TBrandVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "镜架/镜片品牌表") |
| | | @RestController |
| | | @RequestMapping("/t-brand") |
| | | public class TBrandController { |
| | | |
| | | @Autowired |
| | | private TBrandService brandService; |
| | | |
| | | /** |
| | | * 获取镜架/镜片品牌列表 |
| | | */ |
| | | @ApiOperation(value = "获取镜架/镜片品牌分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TBrandVO>> pageList(@RequestBody TBrandQuery query) { |
| | | return ApiResult.success(brandService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 添加镜架/镜片品牌 |
| | | */ |
| | | @ApiOperation(value = "添加镜架/镜片品牌") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@Validated @RequestBody TBrand dto) { |
| | | brandService.save(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改镜架/镜片品牌--启用、禁用、设置主要品牌接口") |
| | | @PostMapping(value = "/update") |
| | | public ApiResult<String> update(@RequestBody TBrand dto) { |
| | | brandService.updateById(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除镜架/镜片品牌") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public ApiResult<Boolean> deleteById(@RequestParam Long id) { |
| | | return ApiResult.success(brandService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除镜架/镜片品牌") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public ApiResult<Boolean> deleteByIds(@RequestBody List<Long> ids) { |
| | | return ApiResult.success(brandService.removeByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询镜架/镜片品牌详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public ApiResult<TBrand> getDetailById(@RequestParam Long id) { |
| | | return ApiResult.success(brandService.getById(id)); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TMaterial; |
| | | import com.jilongda.manage.query.TMaterialQuery; |
| | | import com.jilongda.manage.service.TMaterialService; |
| | | import com.jilongda.manage.vo.TMaterialVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 镜架/镜片品牌表 前端控制器 |
| | | * 材质表 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "材质管理") |
| | | @RestController |
| | | @RequestMapping("/t-material") |
| | | public class TMaterialController { |
| | | |
| | | @Autowired |
| | | private TMaterialService materialService; |
| | | |
| | | /** |
| | | * 获取材质列表 |
| | | */ |
| | | @ApiOperation(value = "获取材质分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TMaterialVO>> pageList(@RequestBody TMaterialQuery query) { |
| | | return ApiResult.success(materialService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取材质列表 |
| | | */ |
| | | @ApiOperation(value = "获取材质列表") |
| | | @PostMapping(value = "/list") |
| | | public ApiResult<List<TMaterial>> list(@RequestBody TMaterialQuery query) { |
| | | List<TMaterial> list = materialService.list(Wrappers.lambdaQuery(TMaterial.class) |
| | | .eq(TMaterial::getStatus, 1)); |
| | | return ApiResult.success(list); |
| | | } |
| | | |
| | | /** |
| | | * 添加材质 |
| | | */ |
| | | @ApiOperation(value = "添加材质") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@Validated @RequestBody TMaterial dto) { |
| | | Boolean flag = materialService.isExit(dto.getId(), dto.getName()); |
| | | if(flag){ |
| | | return ApiResult.failed("材质名称已存在"); |
| | | } |
| | | materialService.save(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改材质") |
| | | @PostMapping(value = "/update") |
| | | public ApiResult<String> update(@Validated @RequestBody TMaterial dto) { |
| | | Boolean flag = materialService.isExit(dto.getId(), dto.getName()); |
| | | if(flag){ |
| | | return ApiResult.failed("材质名称已存在"); |
| | | } |
| | | materialService.updateById(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 材质启用禁用 |
| | | */ |
| | | @ApiOperation(value = "材质启用禁用") |
| | | @GetMapping(value = "/upAndDown") |
| | | public ApiResult<Boolean> upAndDown(@RequestParam Long id, |
| | | @RequestParam Integer status) { |
| | | return ApiResult.success(materialService.upAndDown(id,status)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除材质") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public ApiResult<Boolean> deleteById(@RequestParam Long id) { |
| | | return ApiResult.success(materialService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除材质") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public ApiResult<Boolean> deleteByIds(@RequestBody List<Long> ids) { |
| | | return ApiResult.success(materialService.removeByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询材质详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public ApiResult<TMaterial> getDetailById(@RequestParam Long id) { |
| | | return ApiResult.success(materialService.getById(id)); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.dto.TModelDTO; |
| | | import com.jilongda.manage.model.TModel; |
| | | import com.jilongda.manage.query.TModelQuery; |
| | | import com.jilongda.manage.service.TModelService; |
| | | import com.jilongda.manage.vo.TModelVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "镜架型号表") |
| | | @RestController |
| | | @RequestMapping("/t-model") |
| | | public class TModelController { |
| | | |
| | | @Autowired |
| | | private TModelService modelService; |
| | | |
| | | /** |
| | | * 获取镜架型号列表 |
| | | */ |
| | | @ApiOperation(value = "获取镜架型号分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TModelVO>> pageList(@RequestBody TModelQuery query) { |
| | | return ApiResult.success(modelService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 通过品牌查询型号列表 |
| | | */ |
| | | @ApiOperation(value = "通过品牌id查询型号列表") |
| | | @GetMapping(value = "/getListByBrandId") |
| | | public ApiResult<List<TModel>> pageList(@RequestParam Integer brandId) { |
| | | List<TModel> list = modelService.list(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getBrandId, brandId) |
| | | .groupBy(TModel::getName)); |
| | | return ApiResult.success(list); |
| | | } |
| | | |
| | | /** |
| | | * 通过型号查询色号列表 |
| | | */ |
| | | @ApiOperation(value = "通过型号查询色号列表") |
| | | @GetMapping(value = "/getListByName") |
| | | public ApiResult<List<TModel>> pageList(@RequestParam String name) { |
| | | List<TModel> list = modelService.list(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getName, name)); |
| | | return ApiResult.success(list); |
| | | } |
| | | |
| | | /** |
| | | * 添加镜架型号 |
| | | */ |
| | | @ApiOperation(value = "添加镜架型号") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@Validated @RequestBody TModelDTO dto) { |
| | | List<String> colorList = dto.getColorList(); |
| | | List<TModel> models = new ArrayList<>(); |
| | | for (String s : colorList) { |
| | | TModel model = new TModel(); |
| | | BeanUtils.copyProperties(dto, model); |
| | | model.setColor(s); |
| | | models.add(model); |
| | | } |
| | | modelService.saveBatch(models); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改镜架型号") |
| | | @PostMapping(value = "/update") |
| | | public ApiResult<String> update(@RequestBody TModelDTO dto) { |
| | | |
| | | modelService.remove(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getName,dto.getName())); |
| | | |
| | | List<String> colorList = dto.getColorList(); |
| | | List<TModel> models = new ArrayList<>(); |
| | | for (String s : colorList) { |
| | | TModel model = new TModel(); |
| | | BeanUtils.copyProperties(dto, model); |
| | | model.setColor(s); |
| | | models.add(model); |
| | | } |
| | | modelService.saveBatch(models); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 镜架型号上下架 |
| | | */ |
| | | @ApiOperation(value = "镜架型号上下架--列表使用") |
| | | @GetMapping(value = "/upAndDown") |
| | | public ApiResult<Boolean> upAndDown(@RequestParam String name, |
| | | @RequestParam Integer status) { |
| | | return ApiResult.success(modelService.upAndDown(name,status)); |
| | | } |
| | | |
| | | /** |
| | | * 镜架型号上下架 |
| | | */ |
| | | @ApiOperation(value = "镜架型号上下架--修改界面使用") |
| | | @GetMapping(value = "/upAndDownColor") |
| | | public ApiResult<Boolean> upAndDownColor(@RequestParam String name, |
| | | @RequestParam String color, |
| | | @RequestParam Integer status) { |
| | | return ApiResult.success(modelService.upAndDownColor(name,color,status)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除镜架型号") |
| | | @DeleteMapping(value = "/deleteByName") |
| | | public ApiResult<String> deleteById(@RequestParam String name) { |
| | | modelService.remove(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getName, name)); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除镜架型号") |
| | | @DeleteMapping(value = "/deleteByNames") |
| | | public ApiResult<String> deleteByIds(@RequestBody List<String> names) { |
| | | modelService.remove(Wrappers.lambdaQuery(TModel.class) |
| | | .in(TModel::getName, names)); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询镜架型号详情") |
| | | @GetMapping(value = "/getDetailByName") |
| | | public ApiResult<TModelVO> getDetailById(@RequestParam String name) { |
| | | List<TModel> models = modelService.list(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getName, name)); |
| | | TModelVO modelVO = new TModelVO(); |
| | | BeanUtils.copyProperties(models.get(0), modelVO); |
| | | List<String> colorList = models.stream().map(TModel::getColor).collect(Collectors.toList()); |
| | | modelVO.setColorList(colorList); |
| | | return ApiResult.success(modelVO); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "") |
| | | @RestController |
| | | @RequestMapping("/t-order") |
| | | public class TOrderController { |
| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import com.jilongda.manage.query.TSupplierQuery; |
| | | import com.jilongda.manage.service.TSupplierService; |
| | | import com.jilongda.manage.vo.TSupplierVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "供应商管理") |
| | | @RestController |
| | | @RequestMapping("/t-supplier") |
| | | public class TSupplierController { |
| | | @Autowired |
| | | private TSupplierService supplierService; |
| | | |
| | | /** |
| | | * 获取供应商列表 |
| | | */ |
| | | @ApiOperation(value = "获取供应商分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public ApiResult<PageInfo<TSupplierVO>> pageList(@RequestBody TSupplierQuery query) { |
| | | return ApiResult.success(supplierService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取供应商列表 |
| | | */ |
| | | @ApiOperation(value = "获取供应商列表") |
| | | @PostMapping(value = "/list") |
| | | public ApiResult<List<TSupplier>> list(@RequestBody TSupplierQuery query) { |
| | | LambdaQueryWrapper<TSupplier> wrapper = new LambdaQueryWrapper<>(); |
| | | if(StringUtils.hasLength(query.getName())){ |
| | | wrapper.like(TSupplier::getName, query.getName()); |
| | | } |
| | | wrapper.eq(TSupplier::getStatus, 1); |
| | | List<TSupplier> list = supplierService.list(wrapper); |
| | | return ApiResult.success(list); |
| | | } |
| | | |
| | | /** |
| | | * 添加供应商 |
| | | */ |
| | | @ApiOperation(value = "添加供应商") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@Validated @RequestBody TSupplier dto) { |
| | | Boolean flag = supplierService.isExit(dto.getId(), dto.getName()); |
| | | if(flag){ |
| | | return ApiResult.failed("供应商名称已存在"); |
| | | } |
| | | supplierService.save(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "修改供应商") |
| | | @PostMapping(value = "/update") |
| | | public ApiResult<String> update(@Validated @RequestBody TSupplier dto) { |
| | | Boolean flag = supplierService.isExit(dto.getId(), dto.getName()); |
| | | if(flag){ |
| | | return ApiResult.failed("供应商名称已存在"); |
| | | } |
| | | supplierService.updateById(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | /** |
| | | * 供应商启用禁用 |
| | | */ |
| | | @ApiOperation(value = "供应商启用禁用") |
| | | @GetMapping(value = "/upAndDown") |
| | | public ApiResult<Boolean> upAndDown(@RequestParam Long id, |
| | | @RequestParam Integer status) { |
| | | return ApiResult.success(supplierService.upAndDown(id,status)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除供应商") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public ApiResult<Boolean> deleteById(@RequestParam Long id) { |
| | | return ApiResult.success(supplierService.removeById(id)); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除供应商") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public ApiResult<Boolean> deleteByIds(@RequestBody List<Long> ids) { |
| | | return ApiResult.success(supplierService.removeByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询供应商详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public ApiResult<TSupplier> getDetailById(@RequestParam Long id) { |
| | | return ApiResult.success(supplierService.getById(id)); |
| | | } |
| | | } |
| | | |
| | |
| | | package com.jilongda.manage.controller; |
| | | |
| | | |
| | | import com.jilongda.common.basic.ApiResult; |
| | | import com.jilongda.manage.model.TWarehousing; |
| | | import com.jilongda.manage.service.TWarehousingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Api(tags = "镜架/镜片出库入库") |
| | | @RestController |
| | | @RequestMapping("/t-warehousing") |
| | | public class TWarehousingController { |
| | | |
| | | @Autowired |
| | | private TWarehousingService warehousingService; |
| | | |
| | | /** |
| | | * 获取镜架/镜片出库入库列表 |
| | | */ |
| | | // @ApiOperation(value = "获取镜架/镜片出库入库分页列表") |
| | | // @PostMapping(value = "/pageList") |
| | | // public ApiResult<PageInfo<TWarehousingVO>> pageList(@RequestBody TWarehousingQuery query) { |
| | | // return ApiResult.success(warehousingService.pageList(query)); |
| | | // } |
| | | |
| | | // /** |
| | | // * 获取镜架/镜片出库入库列表 |
| | | // */ |
| | | // @ApiOperation(value = "获取镜架/镜片出库入库列表") |
| | | // @PostMapping(value = "/list") |
| | | // public ApiResult<List<TWarehousing>> list(@RequestBody TWarehousingQuery query) { |
| | | // List<TWarehousing> list = warehousingService.list(Wrappers.lambdaQuery(TWarehousing.class) |
| | | // .eq(TWarehousing::getStatus, 1)); |
| | | // return ApiResult.success(list); |
| | | // } |
| | | |
| | | /** |
| | | * 添加镜架/镜片出库入库 |
| | | */ |
| | | @ApiOperation(value = "添加镜架/镜片出库入库") |
| | | @PostMapping(value = "/add") |
| | | public ApiResult<String> add(@Validated @RequestBody TWarehousing dto) { |
| | | warehousingService.save(dto); |
| | | return ApiResult.success(); |
| | | } |
| | | |
| | | } |
| | | |
New file |
| | |
| | | package com.jilongda.manage.dto; |
| | | |
| | | import com.jilongda.manage.model.TModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel(value = "镜架型号DTO") |
| | | public class TModelDTO extends TModel { |
| | | |
| | | @NotNull(message = "镜架型号不能为空") |
| | | @ApiModelProperty(value = "色号集合") |
| | | private List<String> colorList; |
| | | |
| | | } |
| | |
| | | package com.jilongda.manage.mapper; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.jilongda.manage.query.TBrandQuery; |
| | | import com.jilongda.manage.vo.TBrandVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Mapper |
| | | public interface TBrandMapper extends BaseMapper<TBrand> { |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @param pageInfo |
| | | * @return |
| | | */ |
| | | List<TBrandVO> pageList(@Param("query") TBrandQuery query, @Param("pageInfo")PageInfo<TBrandVO> pageInfo); |
| | | } |
| | |
| | | package com.jilongda.manage.mapper; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TMaterial; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.jilongda.manage.query.TMaterialQuery; |
| | | import com.jilongda.manage.vo.TMaterialVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface TMaterialMapper extends BaseMapper<TMaterial> { |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @param pageInfo |
| | | * @return |
| | | */ |
| | | List<TMaterialVO> pageList(@Param("query") TMaterialQuery query, @Param("pageInfo")PageInfo<TMaterialVO> pageInfo); |
| | | } |
| | |
| | | package com.jilongda.manage.mapper; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TModel; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.jilongda.manage.query.TModelQuery; |
| | | import com.jilongda.manage.vo.TModelVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface TModelMapper extends BaseMapper<TModel> { |
| | | |
| | | /** |
| | | * 分页查询镜架型号 |
| | | * @param query |
| | | * @param pageInfo |
| | | * @return |
| | | */ |
| | | List<TModelVO> pageList(@Param("query") TModelQuery query, @Param("pageInfo")PageInfo<TModelVO> pageInfo); |
| | | } |
| | |
| | | package com.jilongda.manage.mapper; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.jilongda.manage.query.TSupplierQuery; |
| | | import com.jilongda.manage.vo.TSupplierVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @author 无关风月 |
| | | * @since 2024-12-09 |
| | | */ |
| | | @Mapper |
| | | public interface TSupplierMapper extends BaseMapper<TSupplier> { |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param query |
| | | * @param pageInfo |
| | | * @return |
| | | */ |
| | | List<TSupplierVO> pageList(@Param("query") TSupplierQuery query, @Param("pageInfo")PageInfo<TSupplierVO> pageInfo); |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("sec_fee_items") |
| | | @ApiModel(value="SecFeeItems对象", description="系统设置-收费项设置 ") |
| | | public class SecFeeItems implements Serializable { |
| | | public class SecFeeItems extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "状态 1启用 2禁用") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("sec_setting") |
| | | @ApiModel(value="SecSetting对象", description="系统设置 ") |
| | | public class SecSetting implements Serializable { |
| | | public class SecSetting extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "镜架警告阈值") |
| | | @TableField("frameThreshold") |
| | | private Integer frameThreshold; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_app_user") |
| | | @ApiModel(value="TAppUser对象", description="用户表") |
| | | public class TAppUser implements Serializable { |
| | | public class TAppUser extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "注册时间") |
| | | @TableField("registerTime") |
| | | private LocalDateTime registerTime; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_brand") |
| | | @ApiModel(value="TBrand对象", description="镜架/镜片品牌表") |
| | | public class TBrand implements Serializable { |
| | | public class TBrand extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "品牌名称") |
| | | @Length(max = 15,message = "品牌名称不能超过15个字符") |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "类型 1镜架 2镜片") |
| | | @NotNull(message = "品牌类型不能为空") |
| | | @TableField("type") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "状态 1启用 2禁用") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "是否为主要品牌 1是2否") |
| | | @TableField("isMain") |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_coupon") |
| | | @ApiModel(value="TCoupon对象", description="优惠券领取记录") |
| | | public class TCoupon implements Serializable { |
| | | public class TCoupon extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "优惠条件金额 为0则表示通用券") |
| | | @TableField("amountCondition") |
| | | private BigDecimal amountCondition; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "发放状态1发放中 2暂停发放 只有发放方式为1和4的时候存储") |
| | | @TableField("grantStatus") |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_coupon_receive") |
| | | @ApiModel(value="TCouponReceive对象", description="优惠券") |
| | | public class TCouponReceive implements Serializable { |
| | | public class TCouponReceive extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "1待使用 2已使用 3已过期") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_frame_warehousing_detail") |
| | | @ApiModel(value="TFrameWarehousingDetail对象", description="镜架出库入库详细表") |
| | | public class TFrameWarehousingDetail implements Serializable { |
| | | public class TFrameWarehousingDetail extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "入库编号") |
| | | @TableField("code") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "型号id") |
| | | @TableField("modelId") |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_inventory") |
| | | @ApiModel(value="TInventory对象", description="盘点表") |
| | | public class TInventory implements Serializable { |
| | | public class TInventory extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "备注") |
| | | @TableField("remark") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_inventory_frame_detail") |
| | | @ApiModel(value="TInventoryFrameDetail对象", description="材质表") |
| | | public class TInventoryFrameDetail implements Serializable { |
| | | public class TInventoryFrameDetail extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "差值") |
| | | @TableField("diff") |
| | | private Integer diff; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_inventory_lens_detail") |
| | | @ApiModel(value="TInventoryLensDetail对象", description="镜架盘点详细表") |
| | | public class TInventoryLensDetail implements Serializable { |
| | | public class TInventoryLensDetail extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "盘点类型 1球/柱镜2折射率3系列") |
| | | @TableField("category") |
| | | private Integer category; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_lens_series") |
| | | @ApiModel(value="TLensSeries对象", description="镜片系列表") |
| | | public class TLensSeries implements Serializable { |
| | | public class TLensSeries extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "双非") |
| | | @TableField("doubleNon") |
| | | private String doubleNon; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_lens_warehousing_detail") |
| | | @ApiModel(value="TLensWarehousingDetail对象", description="镜片出库入库明细表") |
| | | public class TLensWarehousingDetail implements Serializable { |
| | | public class TLensWarehousingDetail extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "入库/出库数量") |
| | | @TableField("total") |
| | | private Integer total; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "在库数量(出库没有该字段)") |
| | | @TableField("count") |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_line_up") |
| | | @ApiModel(value="TLineUp对象", description="排号管理") |
| | | public class TLineUp implements Serializable { |
| | | public class TLineUp extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "状态1排队中2验光中3已完成4已过号5已取消") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_material") |
| | | @ApiModel(value="TMaterial对象", description="镜架/镜片品牌表") |
| | | public class TMaterial implements Serializable { |
| | | public class TMaterial extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "状态 1启用 2禁用") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_model") |
| | | @ApiModel(value="TModel对象", description="镜架型号表") |
| | | public class TModel implements Serializable { |
| | | public class TModel extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "状态 1启用 2禁用") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | @ApiModelProperty(value = "库存") |
| | | @TableField("inventory") |
| | | private Integer inventory; |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_optometrist") |
| | | @ApiModel(value="TOptometrist对象", description="验光师表") |
| | | public class TOptometrist implements Serializable { |
| | | public class TOptometrist extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "注册时间") |
| | | @TableField("registerTime") |
| | | private LocalDateTime registerTime; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_optometry") |
| | | @ApiModel(value="TOptometry对象", description="验光单") |
| | | public class TOptometry implements Serializable { |
| | | public class TOptometry extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "注册时间") |
| | | @TableField("registerTime") |
| | | private LocalDateTime registerTime; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_optometry_detail") |
| | | @ApiModel(value="TOptometryDetail对象", description="验光单详情") |
| | | public class TOptometryDetail implements Serializable { |
| | | public class TOptometryDetail extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "注册时间") |
| | | @TableField("registerTime") |
| | | private LocalDateTime registerTime; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_order") |
| | | @ApiModel(value="TOrder对象", description="销售订单表") |
| | | public class TOrder implements Serializable { |
| | | public class TOrder extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "折射率") |
| | | @TableField("refractiveIndex") |
| | | private String refractiveIndex; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "店铺员工id") |
| | | @TableField("sysId") |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_order_accounting") |
| | | @ApiModel(value="TOrderAccounting对象", description="订单核算表") |
| | | public class TOrderAccounting implements Serializable { |
| | | public class TOrderAccounting extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "镜架核算成本价") |
| | | @TableField("frame") |
| | | private BigDecimal frame; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | @ApiModelProperty(value = "手续费") |
| | | @TableField("commission") |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_order_aftersales") |
| | | @ApiModel(value="TOrderAftersales对象", description="订单售后表") |
| | | public class TOrderAftersales implements Serializable { |
| | | public class TOrderAftersales extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "处理结果") |
| | | @TableField("handleResult") |
| | | private String handleResult; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import org.hibernate.validator.constraints.Length; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_supplier") |
| | | @ApiModel(value="TSupplier对象", description="供应商") |
| | | public class TSupplier implements Serializable { |
| | | public class TSupplier extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "供应商名称") |
| | | @Length(max = 25, message = "供应商名称长度不能超过25") |
| | | @TableField("name") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "状态 1启用 2禁用") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_ticket") |
| | | @ApiModel(value="TTicket对象", description="小票机") |
| | | public class TTicket implements Serializable { |
| | | public class TTicket extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "密钥") |
| | | @TableField("secret") |
| | | private String secret; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
| | |
| | | import java.time.LocalDateTime; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import java.io.Serializable; |
| | | |
| | | import com.jilongda.common.pojo.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_warehousing") |
| | | @ApiModel(value="TWarehousing对象", description="镜架/镜片出库入库表") |
| | | public class TWarehousing implements Serializable { |
| | | public class TWarehousing extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | |
| | | @ApiModelProperty(value = "备注") |
| | | @TableField("remark") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "创建时间") |
| | | @TableField("createTime") |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "修改时间") |
| | | @TableField("updateTime") |
| | | private LocalDateTime updateTime; |
| | | |
| | | @TableField("createBy") |
| | | private String createBy; |
| | | |
| | | @TableField("updateBy") |
| | | private String updateBy; |
| | | |
| | | @ApiModelProperty(value = "是否删除 0否1是") |
| | | @TableField("isDelete") |
| | | private Integer isDelete; |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.query; |
| | | |
| | | import com.jilongda.common.pojo.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "镜架/镜片品牌查询参数") |
| | | public class TBrandQuery extends BasePage { |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.query; |
| | | |
| | | import com.jilongda.common.pojo.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "材质Query") |
| | | public class TMaterialQuery extends BasePage { |
| | | |
| | | |
| | | |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.query; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.jilongda.common.pojo.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "镜架型号查询Query") |
| | | public class TModelQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "品牌id") |
| | | private Integer brandId; |
| | | |
| | | @ApiModelProperty(value = "供应商id") |
| | | private Integer supplierId; |
| | | |
| | | @ApiModelProperty(value = "型号") |
| | | private String name; |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.query; |
| | | |
| | | import com.jilongda.common.pojo.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "供应商查询参数") |
| | | public class TSupplierQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "供应商名称") |
| | | private String name; |
| | | |
| | | } |
| | |
| | | package com.jilongda.manage.service; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.jilongda.manage.query.TBrandQuery; |
| | | import com.jilongda.manage.vo.TBrandVO; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface TBrandService extends IService<TBrand> { |
| | | |
| | | /** |
| | | * 获取镜架/镜片品牌分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TBrandVO> pageList(TBrandQuery query); |
| | | } |
| | |
| | | package com.jilongda.manage.service; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TMaterial; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.jilongda.manage.query.TMaterialQuery; |
| | | import com.jilongda.manage.vo.TMaterialVO; |
| | | import com.sun.org.apache.xpath.internal.operations.Bool; |
| | | |
| | | /** |
| | | * <p> |
| | | * 镜架/镜片品牌表 服务类 |
| | | * 材质表 服务类 |
| | | * </p> |
| | | * |
| | | * @author 无关风月 |
| | |
| | | */ |
| | | public interface TMaterialService extends IService<TMaterial> { |
| | | |
| | | /** |
| | | * 判断材质是否存在 |
| | | * @param id |
| | | * @param name |
| | | * @return |
| | | */ |
| | | Boolean isExit(Integer id, String name); |
| | | |
| | | /** |
| | | * 材质启用禁用 |
| | | * @param id |
| | | * @param status |
| | | * @return |
| | | */ |
| | | Boolean upAndDown(Long id, Integer status); |
| | | |
| | | /** |
| | | * 获取材质分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TMaterialVO> pageList(TMaterialQuery query); |
| | | } |
| | |
| | | package com.jilongda.manage.service; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TModel; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.jilongda.manage.query.TModelQuery; |
| | | import com.jilongda.manage.vo.TModelVO; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface TModelService extends IService<TModel> { |
| | | |
| | | /** |
| | | * 镜架型号上下架 |
| | | * @param name |
| | | * @param status |
| | | * @return |
| | | */ |
| | | Boolean upAndDown(String name, Integer status); |
| | | |
| | | /** |
| | | * 镜架型号颜色上下架 |
| | | * @param name |
| | | * @param color |
| | | * @param status |
| | | * @return |
| | | */ |
| | | Boolean upAndDownColor(String name, String color, Integer status); |
| | | |
| | | /** |
| | | * 获取镜架型号分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TModelVO> pageList(TModelQuery query); |
| | | } |
| | |
| | | package com.jilongda.manage.service; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.jilongda.manage.query.TSupplierQuery; |
| | | import com.jilongda.manage.vo.TSupplierVO; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | public interface TSupplierService extends IService<TSupplier> { |
| | | |
| | | /** |
| | | * 获取供应商分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TSupplierVO> pageList(TSupplierQuery query); |
| | | |
| | | /** |
| | | * 判断供应商是否存在 |
| | | * @param id |
| | | * @param name |
| | | * @return |
| | | */ |
| | | Boolean isExit(Integer id, String name); |
| | | |
| | | /** |
| | | * 启用禁用供应商 |
| | | * @param id |
| | | * @param status |
| | | * @return |
| | | */ |
| | | Boolean upAndDown(Long id, Integer status); |
| | | } |
| | |
| | | package com.jilongda.manage.service.impl; |
| | | |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import com.jilongda.manage.mapper.TBrandMapper; |
| | | import com.jilongda.manage.query.TBrandQuery; |
| | | import com.jilongda.manage.service.TBrandService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jilongda.manage.vo.TBrandVO; |
| | | import com.jilongda.manage.vo.TStoreVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TBrandServiceImpl extends ServiceImpl<TBrandMapper, TBrand> implements TBrandService { |
| | | |
| | | @Override |
| | | public PageInfo<TBrandVO> pageList(TBrandQuery query) { |
| | | PageInfo<TBrandVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TBrandVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |
| | |
| | | package com.jilongda.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TMaterial; |
| | | import com.jilongda.manage.mapper.TMaterialMapper; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import com.jilongda.manage.query.TMaterialQuery; |
| | | import com.jilongda.manage.service.TMaterialService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jilongda.manage.vo.TMaterialVO; |
| | | import com.jilongda.manage.vo.TSupplierVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TMaterialServiceImpl extends ServiceImpl<TMaterialMapper, TMaterial> implements TMaterialService { |
| | | |
| | | @Override |
| | | public Boolean isExit(Integer id, String name) { |
| | | if(Objects.nonNull(id)){ |
| | | return this.lambdaQuery().ne(TMaterial::getId, id).eq(TMaterial::getName, name).count() > 0; |
| | | }else { |
| | | // 如果是新增,则判断名称是否存在 |
| | | return count(new LambdaQueryChainWrapper<>(getBaseMapper()).eq(TMaterial::getName, name)) > 0; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public Boolean upAndDown(Long id, Integer status) { |
| | | TMaterial material = this.baseMapper.selectById(id); |
| | | material.setStatus(status); |
| | | return this.updateById(material); |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<TMaterialVO> pageList(TMaterialQuery query) { |
| | | PageInfo<TMaterialVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TMaterialVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |
| | |
| | | package com.jilongda.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.mapper.TBrandMapper; |
| | | import com.jilongda.manage.mapper.TSupplierMapper; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import com.jilongda.manage.model.TModel; |
| | | import com.jilongda.manage.mapper.TModelMapper; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import com.jilongda.manage.query.TModelQuery; |
| | | import com.jilongda.manage.service.TModelService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jilongda.manage.vo.TBrandVO; |
| | | import com.jilongda.manage.vo.TModelVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TModelServiceImpl extends ServiceImpl<TModelMapper, TModel> implements TModelService { |
| | | |
| | | @Autowired |
| | | private TBrandMapper brandMapper; |
| | | @Autowired |
| | | private TSupplierMapper supplierMapper; |
| | | |
| | | @Override |
| | | public Boolean upAndDown(String name, Integer status) { |
| | | List<TModel> models = this.baseMapper.selectList(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getName,name)); |
| | | models.stream().filter(Objects::nonNull).forEach(model -> model.setStatus(status)); |
| | | return this.updateBatchById(models); |
| | | } |
| | | |
| | | @Override |
| | | public Boolean upAndDownColor(String name, String color, Integer status) { |
| | | TModel model = this.baseMapper.selectOne(Wrappers.lambdaQuery(TModel.class) |
| | | .eq(TModel::getName,name) |
| | | .eq(TModel::getColor,color) |
| | | .last("LIMIT1 ")); |
| | | if (Objects.nonNull(model)){ |
| | | model.setStatus(status); |
| | | return this.updateById(model); |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<TModelVO> pageList(TModelQuery query) { |
| | | PageInfo<TModelVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TModelVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | List<Integer> brandIds = list.stream().map(TModel::getBrandId).collect(Collectors.toList()); |
| | | List<Integer> supplierIds= list.stream().map(TModel::getSupplierId).collect(Collectors.toList()); |
| | | List<TBrand> tBrands = brandMapper.selectList(Wrappers.lambdaQuery(TBrand.class) |
| | | .in(TBrand::getId, brandIds)); |
| | | List<TSupplier> tSuppliers = supplierMapper.selectList(Wrappers.lambdaQuery(TSupplier.class) |
| | | .in(TSupplier::getId, supplierIds)); |
| | | for (TModelVO modelVO : list) { |
| | | TBrand tBrand = tBrands.stream().filter(brand -> brand.getId().equals(modelVO.getBrandId())).findFirst().orElse(null); |
| | | if(Objects.nonNull(tBrand)){ |
| | | modelVO.setBrandName(tBrand.getName()); |
| | | } |
| | | TSupplier tSupplier = tSuppliers.stream().filter(supplier -> supplier.getId().equals(modelVO.getSupplierId())).findFirst().orElse(null); |
| | | if(Objects.nonNull(tSupplier)){ |
| | | modelVO.setSupplierName(tSupplier.getName()); |
| | | } |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |
| | |
| | | package com.jilongda.manage.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.jilongda.common.basic.PageInfo; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import com.jilongda.manage.model.TMaterial; |
| | | import com.jilongda.manage.model.TModel; |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import com.jilongda.manage.mapper.TSupplierMapper; |
| | | import com.jilongda.manage.query.TSupplierQuery; |
| | | import com.jilongda.manage.service.TSupplierService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.jilongda.manage.vo.TModelVO; |
| | | import com.jilongda.manage.vo.TSupplierVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class TSupplierServiceImpl extends ServiceImpl<TSupplierMapper, TSupplier> implements TSupplierService { |
| | | |
| | | @Override |
| | | public PageInfo<TSupplierVO> pageList(TSupplierQuery query) { |
| | | PageInfo<TSupplierVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TSupplierVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | |
| | | @Override |
| | | public Boolean isExit(Integer id, String name) { |
| | | if(Objects.nonNull(id)){ |
| | | return this.lambdaQuery().ne(TSupplier::getId, id).eq(TSupplier::getName, name).count() > 0; |
| | | }else { |
| | | // 如果是新增,则判断名称是否存在 |
| | | return count(new LambdaQueryChainWrapper<>(getBaseMapper()).eq(TSupplier::getName, name)) > 0; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public Boolean upAndDown(Long id, Integer status) { |
| | | TSupplier supplier = this.baseMapper.selectById(id); |
| | | supplier.setStatus(status); |
| | | return this.updateById(supplier); |
| | | } |
| | | |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.vo; |
| | | |
| | | import com.jilongda.common.pojo.BasePage; |
| | | import com.jilongda.manage.model.TBrand; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "镜架/镜片品牌VO") |
| | | public class TBrandVO extends TBrand { |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.vo; |
| | | |
| | | import com.jilongda.manage.model.TMaterial; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "材质VO") |
| | | public class TMaterialVO extends TMaterial { |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.vo; |
| | | |
| | | import com.jilongda.manage.model.TModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | @ApiModel(value = "镜架型号VO") |
| | | public class TModelVO extends TModel { |
| | | |
| | | @ApiModelProperty(value = "色号集合") |
| | | private List<String> colorList; |
| | | @ApiModelProperty(value = "品牌名称") |
| | | private String brandName; |
| | | @ApiModelProperty(value = "供应商") |
| | | private String supplierName; |
| | | } |
New file |
| | |
| | | package com.jilongda.manage.vo; |
| | | |
| | | import com.jilongda.manage.model.TSupplier; |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "供应商VO") |
| | | public class TSupplierVO extends TSupplier { |
| | | |
| | | |
| | | } |
| | |
| | | <result column="gender" property="gender"/> |
| | | <result column="deptId" property="deptId"/> |
| | | <result column="userType" property="userType"/> |
| | | <result column="storeId" property="storeId"/> |
| | | <result column="provinceCode" property="provinceCode"/> |
| | | <result column="cityCode" property="cityCode"/> |
| | | <result column="areaCode" property="areaCode"/> |
| | |
| | | isDelete, |
| | | id, account, description, password, phone, `state`, last_login_time AS lastLoginTime, |
| | | nick_name AS nickName, avatar_url AS avatarUrl, province, city, area, address, birthday, gender,deptId,userType, |
| | | provinceCode, cityCode, areaCode |
| | | provinceCode, cityCode, areaCode,storeId |
| | | </sql> |
| | | |
| | | <sql id="Base_Column_List_Other"> |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, name, type, status, createTime, updateTime, createBy, updateBy, isDelete, isMain |
| | | id, `name`, `type`, status, createTime, updateTime, createBy, updateBy, isDelete, isMain |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TBrandVO"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from t_brand |
| | | where isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | ORDER BY createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, name, status, createTime, updateTime, createBy, updateBy, isDelete |
| | | id, `name`, status, createTime, updateTime, createBy, updateBy, isDelete |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TMaterialVO"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from t_material |
| | | where isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | order by createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result column="createBy" property="createBy" /> |
| | | <result column="updateBy" property="updateBy" /> |
| | | <result column="isDelete" property="isDelete" /> |
| | | <result column="inventory" property="inventory" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, brandId, supplierId, materialId, color, sale, cost, name, status, createTime, updateTime, createBy, updateBy, isDelete |
| | | id, brandId, supplierId, materialId, color, sale, cost, `name`, status, createTime, updateTime, createBy, updateBy, isDelete,inventory |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TModelVO"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from t_model |
| | | <where> |
| | | <if test="query.name != null and query.name != ''"> |
| | | and `name` like concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.brandId != null"> |
| | | and brandId = #{query.brandId} |
| | | </if> |
| | | <if test="query.supplierId != null"> |
| | | and supplierId = #{query.supplierId} |
| | | </if> |
| | | AND isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | GROUP BY `name` |
| | | ORDER BY createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, name, status, createTime, updateTime, createBy, updateBy, isDelete |
| | | id, `name`, status, createTime, updateTime, createBy, updateBy, isDelete |
| | | </sql> |
| | | <select id="pageList" resultType="com.jilongda.manage.vo.TSupplierVO"> |
| | | select <include refid="Base_Column_List"></include> |
| | | from t_supplier |
| | | <where> |
| | | <if test="query.name != null and query.name != ''"> |
| | | and `name` like concat('%',#{query.name},'%') |
| | | </if> |
| | | AND isDelete = ${@com.jilongda.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY createTime DESC |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| | | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| | | <parent> |
| | | <artifactId>sales</artifactId> |
| | | <artifactId>eyes</artifactId> |
| | | <groupId>com</groupId> |
| | | <version>0.0.1-SNAPSHOT</version> |
| | | </parent> |
| | |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <finalName>applet</finalName> |
| | | <finalName>optometry</finalName> |
| | | |
| | | <plugins> |
| | | <plugin> |
| | |
| | | <artifactId>lombok</artifactId> |
| | | </exclude> |
| | | </excludes> |
| | | <mainClass>com.jilongda.applet.AppletApplication</mainClass> |
| | | <mainClass>com.jilongda.optometry.AppletApplication</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | |
| | |
| | | <relativePath/> <!-- lookup parent from repository --> |
| | | </parent> |
| | | <groupId>com</groupId> |
| | | <artifactId>sales</artifactId> |
| | | <artifactId>eyes</artifactId> |
| | | <version>0.0.1-SNAPSHOT</version> |
| | | <name>sales</name> |
| | | <description>sales</description> |
| | | <name>eyes</name> |
| | | <description>eyes</description> |
| | | <properties> |
| | | <java.version>1.8</java.version> |
| | | <spring.boot.version>2.7.0</spring.boot.version> |
| | |
| | | |
| | | |
| | | </dependencies> |
| | | |
| | | <!--<build> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <version>${spring.boot.version}</version> |
| | | <configuration> |
| | | <excludes> |
| | | <exclude> |
| | | <groupId>org.projectlombok</groupId> |
| | | <artifactId>lombok</artifactId> |
| | | </exclude> |
| | | </excludes> |
| | | <mainClass>com.sales.applet.AppletApplication</mainClass> |
| | | <mainClass>com.jilongda.manage.ManageApplication</mainClass> |
| | | </configuration> |
| | | </plugin> |
| | | |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-compiler-plugin</artifactId> |
| | | <version>3.8.0</version> |
| | | <configuration> |
| | | <source>1.8</source> |
| | | <target>1.8</target> |
| | | <encoding>UTF-8</encoding> |
| | | <optimize>true</optimize> |
| | | <useIncrementalCompilation>false</useIncrementalCompilation> |
| | | <!– 去除泛型编译告警 –> |
| | | <compilerArgument>-Xlint:unchecked</compilerArgument> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | </build>--> |
| | | |
| | | </project> |