47 changed files with 2250 additions and 1 deletions
@ -0,0 +1,102 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterSubmit; |
|||
import com.qs.serve.modules.pms.service.PmsCounterSubmitService; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 计时报工单 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/counterSubmit") |
|||
public class PmsCounterSubmitController { |
|||
|
|||
private PmsCounterSubmitService pmsCounterSubmitService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:counterSubmit:query')") |
|||
public R<PageVo<PmsCounterSubmit>> getPage(PmsCounterSubmit param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsCounterSubmit> counterSubmitWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsCounterSubmit> list = pmsCounterSubmitService.list(counterSubmitWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时报工单", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:counterSubmit:query')") |
|||
public R<PmsCounterSubmit> getById(@PathVariable("id") String id){ |
|||
PmsCounterSubmit pmsCounterSubmit = pmsCounterSubmitService.getById(id); |
|||
return R.ok(pmsCounterSubmit); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时报工单", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:counterSubmit:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsCounterSubmit param){ |
|||
boolean result = pmsCounterSubmitService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增计时报工单 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时报工单", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:counterSubmit:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsCounterSubmit param){ |
|||
boolean result = pmsCounterSubmitService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除计时报工单 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时报工单", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:counterSubmit:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsCounterSubmitService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsCounterType; |
|||
import com.qs.serve.modules.pms.service.PmsCounterTypeService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 计时类型 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/counterType") |
|||
public class PmsCounterTypeController { |
|||
|
|||
private PmsCounterTypeService pmsCounterTypeService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:counterType:query')") |
|||
public R<PageVo<PmsCounterType>> getPage(PmsCounterType param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsCounterType> counterTypeWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsCounterType> list = pmsCounterTypeService.list(counterTypeWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时类型", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:counterType:query')") |
|||
public R<PmsCounterType> getById(@PathVariable("id") String id){ |
|||
PmsCounterType pmsCounterType = pmsCounterTypeService.getById(id); |
|||
return R.ok(pmsCounterType); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时类型", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:counterType:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsCounterType param){ |
|||
boolean result = pmsCounterTypeService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增计时类型 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时类型", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:counterType:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsCounterType param){ |
|||
boolean result = pmsCounterTypeService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除计时类型 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "计时类型", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:counterType:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsCounterTypeService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsOrder; |
|||
import com.qs.serve.modules.pms.service.PmsOrderService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 生产订单 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/order") |
|||
public class PmsOrderController { |
|||
|
|||
private PmsOrderService pmsOrderService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:order:query')") |
|||
public R<PageVo<PmsOrder>> getPage(PmsOrder param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsOrder> orderWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsOrder> list = pmsOrderService.list(orderWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "生产订单", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:order:query')") |
|||
public R<PmsOrder> getById(@PathVariable("id") String id){ |
|||
PmsOrder pmsOrder = pmsOrderService.getById(id); |
|||
return R.ok(pmsOrder); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "生产订单", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:order:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsOrder param){ |
|||
boolean result = pmsOrderService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增生产订单 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "生产订单", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:order:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsOrder param){ |
|||
boolean result = pmsOrderService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除生产订单 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "生产订单", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:order:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsOrderService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsOrderProcess; |
|||
import com.qs.serve.modules.pms.service.PmsOrderProcessService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 订单工序 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/orderProcess") |
|||
public class PmsOrderProcessController { |
|||
|
|||
private PmsOrderProcessService pmsOrderProcessService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:orderProcess:query')") |
|||
public R<PageVo<PmsOrderProcess>> getPage(PmsOrderProcess param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsOrderProcess> orderProcessWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsOrderProcess> list = pmsOrderProcessService.list(orderProcessWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单工序", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:orderProcess:query')") |
|||
public R<PmsOrderProcess> getById(@PathVariable("id") String id){ |
|||
PmsOrderProcess pmsOrderProcess = pmsOrderProcessService.getById(id); |
|||
return R.ok(pmsOrderProcess); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单工序", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:orderProcess:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsOrderProcess param){ |
|||
boolean result = pmsOrderProcessService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增订单工序 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单工序", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:orderProcess:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsOrderProcess param){ |
|||
boolean result = pmsOrderProcessService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除订单工序 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单工序", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:orderProcess:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsOrderProcessService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsOrderProduct; |
|||
import com.qs.serve.modules.pms.service.PmsOrderProductService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 订单产品 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/orderProduct") |
|||
public class PmsOrderProductController { |
|||
|
|||
private PmsOrderProductService pmsOrderProductService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:orderProduct:query')") |
|||
public R<PageVo<PmsOrderProduct>> getPage(PmsOrderProduct param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsOrderProduct> orderProductWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsOrderProduct> list = pmsOrderProductService.list(orderProductWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单产品", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:orderProduct:query')") |
|||
public R<PmsOrderProduct> getById(@PathVariable("id") String id){ |
|||
PmsOrderProduct pmsOrderProduct = pmsOrderProductService.getById(id); |
|||
return R.ok(pmsOrderProduct); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单产品", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:orderProduct:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsOrderProduct param){ |
|||
boolean result = pmsOrderProductService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增订单产品 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单产品", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:orderProduct:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsOrderProduct param){ |
|||
boolean result = pmsOrderProductService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除订单产品 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单产品", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:orderProduct:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsOrderProductService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsOrderSubmit; |
|||
import com.qs.serve.modules.pms.service.PmsOrderSubmitService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 订单报工单 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/orderSubmit") |
|||
public class PmsOrderSubmitController { |
|||
|
|||
private PmsOrderSubmitService pmsOrderSubmitService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:orderSubmit:query')") |
|||
public R<PageVo<PmsOrderSubmit>> getPage(PmsOrderSubmit param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsOrderSubmit> orderSubmitWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsOrderSubmit> list = pmsOrderSubmitService.list(orderSubmitWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单报工单", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:orderSubmit:query')") |
|||
public R<PmsOrderSubmit> getById(@PathVariable("id") String id){ |
|||
PmsOrderSubmit pmsOrderSubmit = pmsOrderSubmitService.getById(id); |
|||
return R.ok(pmsOrderSubmit); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单报工单", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:orderSubmit:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsOrderSubmit param){ |
|||
boolean result = pmsOrderSubmitService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增订单报工单 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单报工单", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:orderSubmit:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsOrderSubmit param){ |
|||
boolean result = pmsOrderSubmitService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除订单报工单 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "订单报工单", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:orderSubmit:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsOrderSubmitService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsProcess; |
|||
import com.qs.serve.modules.pms.service.PmsProcessService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 工序 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/process") |
|||
public class PmsProcessController { |
|||
|
|||
private PmsProcessService pmsProcessService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:process:query')") |
|||
public R<PageVo<PmsProcess>> getPage(PmsProcess param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsProcess> processWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsProcess> list = pmsProcessService.list(processWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "工序", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:process:query')") |
|||
public R<PmsProcess> getById(@PathVariable("id") String id){ |
|||
PmsProcess pmsProcess = pmsProcessService.getById(id); |
|||
return R.ok(pmsProcess); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "工序", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:process:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsProcess param){ |
|||
boolean result = pmsProcessService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增工序 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "工序", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:process:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsProcess param){ |
|||
boolean result = pmsProcessService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除工序 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "工序", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:process:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsProcessService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsProduct; |
|||
import com.qs.serve.modules.pms.service.PmsProductService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 产品 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/product") |
|||
public class PmsProductController { |
|||
|
|||
private PmsProductService pmsProductService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:product:query')") |
|||
public R<PageVo<PmsProduct>> getPage(PmsProduct param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsProduct> productWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsProduct> list = pmsProductService.list(productWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:product:query')") |
|||
public R<PmsProduct> getById(@PathVariable("id") String id){ |
|||
PmsProduct pmsProduct = pmsProductService.getById(id); |
|||
return R.ok(pmsProduct); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:product:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsProduct param){ |
|||
boolean result = pmsProductService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增产品 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:product:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsProduct param){ |
|||
boolean result = pmsProductService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除产品 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:product:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsProductService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,103 @@ |
|||
package com.qs.serve.modules.pms.controller; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|||
import com.qs.serve.common.model.annotation.SysLog; |
|||
import com.qs.serve.common.model.dto.PageVo; |
|||
import com.qs.serve.common.model.dto.R; |
|||
import com.qs.serve.common.model.enums.BizType; |
|||
import com.qs.serve.common.model.enums.SystemModule; |
|||
import com.qs.serve.common.util.PageUtil; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.qs.serve.modules.pms.entity.PmsProductProcess; |
|||
import com.qs.serve.modules.pms.service.PmsProductProcessService; |
|||
|
|||
import javax.validation.Valid; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 生产计件 产品工序 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@AllArgsConstructor |
|||
@RestController |
|||
@RequestMapping("pms/piece/productProcess") |
|||
public class PmsProductProcessController { |
|||
|
|||
private PmsProductProcessService pmsProductProcessService; |
|||
|
|||
/** |
|||
* 翻页查询 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@GetMapping("/page") |
|||
@PreAuthorize("hasRole('pms:productProcess:query')") |
|||
public R<PageVo<PmsProductProcess>> getPage(PmsProductProcess param){ |
|||
PageUtil.startPage(); |
|||
LambdaQueryWrapper<PmsProductProcess> productProcessWrapper = new LambdaQueryWrapper<>(param); |
|||
List<PmsProductProcess> list = pmsProductProcessService.list(productProcessWrapper); |
|||
return R.byPageHelperList(list); |
|||
} |
|||
|
|||
/** |
|||
* 根据ID查询 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@GetMapping("/getById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品工序", biz = BizType.QUERY) |
|||
@PreAuthorize("hasRole('pms:productProcess:query')") |
|||
public R<PmsProductProcess> getById(@PathVariable("id") String id){ |
|||
PmsProductProcess pmsProductProcess = pmsProductProcessService.getById(id); |
|||
return R.ok(pmsProductProcess); |
|||
} |
|||
|
|||
|
|||
|
|||
/** |
|||
* 根据ID更新 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/updateById") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品工序", biz = BizType.UPDATE) |
|||
@PreAuthorize("hasRole('pms:productProcess:update')") |
|||
public R<?> updateById(@RequestBody @Valid PmsProductProcess param){ |
|||
boolean result = pmsProductProcessService.updateById(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 新增产品工序 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
@PostMapping("/save") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品工序", biz = BizType.INSERT) |
|||
@PreAuthorize("hasRole('pms:productProcess:insert')") |
|||
public R<?> save(@RequestBody @Valid PmsProductProcess param){ |
|||
boolean result = pmsProductProcessService.save(param); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
/** |
|||
* 删除产品工序 |
|||
* @param id |
|||
* @return |
|||
*/ |
|||
@DeleteMapping("/deleteById/{id}") |
|||
@SysLog(module = SystemModule.PIECE, title = "产品工序", biz = BizType.DELETE) |
|||
@PreAuthorize("hasRole('pms:productProcess:delete')") |
|||
public R<?> deleteById(@PathVariable("id") String id){ |
|||
boolean result = pmsProductProcessService.removeById(id); |
|||
return R.isTrue(result); |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,125 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 计时报工单 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_counter_submit") |
|||
public class PmsCounterSubmit implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 计时类型 */ |
|||
@NotBlank(message = "计时类型不能为空") |
|||
@Length(max = 32,message = "计时类型长度不能超过32字") |
|||
private String typeId; |
|||
|
|||
/** 计时类型名称 */ |
|||
@Length(max = 32,message = "计时类型名称长度不能超过32字") |
|||
private String typeName; |
|||
|
|||
/** 订单id */ |
|||
@NotBlank(message = "订单id不能为空") |
|||
@Length(max = 32,message = "订单id长度不能超过32字") |
|||
private String orderId; |
|||
|
|||
/** 完成数量 */ |
|||
@NotNull(message = "完成数量不能为空") |
|||
private BigDecimal finishedQty; |
|||
|
|||
/** 员工id */ |
|||
@NotBlank(message = "员工id不能为空") |
|||
@Length(max = 32,message = "员工id长度不能超过32字") |
|||
private String personId; |
|||
|
|||
/** 员工名称 */ |
|||
@Length(max = 30,message = "员工名称长度不能超过30字") |
|||
private String personName; |
|||
|
|||
/** 员工编码 */ |
|||
@NotBlank(message = "员工编码不能为空") |
|||
@Length(max = 30,message = "员工编码长度不能超过30字") |
|||
private String personCode; |
|||
|
|||
/** 员工填写的备注 */ |
|||
@Length(max = 255,message = "员工填写的备注长度不能超过255字") |
|||
private String personRemark; |
|||
|
|||
/** 核对员id */ |
|||
@Length(max = 32,message = "核对员id长度不能超过32字") |
|||
private String checkerId; |
|||
|
|||
/** 核对员名称 */ |
|||
@Length(max = 30,message = "核对员名称长度不能超过30字") |
|||
private String checkerName; |
|||
|
|||
/** 核对员编码 */ |
|||
@Length(max = 30,message = "核对员编码长度不能超过30字") |
|||
private String checkerCode; |
|||
|
|||
/** 核对时间 */ |
|||
@Length(max = 0,message = "核对时间长度不能超过0字") |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
private LocalDateTime checkerTime; |
|||
|
|||
/** 和对人备注 */ |
|||
@Length(max = 255,message = "和对人备注长度不能超过255字") |
|||
private String checkerRemark; |
|||
|
|||
/** 附件地址 */ |
|||
@Length(max = 512,message = "附件地址长度不能超过512字") |
|||
private String attachs; |
|||
|
|||
/** 管理员的备注 */ |
|||
@Length(max = 255,message = "管理员的备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,77 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 计时类型 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_counter_type") |
|||
public class PmsCounterType implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 类型名称 */ |
|||
@NotBlank(message = "类型名称不能为空") |
|||
@Length(max = 30,message = "类型名称长度不能超过30字") |
|||
private String name; |
|||
|
|||
/** 类型编码 */ |
|||
@NotBlank(message = "类型编码不能为空") |
|||
@Length(max = 30,message = "类型编码长度不能超过30字") |
|||
private String code; |
|||
|
|||
/** 工量单价 */ |
|||
@NotBlank(message = "工量单价不能为空") |
|||
@Length(max = 20,message = "工量单价长度不能超过20字") |
|||
private String price; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,94 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.time.LocalDate; |
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 生产订单 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_order") |
|||
public class PmsOrder implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 产品名称 */ |
|||
@NotBlank(message = "产品名称不能为空") |
|||
@Length(max = 30,message = "产品名称长度不能超过30字") |
|||
private String name; |
|||
|
|||
/** 产品编码 */ |
|||
@NotBlank(message = "产品编码不能为空") |
|||
@Length(max = 30,message = "产品编码长度不能超过30字") |
|||
private String code; |
|||
|
|||
/** 计量单位 */ |
|||
@NotBlank(message = "计量单位不能为空") |
|||
@Length(max = 20,message = "计量单位长度不能超过20字") |
|||
private String unit; |
|||
|
|||
/** 规格型号 */ |
|||
@NotBlank(message = "规格型号不能为空") |
|||
@Length(max = 255,message = "规格型号长度不能超过255字") |
|||
private String spec; |
|||
|
|||
/** 完工日期 */ |
|||
@Length(max = 0,message = "完工日期长度不能超过0字") |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
private LocalDateTime finishedDate; |
|||
|
|||
/** 入库日期 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
private LocalDate enterWhDate; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,93 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 订单工序 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_order_process") |
|||
public class PmsOrderProcess implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 订单工序编码 */ |
|||
@Length(max = 32,message = "订单工序编码长度不能超过32字") |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String orderProcessSn; |
|||
|
|||
/** 订单id */ |
|||
@NotBlank(message = "订单id不能为空") |
|||
@Length(max = 32,message = "订单id长度不能超过32字") |
|||
private String orderId; |
|||
|
|||
/** 产品id */ |
|||
@NotBlank(message = "产品id不能为空") |
|||
@Length(max = 32,message = "产品id长度不能超过32字") |
|||
private String productId; |
|||
|
|||
/** 工序id */ |
|||
@NotBlank(message = "工序id不能为空") |
|||
@Length(max = 32,message = "工序id长度不能超过32字") |
|||
private String processId; |
|||
|
|||
/** 工序名称 */ |
|||
@NotBlank(message = "工序名称不能为空") |
|||
@Length(max = 30,message = "工序名称长度不能超过30字") |
|||
private String processName; |
|||
|
|||
/** 工序编码 */ |
|||
@NotBlank(message = "工序编码不能为空") |
|||
@Length(max = 30,message = "工序编码长度不能超过30字") |
|||
private String processCode; |
|||
|
|||
/** 工序报价 */ |
|||
@NotNull(message = "工序报价不能为空") |
|||
private BigDecimal processPrice; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,114 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDate; |
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 订单产品 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_order_product") |
|||
public class PmsOrderProduct implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 产线编码 */ |
|||
@NotBlank(message = "产线编码不能为空") |
|||
@Length(max = 32,message = "产线编码长度不能超过32字") |
|||
private String orderProductSn; |
|||
|
|||
/** 订单id */ |
|||
@NotNull(message = "订单id不能为空") |
|||
private Long orderId; |
|||
|
|||
/** 订单编码 */ |
|||
@NotBlank(message = "订单编码不能为空") |
|||
@Length(max = 30,message = "订单编码长度不能超过30字") |
|||
private String orderCode; |
|||
|
|||
/** 产品名称 */ |
|||
@NotBlank(message = "产品名称不能为空") |
|||
@Length(max = 30,message = "产品名称长度不能超过30字") |
|||
private String name; |
|||
|
|||
/** 产品编码 */ |
|||
@NotBlank(message = "产品编码不能为空") |
|||
@Length(max = 30,message = "产品编码长度不能超过30字") |
|||
private String code; |
|||
|
|||
/** 计量单位 */ |
|||
@Length(max = 20,message = "计量单位长度不能超过20字") |
|||
private String unit; |
|||
|
|||
/** 规格型号 */ |
|||
@Length(max = 255,message = "规格型号长度不能超过255字") |
|||
private String spec; |
|||
|
|||
/** 计划产量 */ |
|||
@NotNull(message = "计划产量不能为空") |
|||
private BigDecimal planQty; |
|||
|
|||
/** 计划完工日期 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
private LocalDate planFinishedDate; |
|||
|
|||
/** 实际产量/当前产量 */ |
|||
@NotNull(message = "实际产量/当前产量不能为空") |
|||
private BigDecimal qty; |
|||
|
|||
/** 完工日期 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
|||
private LocalDate finishedDate; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,155 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 订单报工单 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_order_submit") |
|||
public class PmsOrderSubmit implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 订单工序编码 */ |
|||
@NotBlank(message = "订单工序编码不能为空") |
|||
@Length(max = 32,message = "订单工序编码长度不能超过32字") |
|||
private String orderProcessSn; |
|||
|
|||
/** 订单id */ |
|||
@NotBlank(message = "订单id不能为空") |
|||
@Length(max = 32,message = "订单id长度不能超过32字") |
|||
private String orderId; |
|||
|
|||
/** 产品id */ |
|||
@NotBlank(message = "产品id不能为空") |
|||
@Length(max = 32,message = "产品id长度不能超过32字") |
|||
private String productId; |
|||
|
|||
/** 产品编码 */ |
|||
@NotBlank(message = "产品编码不能为空") |
|||
@Length(max = 30,message = "产品编码长度不能超过30字") |
|||
private String productCode; |
|||
|
|||
/** 产品名称 */ |
|||
@NotBlank(message = "产品名称不能为空") |
|||
@Length(max = 30,message = "产品名称长度不能超过30字") |
|||
private String productName; |
|||
|
|||
/** 工序id */ |
|||
@NotBlank(message = "工序id不能为空") |
|||
@Length(max = 32,message = "工序id长度不能超过32字") |
|||
private String processId; |
|||
|
|||
/** 工序名称 */ |
|||
@NotBlank(message = "工序名称不能为空") |
|||
@Length(max = 30,message = "工序名称长度不能超过30字") |
|||
private String processName; |
|||
|
|||
/** 工序编码 */ |
|||
@NotBlank(message = "工序编码不能为空") |
|||
@Length(max = 30,message = "工序编码长度不能超过30字") |
|||
private String processCode; |
|||
|
|||
/** 工序报价 */ |
|||
@NotNull(message = "工序报价不能为空") |
|||
private BigDecimal processPrice; |
|||
|
|||
/** 完成数量 */ |
|||
@NotNull(message = "完成数量不能为空") |
|||
private BigDecimal finishedQty; |
|||
|
|||
/** 损坏数量 */ |
|||
@NotNull(message = "损坏数量不能为空") |
|||
private BigDecimal damagedQty; |
|||
|
|||
/** 人为损坏数量 */ |
|||
@NotNull(message = "人为损坏数量不能为空") |
|||
private BigDecimal personDamagedQty; |
|||
|
|||
/** 员工id */ |
|||
@NotBlank(message = "员工id不能为空") |
|||
@Length(max = 32,message = "员工id长度不能超过32字") |
|||
private String personId; |
|||
|
|||
/** 员工名称 */ |
|||
@Length(max = 30,message = "员工名称长度不能超过30字") |
|||
private String personName; |
|||
|
|||
/** 员工编码 */ |
|||
@NotBlank(message = "员工编码不能为空") |
|||
@Length(max = 30,message = "员工编码长度不能超过30字") |
|||
private String personCode; |
|||
|
|||
/** 员工备注 */ |
|||
@Length(max = 255,message = "员工备注长度不能超过255字") |
|||
private String personRemark; |
|||
|
|||
/** 核对员id */ |
|||
@Length(max = 32,message = "核对员id长度不能超过32字") |
|||
private String checkerId; |
|||
|
|||
/** 核对员名称 */ |
|||
@Length(max = 30,message = "核对员名称长度不能超过30字") |
|||
private String checkerName; |
|||
|
|||
/** 核对员编码 */ |
|||
@Length(max = 30,message = "核对员编码长度不能超过30字") |
|||
private String checkerCode; |
|||
|
|||
/** 核对时间 */ |
|||
@Length(max = 0,message = "核对时间长度不能超过0字") |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
private LocalDateTime checkerTime; |
|||
|
|||
/** 管理员备注 */ |
|||
@Length(max = 255,message = "管理员备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,72 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 工序 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_process") |
|||
public class PmsProcess implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.AUTO) |
|||
private Long id; |
|||
|
|||
/** 工序名称 */ |
|||
@NotBlank(message = "工序名称不能为空") |
|||
@Length(max = 30,message = "工序名称长度不能超过30字") |
|||
private String name; |
|||
|
|||
/** 工序编码 */ |
|||
@NotBlank(message = "工序编码不能为空") |
|||
@Length(max = 30,message = "工序编码长度不能超过30字") |
|||
private String code; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,80 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 产品 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_product") |
|||
public class PmsProduct implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 产品名称 */ |
|||
@NotBlank(message = "产品名称不能为空") |
|||
@Length(max = 30,message = "产品名称长度不能超过30字") |
|||
private String name; |
|||
|
|||
/** 产品编码 */ |
|||
@NotBlank(message = "产品编码不能为空") |
|||
@Length(max = 30,message = "产品编码长度不能超过30字") |
|||
private String code; |
|||
|
|||
/** 计量单位 */ |
|||
@Length(max = 20,message = "计量单位长度不能超过20字") |
|||
private String unit; |
|||
|
|||
/** 规格型号 */ |
|||
@Length(max = 255,message = "规格型号长度不能超过255字") |
|||
private String spec; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,77 @@ |
|||
package com.qs.serve.modules.pms.entity; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import java.io.Serializable; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 产品工序 实体类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Data |
|||
@TableName("pms_product_process") |
|||
public class PmsProductProcess implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.ASSIGN_UUID) |
|||
private String id; |
|||
|
|||
/** 商品id */ |
|||
@NotBlank(message = "商品id不能为空") |
|||
@Length(max = 32,message = "商品id长度不能超过32字") |
|||
private String productId; |
|||
|
|||
/** 工序id */ |
|||
@NotBlank(message = "工序id不能为空") |
|||
@Length(max = 32,message = "工序id长度不能超过32字") |
|||
private String processId; |
|||
|
|||
/** 产品默认价格 */ |
|||
@NotNull(message = "产品默认价格不能为空") |
|||
private BigDecimal defaultPrice; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
/** 更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 删除标识 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private Boolean delFlag; |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterSubmit; |
|||
|
|||
/** |
|||
* 计时报工单 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsCounterSubmitMapper extends BaseMapper<PmsCounterSubmit> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterType; |
|||
|
|||
/** |
|||
* 计时类型 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsCounterTypeMapper extends BaseMapper<PmsCounterType> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsOrder; |
|||
|
|||
/** |
|||
* 生产订单 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderMapper extends BaseMapper<PmsOrder> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderProcess; |
|||
|
|||
/** |
|||
* 订单工序 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderProcessMapper extends BaseMapper<PmsOrderProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderProduct; |
|||
|
|||
/** |
|||
* 订单产品 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderProductMapper extends BaseMapper<PmsOrderProduct> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderSubmit; |
|||
|
|||
/** |
|||
* 订单报工单 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderSubmitMapper extends BaseMapper<PmsOrderSubmit> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsProcess; |
|||
|
|||
/** |
|||
* 工序 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProcessMapper extends BaseMapper<PmsProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsProduct; |
|||
|
|||
/** |
|||
* 产品 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProductMapper extends BaseMapper<PmsProduct> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.pms.entity.PmsProductProcess; |
|||
|
|||
/** |
|||
* 产品工序 Mapper |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProductProcessMapper extends BaseMapper<PmsProductProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterSubmit; |
|||
|
|||
/** |
|||
* 计时报工单 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsCounterSubmitService extends IService<PmsCounterSubmit> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterType; |
|||
|
|||
/** |
|||
* 计时类型 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsCounterTypeService extends IService<PmsCounterType> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderProcess; |
|||
|
|||
/** |
|||
* 订单工序 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderProcessService extends IService<PmsOrderProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderProduct; |
|||
|
|||
/** |
|||
* 订单产品 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderProductService extends IService<PmsOrderProduct> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsOrder; |
|||
|
|||
/** |
|||
* 生产订单 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderService extends IService<PmsOrder> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderSubmit; |
|||
|
|||
/** |
|||
* 订单报工单 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsOrderSubmitService extends IService<PmsOrderSubmit> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsProcess; |
|||
|
|||
/** |
|||
* 工序 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProcessService extends IService<PmsProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsProductProcess; |
|||
|
|||
/** |
|||
* 产品工序 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProductProcessService extends IService<PmsProductProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsProduct; |
|||
|
|||
/** |
|||
* 产品 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProductService extends IService<PmsProduct> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterSubmit; |
|||
import com.qs.serve.modules.pms.service.PmsCounterSubmitService; |
|||
import com.qs.serve.modules.pms.mapper.PmsCounterSubmitMapper; |
|||
|
|||
/** |
|||
* 计时报工单 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsCounterSubmitServiceImpl extends ServiceImpl<PmsCounterSubmitMapper,PmsCounterSubmit> implements PmsCounterSubmitService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsCounterType; |
|||
import com.qs.serve.modules.pms.service.PmsCounterTypeService; |
|||
import com.qs.serve.modules.pms.mapper.PmsCounterTypeMapper; |
|||
|
|||
/** |
|||
* 计时类型 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsCounterTypeServiceImpl extends ServiceImpl<PmsCounterTypeMapper,PmsCounterType> implements PmsCounterTypeService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderProcess; |
|||
import com.qs.serve.modules.pms.service.PmsOrderProcessService; |
|||
import com.qs.serve.modules.pms.mapper.PmsOrderProcessMapper; |
|||
|
|||
/** |
|||
* 订单工序 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsOrderProcessServiceImpl extends ServiceImpl<PmsOrderProcessMapper,PmsOrderProcess> implements PmsOrderProcessService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderProduct; |
|||
import com.qs.serve.modules.pms.service.PmsOrderProductService; |
|||
import com.qs.serve.modules.pms.mapper.PmsOrderProductMapper; |
|||
|
|||
/** |
|||
* 订单产品 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsOrderProductServiceImpl extends ServiceImpl<PmsOrderProductMapper,PmsOrderProduct> implements PmsOrderProductService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsOrder; |
|||
import com.qs.serve.modules.pms.service.PmsOrderService; |
|||
import com.qs.serve.modules.pms.mapper.PmsOrderMapper; |
|||
|
|||
/** |
|||
* 生产订单 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsOrderServiceImpl extends ServiceImpl<PmsOrderMapper,PmsOrder> implements PmsOrderService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsOrderSubmit; |
|||
import com.qs.serve.modules.pms.service.PmsOrderSubmitService; |
|||
import com.qs.serve.modules.pms.mapper.PmsOrderSubmitMapper; |
|||
|
|||
/** |
|||
* 订单报工单 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsOrderSubmitServiceImpl extends ServiceImpl<PmsOrderSubmitMapper,PmsOrderSubmit> implements PmsOrderSubmitService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,22 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|||
import lombok.AllArgsConstructor; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import com.qs.serve.modules.pms.entity.PmsProcess; |
|||
import com.qs.serve.modules.pms.service.PmsProcessService; |
|||
import com.qs.serve.modules.pms.mapper.PmsProcessMapper; |
|||
|
|||
/** |
|||
* 工序 服务实现类 |
|||
* @author YenHex |
|||
* @since 2022-08-05 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@AllArgsConstructor |
|||
public class PmsProcessServiceImpl extends ServiceImpl<PmsProcessMapper,PmsProcess> implements PmsProcessService { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsProductProcess; |
|||
|
|||
/** |
|||
* 产品工序 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProductProcessService extends IService<PmsProductProcess> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.pms.service.impl; |
|||
|
|||
import com.baomidou.mybatisplus.extension.service.IService; |
|||
import com.qs.serve.modules.pms.entity.PmsProduct; |
|||
|
|||
/** |
|||
* 产品 服务接口 |
|||
* @author YenHex |
|||
* @date 2022-08-05 |
|||
*/ |
|||
public interface PmsProductService extends IService<PmsProduct> { |
|||
|
|||
} |
|||
|
Loading…
Reference in new issue