
24 changed files with 1658 additions and 1 deletions
@ -0,0 +1,80 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventory.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventory <br/> |
|||
* Description: 合格证盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证盘点记录", description = "合格证盘点记录") |
|||
@TableName("scm_cert_inventory") |
|||
public class ScmCertInventory extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("最新盘库日期") |
|||
private String inventoryDate; // 最新盘库日期
|
|||
@ApiModelProperty("最新盘库人员sid") |
|||
private String inventorySid; // 最新盘库人员sid
|
|||
@ApiModelProperty("最新盘库人员姓名") |
|||
private String inventoryName; // 最新盘库人员姓名
|
|||
@ApiModelProperty("盘库状态 1通过/2未通过") |
|||
private String inventoryState; // 盘库状态 1通过/2未通过
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,81 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo <br/> |
|||
* Description: 合格证盘点记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证盘点记录 视图数据详情", description = "合格证盘点记录 视图数据详情") |
|||
public class ScmCertInventoryDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("最新盘库日期") |
|||
private String inventoryDate; // 最新盘库日期
|
|||
@ApiModelProperty("最新盘库人员sid") |
|||
private String inventorySid; // 最新盘库人员sid
|
|||
@ApiModelProperty("最新盘库人员姓名") |
|||
private String inventoryName; // 最新盘库人员姓名
|
|||
@ApiModelProperty("盘库状态 1通过/2未通过") |
|||
private String inventoryState; // 盘库状态 1通过/2未通过
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,81 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryDto.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryDto <br/> |
|||
* Description: 合格证盘点记录 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证盘点记录 数据传输对象", description = "合格证盘点记录 数据传输对象") |
|||
public class ScmCertInventoryDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("最新盘库日期") |
|||
private String inventoryDate; // 最新盘库日期
|
|||
@ApiModelProperty("最新盘库人员sid") |
|||
private String inventorySid; // 最新盘库人员sid
|
|||
@ApiModelProperty("最新盘库人员姓名") |
|||
private String inventoryName; // 最新盘库人员姓名
|
|||
@ApiModelProperty("盘库状态 1通过/2未通过") |
|||
private String inventoryState; // 盘库状态 1通过/2未通过
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryFeign.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryFeign <br/> |
|||
* Description: 合格证盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "合格证盘点记录") |
|||
@FeignClient( |
|||
contextId = "anrui_scm-ScmCertInventory", |
|||
name = "anrui_scm", |
|||
path = "v1/scmcertinventory", |
|||
fallback = ScmCertInventoryFeignFallback.class) |
|||
public interface ScmCertInventoryFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<ScmCertInventoryVo>> listPage(@RequestBody PagerQuery<ScmCertInventoryQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody ScmCertInventoryDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<ScmCertInventoryDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryFeignFallback <br/> |
|||
* Description: 合格证盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class ScmCertInventoryFeignFallback implements ScmCertInventoryFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<ScmCertInventoryVo>> listPage(PagerQuery<ScmCertInventoryQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_scm/scmcertinventory/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(ScmCertInventoryDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_scm/scmcertinventory/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_scm/scmcertinventory/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<ScmCertInventoryDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_scm/scmcertinventory/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,66 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryQuery.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryQuery <br/> |
|||
* Description: 合格证盘点记录 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证盘点记录 查询条件", description = "合格证盘点记录 查询条件") |
|||
public class ScmCertInventoryQuery implements Query { |
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("最新盘库开始日期") |
|||
private String inventoryStartDate; // 最新盘库开始日期
|
|||
@ApiModelProperty("最新盘库结束日期") |
|||
private String inventoryEndDate; // 最新盘库结束日期
|
|||
@ApiModelProperty("盘库状态 1通过/2未通过") |
|||
private String inventoryState; // 盘库状态 1通过/2未通过
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
} |
@ -0,0 +1,74 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo <br/> |
|||
* Description: 合格证盘点记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证盘点记录 视图数据对象", description = "合格证盘点记录 视图数据对象") |
|||
public class ScmCertInventoryVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("备注") |
|||
private String remarks; // 备注
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("最新盘库日期") |
|||
private String inventoryDate; // 最新盘库日期
|
|||
@ApiModelProperty("最新盘库人员sid") |
|||
private String inventorySid; // 最新盘库人员sid
|
|||
@ApiModelProperty("最新盘库人员姓名") |
|||
private String inventoryName; // 最新盘库人员姓名
|
|||
@ApiModelProperty("盘库状态 1通过/2未通过") |
|||
private String inventoryState; // 盘库状态 1通过/2未通过
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import com.yxt.common.core.domain.BaseEntity; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventory.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventory <br/> |
|||
* Description: 合格证待盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证待盘点记录", description = "合格证待盘点记录") |
|||
@TableName("scm_cert_stay_inventory") |
|||
public class ScmCertStayInventory extends BaseEntity { |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("上次盘库日期") |
|||
private String inventoryDate; // 上次盘库日期
|
|||
@ApiModelProperty("上次盘库人员sid") |
|||
private String inventorySid; // 上次盘库人员sid
|
|||
@ApiModelProperty("上次盘库人员姓名") |
|||
private String inventoryName; // 上次盘库人员姓名
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo <br/> |
|||
* Description: 合格证待盘点记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证待盘点记录 视图数据详情", description = "合格证待盘点记录 视图数据详情") |
|||
public class ScmCertStayInventoryDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("上次盘库日期") |
|||
private String inventoryDate; // 上次盘库日期
|
|||
@ApiModelProperty("上次盘库人员sid") |
|||
private String inventorySid; // 上次盘库人员sid
|
|||
@ApiModelProperty("上次盘库人员姓名") |
|||
private String inventoryName; // 上次盘库人员姓名
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryDto.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryDto <br/> |
|||
* Description: 合格证待盘点记录 数据传输对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证待盘点记录 数据传输对象", description = "合格证待盘点记录 数据传输对象") |
|||
public class ScmCertStayInventoryDto implements Dto { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("上次盘库日期") |
|||
private String inventoryDate; // 上次盘库日期
|
|||
@ApiModelProperty("上次盘库人员sid") |
|||
private String inventorySid; // 上次盘库人员sid
|
|||
@ApiModelProperty("上次盘库人员姓名") |
|||
private String inventoryName; // 上次盘库人员姓名
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryFeign.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryFeign <br/> |
|||
* Description: 合格证待盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "合格证待盘点记录") |
|||
@FeignClient( |
|||
contextId = "anrui_scm-ScmCertStayInventory", |
|||
name = "anrui_scm", |
|||
path = "v1/scmcertstayinventory", |
|||
fallback = ScmCertStayInventoryFeignFallback.class) |
|||
public interface ScmCertStayInventoryFeign { |
|||
|
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
@ResponseBody |
|||
public ResultBean<PagerVo<ScmCertStayInventoryVo>> listPage(@RequestBody PagerQuery<ScmCertStayInventoryQuery> pq); |
|||
|
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
@ResponseBody |
|||
public ResultBean save(@RequestBody ScmCertStayInventoryDto dto); |
|||
|
|||
@ApiOperation("根据sid删除记录") |
|||
@DeleteMapping("/delBySids") |
|||
@ResponseBody |
|||
public ResultBean delBySids(@RequestBody String[] sids); |
|||
|
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<ScmCertStayInventoryDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryFeignFallback <br/> |
|||
* Description: 合格证待盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Component |
|||
public class ScmCertStayInventoryFeignFallback implements ScmCertStayInventoryFeign { |
|||
|
|||
@Override |
|||
public ResultBean<PagerVo<ScmCertStayInventoryVo>> listPage(PagerQuery<ScmCertStayInventoryQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_scm/scmcertstayinventory/listPage无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean save(ScmCertStayInventoryDto dto){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_scm/scmcertstayinventory/save无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delBySids( String[] sids){ |
|||
return ResultBean.fireFail().setMsg("接口anrui_scm/scmcertstayinventory/delBySids无法访问"); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<ScmCertStayInventoryDetailsVo> fetchDetailsBySid(String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
return rb.setMsg("接口anrui_scm/scmcertstayinventory/fetchDetailsBySid无法访问"); |
|||
} |
|||
} |
@ -0,0 +1,77 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryQuery.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryQuery <br/> |
|||
* Description: 合格证待盘点记录 查询条件. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证待盘点记录 查询条件", description = "合格证待盘点记录 查询条件") |
|||
public class ScmCertStayInventoryQuery implements Query { |
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("上次盘库日期") |
|||
private String inventoryDate; // 上次盘库日期
|
|||
@ApiModelProperty("上次盘库人员sid") |
|||
private String inventorySid; // 上次盘库人员sid
|
|||
@ApiModelProperty("上次盘库人员姓名") |
|||
private String inventoryName; // 上次盘库人员姓名
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,79 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.api.scmcertstayinventory; |
|||
|
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryVo.java <br/> |
|||
* Class: com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo <br/> |
|||
* Description: 合格证待盘点记录 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "合格证待盘点记录 视图数据对象", description = "合格证待盘点记录 视图数据对象") |
|||
public class ScmCertStayInventoryVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("合格证编号") |
|||
private String certNo; // 合格证编号
|
|||
@ApiModelProperty("车辆sid") |
|||
private String vehSid; // 车辆sid
|
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; // 车架号
|
|||
@ApiModelProperty("存放地点sid") |
|||
private String locationSid; // 存放地点sid
|
|||
@ApiModelProperty("存放地点") |
|||
private String location; // 存放地点
|
|||
@ApiModelProperty("上次盘库日期") |
|||
private String inventoryDate; // 上次盘库日期
|
|||
@ApiModelProperty("上次盘库人员sid") |
|||
private String inventorySid; // 上次盘库人员sid
|
|||
@ApiModelProperty("上次盘库人员姓名") |
|||
private String inventoryName; // 上次盘库人员姓名
|
|||
@ApiModelProperty("创建组织sid") |
|||
private String createOrgSid; // 创建组织sid
|
|||
@ApiModelProperty("创建组织名称") |
|||
private String createOrgName; // 创建组织名称
|
|||
@ApiModelProperty("使用组织sid") |
|||
private String useOrgSid; // 使用组织sid
|
|||
@ApiModelProperty("使用组织名称") |
|||
private String useOrgName; // 使用组织名称
|
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmcertinventory; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventory; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryMapper.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmcertinventory.ScmCertInventoryMapper <br/> |
|||
* Description: 合格证盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface ScmCertInventoryMapper extends BaseMapper<ScmCertInventory> { |
|||
|
|||
//@Update("update scm_cert_inventory set name=#{msg} where id=#{id}")
|
|||
//IPage<ScmCertInventoryVo> voPage(IPage<ScmCertInventory> page, @Param(Constants.WRAPPER) QueryWrapper<ScmCertInventory> qw);
|
|||
|
|||
IPage<ScmCertInventoryVo> selectPageVo(IPage<ScmCertInventory> page, @Param(Constants.WRAPPER) Wrapper<ScmCertInventory> qw); |
|||
|
|||
List<ScmCertInventoryVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<ScmCertInventory> qw); |
|||
|
|||
@Select("select * from scm_cert_inventory") |
|||
List<ScmCertInventoryVo> selectListVo(); |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.anrui.scm.biz.scmcertinventory.ScmCertInventoryMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo"> |
|||
SELECT * FROM scm_cert_inventory <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo"> |
|||
SELECT * FROM scm_cert_inventory <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,98 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmcertinventory; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryQuery; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryDto; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryFeign; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmcertinventory.ScmCertInventoryRest <br/> |
|||
* Description: 合格证盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "合格证盘点记录") |
|||
@RestController("com.yxt.anrui.scm.biz.scmcertinventory.ScmCertInventoryRest") |
|||
@RequestMapping("v1/scmcertinventory") |
|||
public class ScmCertInventoryRest implements ScmCertInventoryFeign { |
|||
|
|||
@Autowired |
|||
private ScmCertInventoryService scmCertInventoryService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<ScmCertInventoryVo>> listPage(@RequestBody PagerQuery<ScmCertInventoryQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<ScmCertInventoryVo> pv = scmCertInventoryService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody ScmCertInventoryDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
scmCertInventoryService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
scmCertInventoryService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<ScmCertInventoryDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
ScmCertInventoryDetailsVo vo = scmCertInventoryService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,124 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmcertinventory; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventory; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryQuery; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryVo; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmcertinventory.ScmCertInventoryDto; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertInventoryService.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmcertinventory.ScmCertInventoryService <br/> |
|||
* Description: 合格证盘点记录 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class ScmCertInventoryService extends MybatisBaseService<ScmCertInventoryMapper, ScmCertInventory> { |
|||
private QueryWrapper<ScmCertInventory> createQueryWrapper(ScmCertInventoryQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<ScmCertInventory> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<ScmCertInventoryVo> listPageVo(PagerQuery<ScmCertInventoryQuery> pq) { |
|||
ScmCertInventoryQuery query = pq.getParams(); |
|||
QueryWrapper<ScmCertInventory> qw = new QueryWrapper<>(); |
|||
String inventoryStartDate = query.getInventoryStartDate(); |
|||
String inventoryEndDate = query.getInventoryEndDate(); |
|||
qw.apply(StringUtils.isNotEmpty(inventoryStartDate), "date_format (inventoryDate,'%Y-%m-%d') >= date_format('" + inventoryStartDate + "','%Y-%m-%d')"). |
|||
apply(StringUtils.isNotEmpty(inventoryEndDate), "date_format (inventoryDate,'%Y-%m-%d') <= date_format('" + inventoryEndDate + "','%Y-%m-%d')" |
|||
); |
|||
qw.eq("createOrgSid",query.getCreateOrgSid()); |
|||
if (StringUtils.isNotBlank(query.getCertNo())){ |
|||
qw.like("certNo",query.getCertNo()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getVinNo())){ |
|||
qw.like("vinNo",query.getVinNo()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getLocationSid())){ |
|||
qw.eq("locationSid",query.getLocationSid()); |
|||
} |
|||
if (StringUtils.isNotBlank(query.getInventoryState())){ |
|||
qw.eq("inventoryState",query.getInventoryState()); |
|||
} |
|||
IPage<ScmCertInventory> page = PagerUtil.queryToPage(pq); |
|||
IPage<ScmCertInventoryVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<ScmCertInventoryVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(ScmCertInventoryDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(ScmCertInventoryDto dto){ |
|||
ScmCertInventory entity = new ScmCertInventory(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(ScmCertInventoryDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
ScmCertInventory entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public ScmCertInventoryDetailsVo fetchDetailsVoBySid(String sid){ |
|||
ScmCertInventory entity = fetchBySid(sid); |
|||
ScmCertInventoryDetailsVo vo = new ScmCertInventoryDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
@ -0,0 +1,65 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmcertstayinventory; |
|||
|
|||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.baomidou.mybatisplus.core.toolkit.Constants; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.apache.ibatis.annotations.Select; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventory; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryMapper.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmcertstayinventory.ScmCertStayInventoryMapper <br/> |
|||
* Description: 合格证待盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Mapper |
|||
public interface ScmCertStayInventoryMapper extends BaseMapper<ScmCertStayInventory> { |
|||
|
|||
//@Update("update scm_cert_stay_inventory set name=#{msg} where id=#{id}")
|
|||
//IPage<ScmCertStayInventoryVo> voPage(IPage<ScmCertStayInventory> page, @Param(Constants.WRAPPER) QueryWrapper<ScmCertStayInventory> qw);
|
|||
|
|||
IPage<ScmCertStayInventoryVo> selectPageVo(IPage<ScmCertStayInventory> page, @Param(Constants.WRAPPER) Wrapper<ScmCertStayInventory> qw); |
|||
|
|||
List<ScmCertStayInventoryVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<ScmCertStayInventory> qw); |
|||
|
|||
@Select("select * from scm_cert_stay_inventory") |
|||
List<ScmCertStayInventoryVo> selectListVo(); |
|||
} |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.yxt.anrui.scm.biz.scmcertstayinventory.ScmCertStayInventoryMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo"> |
|||
SELECT * FROM scm_cert_stay_inventory <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo"> |
|||
SELECT * FROM scm_cert_stay_inventory <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,98 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmcertstayinventory; |
|||
|
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryQuery; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryDto; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryFeign; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryFeignFallback.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmcertstayinventory.ScmCertStayInventoryRest <br/> |
|||
* Description: 合格证待盘点记录. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Api(tags = "合格证待盘点记录") |
|||
@RestController("com.yxt.anrui.scm.biz.scmcertstayinventory.ScmCertStayInventoryRest") |
|||
@RequestMapping("v1/scmcertstayinventory") |
|||
public class ScmCertStayInventoryRest implements ScmCertStayInventoryFeign { |
|||
|
|||
@Autowired |
|||
private ScmCertStayInventoryService scmCertStayInventoryService; |
|||
|
|||
@Override |
|||
@ApiOperation("根据条件分页查询数据的列表") |
|||
@PostMapping("/listPage") |
|||
public ResultBean<PagerVo<ScmCertStayInventoryVo>> listPage(@RequestBody PagerQuery<ScmCertStayInventoryQuery> pq){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
PagerVo<ScmCertStayInventoryVo> pv = scmCertStayInventoryService.listPageVo(pq); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("新增或修改") |
|||
@PostMapping("/save") |
|||
public ResultBean save(@RequestBody ScmCertStayInventoryDto dto){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
scmCertStayInventoryService.saveOrUpdateDto(dto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据sid批量删除") |
|||
@PostMapping("/delBySids") |
|||
public ResultBean delBySids(@RequestBody String[] sids){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
scmCertStayInventoryService.delBySids(sids); |
|||
return rb.success(); |
|||
} |
|||
|
|||
@Override |
|||
@ApiOperation("根据SID获取一条记录") |
|||
@GetMapping("/fetchDetailsBySid/{sid}") |
|||
public ResultBean<ScmCertStayInventoryDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
ScmCertStayInventoryDetailsVo vo = scmCertStayInventoryService.fetchDetailsVoBySid(sid); |
|||
return rb.success().setData(vo); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.scm.biz.scmcertstayinventory; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.common.base.utils.PagerUtil; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventory; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryQuery; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryVo; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryDetailsVo; |
|||
import com.yxt.anrui.scm.api.scmcertstayinventory.ScmCertStayInventoryDto; |
|||
|
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* Project: anrui_scm(合格证盘点记录、待盘点记录) <br/> |
|||
* File: ScmCertStayInventoryService.java <br/> |
|||
* Class: com.yxt.anrui.scm.biz.scmcertstayinventory.ScmCertStayInventoryService <br/> |
|||
* Description: 合格证待盘点记录 业务逻辑. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2022-08-11 15:46:01 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Service |
|||
public class ScmCertStayInventoryService extends MybatisBaseService<ScmCertStayInventoryMapper, ScmCertStayInventory> { |
|||
private QueryWrapper<ScmCertStayInventory> createQueryWrapper(ScmCertStayInventoryQuery query) { |
|||
// todo: 这里根据具体业务调整查询条件
|
|||
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
|||
QueryWrapper<ScmCertStayInventory> qw = new QueryWrapper<>(); |
|||
return qw; |
|||
} |
|||
|
|||
public PagerVo<ScmCertStayInventoryVo> listPageVo(PagerQuery<ScmCertStayInventoryQuery> pq) { |
|||
ScmCertStayInventoryQuery query = pq.getParams(); |
|||
QueryWrapper<ScmCertStayInventory> qw = createQueryWrapper(query); |
|||
IPage<ScmCertStayInventory> page = PagerUtil.queryToPage(pq); |
|||
IPage<ScmCertStayInventoryVo> pagging = baseMapper.selectPageVo(page, qw); |
|||
PagerVo<ScmCertStayInventoryVo> p = PagerUtil.pageToVo(pagging, null); |
|||
return p; |
|||
} |
|||
|
|||
public void saveOrUpdateDto(ScmCertStayInventoryDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
this.insertByDto(dto); |
|||
return; |
|||
} |
|||
this.updateByDto(dto); |
|||
} |
|||
|
|||
public void insertByDto(ScmCertStayInventoryDto dto){ |
|||
ScmCertStayInventory entity = new ScmCertStayInventory(); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.insert(entity); |
|||
} |
|||
|
|||
public void updateByDto(ScmCertStayInventoryDto dto){ |
|||
String dtoSid = dto.getSid(); |
|||
if (StringUtils.isBlank(dtoSid)) { |
|||
return; |
|||
} |
|||
ScmCertStayInventory entity = fetchBySid(dtoSid); |
|||
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|||
baseMapper.updateById(entity); |
|||
} |
|||
|
|||
public ScmCertStayInventoryDetailsVo fetchDetailsVoBySid(String sid){ |
|||
ScmCertStayInventory entity = fetchBySid(sid); |
|||
ScmCertStayInventoryDetailsVo vo = new ScmCertStayInventoryDetailsVo(); |
|||
BeanUtil.copyProperties(entity, vo); |
|||
return vo; |
|||
} |
|||
} |
Loading…
Reference in new issue