
29 changed files with 806 additions and 14 deletions
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.anrui.scm.api.scmvehicleexamine; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class AppScmInspectionItemVo implements Vo { |
||||
|
|
||||
|
private static final long serialVersionUID = -5278556466193906664L; |
||||
|
@ApiModelProperty("项目sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("检查结果:1是,0否,2无结果,默认2") |
||||
|
private Integer result; |
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String item; |
||||
|
@ApiModelProperty("图标路径") |
||||
|
private String iconUrl; |
||||
|
|
||||
|
} |
@ -0,0 +1,21 @@ |
|||||
|
package com.yxt.anrui.scm.api.scmvehinspectitem; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppImgUrlDto implements Dto { |
||||
|
|
||||
|
|
||||
|
private static final long serialVersionUID = 3485266738861179994L; |
||||
|
@ApiModelProperty("照片名称") |
||||
|
private String title; |
||||
|
@ApiModelProperty("路径") |
||||
|
private String imgUrl; |
||||
|
@ApiModelProperty("照片路径") |
||||
|
private List<String> files; |
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.yxt.anrui.scm.api.scmvehinspectitem; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppImgUrlVo implements Vo { |
||||
|
|
||||
|
private static final long serialVersionUID = -9046180627016594155L; |
||||
|
|
||||
|
@ApiModelProperty("照片名称") |
||||
|
private String title; |
||||
|
@ApiModelProperty("路径") |
||||
|
private String imgUrl; |
||||
|
@ApiModelProperty("照片路径") |
||||
|
private List<String> files; |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.scm.api.scmvehinspectitem; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-scm(供应链) <br/> |
||||
|
* File: ScmVehinspectItemDto.java <br/> |
||||
|
* Class: com.yxt.anrui.scm.api.scmvehinspectitem.ScmVehinspectItemDto <br/> |
||||
|
* Description: 验车单中的检查表项目 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-07-14 00:17:21 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "验车单中的检查表项目 数据传输对象", description = "验车单中的检查表项目 数据传输对象") |
||||
|
public class AppScmVehinspectItemDto implements Dto { |
||||
|
|
||||
|
private static final long serialVersionUID = 4815903953419395568L; |
||||
|
|
||||
|
@ApiModelProperty("项目sid") |
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String item; |
||||
|
|
||||
|
@ApiModelProperty("检查结果:1是,0否,2无结果,默认2") |
||||
|
private Integer result; |
||||
|
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
|
||||
|
@ApiModelProperty("项目照片") |
||||
|
private List<AppImgUrlDto> imgUrl; |
||||
|
|
||||
|
@ApiModelProperty("照片示例") |
||||
|
private List<AppImgUrlDto> imgTempUrl; |
||||
|
|
||||
|
@ApiModelProperty("验车单sid") |
||||
|
private String vehInspectSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.anrui.scm.api.scmvehinspectitem; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class AppScmVehinspectItemInfoVo implements Vo { |
||||
|
|
||||
|
private static final long serialVersionUID = -6169838249336661987L; |
||||
|
@ApiModelProperty("项目sid") |
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String itemConten; |
||||
|
|
||||
|
@ApiModelProperty("检查结果:1是,0否,2无结果,默认2") |
||||
|
private Integer result; |
||||
|
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
|
||||
|
@ApiModelProperty("项目照片") |
||||
|
private List<AppImgUrlVo> imgUrl; |
||||
|
|
||||
|
@ApiModelProperty("照片示例") |
||||
|
private List<AppImgUrlVo> imgTempUrl; |
||||
|
|
||||
|
@ApiModelProperty("验车单sid") |
||||
|
private String vehInspectSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.anrui.scm.api.scmvehinspectitemimg; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class ScmVehinspectItemimgDto implements Dto { |
||||
|
private static final long serialVersionUID = -5242396515365105708L; |
||||
|
@ApiModelProperty("检查表sid") |
||||
|
private String mainSid; |
||||
|
@ApiModelProperty("照片名称") |
||||
|
private String imgTitle; |
||||
|
@ApiModelProperty("照片路径") |
||||
|
private String imgUrl; |
||||
|
@ApiModelProperty("照片路径集合") |
||||
|
private List<String> imgUrlList; |
||||
|
@ApiModelProperty("照片模板路径") |
||||
|
private String imgPath; |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.api.supplychain.carInspected; |
||||
|
|
||||
|
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.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-scm(供应链) <br/> |
||||
|
* File: ScmVehinspectItemFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.scm.api.scmvehinspectitem.ScmVehinspectItemFeign <br/> |
||||
|
* Description: 验车单中的检查表项目. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-07-14 00:17:21 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "验车单中的检查表项目") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-scm-ScmVehinspectItem", |
||||
|
name = "anrui-terminal", |
||||
|
path = "/supplychain/v1/carInspected", |
||||
|
fallback = AppScmVehinspectItemFeignFallback.class) |
||||
|
public interface AppScmVehinspectItemFeign { |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据检查表sid 获取检验项内容") |
||||
|
@GetMapping("/getInspectItemBysid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<ItemInfoVo> getInspectItemBysid(@PathVariable("sid") String sid); |
||||
|
|
||||
|
@ApiOperation("保存检查结果及相关照片") |
||||
|
@PostMapping("/saveInspectItem") |
||||
|
@ResponseBody |
||||
|
public ResultBean saveInspectItem(@RequestBody ItemDto dto); |
||||
|
} |
@ -0,0 +1,62 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.api.supplychain.carInspected; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-scm(供应链) <br/> |
||||
|
* File: ScmVehinspectItemFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.scm.api.scmvehinspectitem.ScmVehinspectItemFeignFallback <br/> |
||||
|
* Description: 验车单中的检查表项目. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-07-14 00:17:21 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class AppScmVehinspectItemFeignFallback implements AppScmVehinspectItemFeign { |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<ItemInfoVo> getInspectItemBysid(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean saveInspectItem(ItemDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.yxt.anrui.terminal.api.supplychain.carInspected; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class ImgUrlDto implements Dto { |
||||
|
|
||||
|
|
||||
|
private static final long serialVersionUID = -896072904271608090L; |
||||
|
@ApiModelProperty("照片名称") |
||||
|
private String title; |
||||
|
@ApiModelProperty("照片路径") |
||||
|
private String files; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.anrui.terminal.api.supplychain.carInspected; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class ImgUrlVo implements Vo { |
||||
|
|
||||
|
private static final long serialVersionUID = -9046180627016594155L; |
||||
|
|
||||
|
@ApiModelProperty("照片名称") |
||||
|
private String title; |
||||
|
@ApiModelProperty("照片路径") |
||||
|
private String files; |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.yxt.anrui.terminal.api.supplychain.carInspected; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class ItemDto implements Dto { |
||||
|
private static final long serialVersionUID = 7875329337448356091L; |
||||
|
|
||||
|
@ApiModelProperty("项目sid") |
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String item; |
||||
|
|
||||
|
@ApiModelProperty("检查结果:1是,0否,2无结果,默认2") |
||||
|
private Integer result; |
||||
|
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
|
||||
|
@ApiModelProperty("项目照片") |
||||
|
private List<ImgUrlDto> imgUrl; |
||||
|
|
||||
|
@ApiModelProperty("照片示例") |
||||
|
private List<ImgUrlDto> imgTempUrl; |
||||
|
|
||||
|
@ApiModelProperty("验车单sid") |
||||
|
private String vehInspectSid; |
||||
|
} |
@ -0,0 +1,33 @@ |
|||||
|
package com.yxt.anrui.terminal.api.supplychain.carInspected; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
@Data |
||||
|
public class ItemInfoVo implements Vo { |
||||
|
private static final long serialVersionUID = -3640078013489158647L; |
||||
|
|
||||
|
@ApiModelProperty("项目sid") |
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String itemConten; |
||||
|
|
||||
|
@ApiModelProperty("检查结果:1是,0否,2无结果,默认2") |
||||
|
private Integer result; |
||||
|
|
||||
|
@ApiModelProperty("备注") |
||||
|
private String remarks; |
||||
|
|
||||
|
@ApiModelProperty("项目照片") |
||||
|
private List<ImgUrlVo> imgUrl; |
||||
|
|
||||
|
@ApiModelProperty("照片示例") |
||||
|
private List<ImgUrlVo> imgTempUrl; |
||||
|
|
||||
|
@ApiModelProperty("验车单sid") |
||||
|
private String vehInspectSid; |
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
package com.yxt.anrui.terminal.api.supplychain.scmvehicleexamine; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
@Data |
||||
|
public class InspectionItemVo implements Vo { |
||||
|
private static final long serialVersionUID = -3087838434003064445L; |
||||
|
@ApiModelProperty("项目sid") |
||||
|
private String sid; |
||||
|
@ApiModelProperty("检查结果:1是,0否,2无结果,默认2") |
||||
|
private Integer result; |
||||
|
@ApiModelProperty("项目名称") |
||||
|
private String item; |
||||
|
@ApiModelProperty("图标路径") |
||||
|
private String iconUrl; |
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.supplychain.carInspected; |
||||
|
|
||||
|
import com.yxt.anrui.scm.api.scmvehinspectitem.*; |
||||
|
import com.yxt.anrui.terminal.api.supplychain.carInspected.AppScmVehinspectItemFeign; |
||||
|
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemDto; |
||||
|
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemInfoVo; |
||||
|
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 java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-scm(供应链) <br/> |
||||
|
* File: ScmVehinspectItemFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.scm.biz.scmvehinspectitem.ScmVehinspectItemRest <br/> |
||||
|
* Description: 验车单中的检查表项目. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-07-14 00:17:21 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "验车单中的检查表项目") |
||||
|
@RestController("com.yxt.anrui.scm.biz.scmvehinspectitem.ScmVehinspectItemRest") |
||||
|
@RequestMapping("v1/scmvehinspectitem") |
||||
|
public class AppScmVehinspectItemRest implements AppScmVehinspectItemFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private AppScmVehinspectItemService appScmVehinspectItemService; |
||||
|
|
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<ItemInfoVo> getInspectItemBysid(String sid) { |
||||
|
return appScmVehinspectItemService.getInspectItemBysid(sid); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean saveInspectItem(ItemDto dto) { |
||||
|
return appScmVehinspectItemService.saveInspectItem(dto); |
||||
|
} |
||||
|
} |
@ -0,0 +1,87 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.terminal.biz.supplychain.carInspected; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.anrui.scm.api.scmvehiclepatrolinspectionsheet.AppScmVehiclePatrolinspectionsheetInfoVo; |
||||
|
import com.yxt.anrui.scm.api.scmvehinspectitem.*; |
||||
|
import com.yxt.anrui.scm.api.scmvehinspectitemdetail.ScmVehinspectItemdetailVo; |
||||
|
import com.yxt.anrui.scm.api.scmvehinspectitemimg.ScmVehinspectItemimgVo; |
||||
|
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemDto; |
||||
|
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemInfoVo; |
||||
|
import com.yxt.anrui.terminal.api.supplychain.inspection.PatrolinspectionInfoVo; |
||||
|
import com.yxt.common.base.config.component.FileUploadComponent; |
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-scm(供应链) <br/> |
||||
|
* File: ScmVehinspectItemService.java <br/> |
||||
|
* Class: com.yxt.anrui.scm.biz.scmvehinspectitem.ScmVehinspectItemService <br/> |
||||
|
* Description: 验车单中的检查表项目 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-07-14 00:17:21 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class AppScmVehinspectItemService { |
||||
|
|
||||
|
@Autowired |
||||
|
ScmVehinspectItemFeign scmVehinspectItemFeign; |
||||
|
|
||||
|
public ResultBean<ItemInfoVo> getInspectItemBysid(String sid) { |
||||
|
ResultBean<ItemInfoVo> rb = ResultBean.fireFail(); |
||||
|
ItemInfoVo vo = new ItemInfoVo(); |
||||
|
ResultBean<AppScmVehinspectItemInfoVo> resultBean = scmVehinspectItemFeign.getInspectItemBysid(sid); |
||||
|
if (!resultBean.getSuccess()) { |
||||
|
return rb.setMsg(resultBean.getMsg()); |
||||
|
} |
||||
|
AppScmVehinspectItemInfoVo appScmVehinspectItemInfoVo = resultBean.getData(); |
||||
|
BeanUtil.copyProperties(appScmVehinspectItemInfoVo, vo); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean saveInspectItem(ItemDto dto) { |
||||
|
AppScmVehinspectItemDto appScmVehinspectItemDto = new AppScmVehinspectItemDto(); |
||||
|
BeanUtil.copyProperties(dto, appScmVehinspectItemDto); |
||||
|
ResultBean resultBean = scmVehinspectItemFeign.saveInspectItem(appScmVehinspectItemDto); |
||||
|
return resultBean; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue