116 changed files with 11377 additions and 567 deletions
@ -0,0 +1,60 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
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-crm(crm) <br/> |
||||
|
* File: CrmDockingPeople.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeople <br/> |
||||
|
* Description: 定点企业对接人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业对接人信息", description = "定点企业对接人信息") |
||||
|
@TableName("crm_docking_people") |
||||
|
public class CrmDockingPeople extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("对接人") |
||||
|
private String name; // 对接人
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo <br/> |
||||
|
* Description: 定点企业对接人信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业对接人信息 视图数据详情", description = "定点企业对接人信息 视图数据详情") |
||||
|
public class CrmDockingPeopleDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("对接人") |
||||
|
private String name; // 对接人
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleDto.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleDto <br/> |
||||
|
* Description: 定点企业对接人信息 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业对接人信息 数据传输对象", description = "定点企业对接人信息 数据传输对象") |
||||
|
public class CrmDockingPeopleDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("对接人") |
||||
|
private String name; // 对接人
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
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-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleFeign <br/> |
||||
|
* Description: 定点企业对接人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业对接人信息") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-crm-CrmDockingPeople", |
||||
|
name = "anrui-crm", |
||||
|
path = "v1/crmdockingpeople", |
||||
|
fallback = CrmDockingPeopleFeignFallback.class) |
||||
|
public interface CrmDockingPeopleFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<CrmDockingPeopleVo>> listPage(@RequestBody PagerQuery<CrmDockingPeopleQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody CrmDockingPeopleDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<CrmDockingPeopleDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
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-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleFeignFallback <br/> |
||||
|
* Description: 定点企业对接人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class CrmDockingPeopleFeignFallback implements CrmDockingPeopleFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<CrmDockingPeopleVo>> listPage(PagerQuery<CrmDockingPeopleQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-crm/crmdockingpeople/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(CrmDockingPeopleDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-crm/crmdockingpeople/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口anrui-crm/crmdockingpeople/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<CrmDockingPeopleDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口anrui-crm/crmdockingpeople/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,59 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleQuery <br/> |
||||
|
* Description: 定点企业对接人信息 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业对接人信息 查询条件", description = "定点企业对接人信息 查询条件") |
||||
|
public class CrmDockingPeopleQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("对接人") |
||||
|
private String name; // 对接人
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmdockingpeople; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo <br/> |
||||
|
* Description: 定点企业对接人信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业对接人信息 视图数据对象", description = "定点企业对接人信息 视图数据对象") |
||||
|
public class CrmDockingPeopleVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("对接人") |
||||
|
private String name; // 对接人
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
|
||||
|
} |
@ -0,0 +1,64 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePerson.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePerson <br/> |
||||
|
* Description: 定点企业备案-对接人员. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-对接人员", description = "定点企业备案-对接人员") |
||||
|
@TableName("crm_maintenanceenterprise_person") |
||||
|
public class CrmMaintenanceenterprisePerson extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("对接人员sid") |
||||
|
private String personSid; // 对接人员sid
|
||||
|
@ApiModelProperty("姓名") |
||||
|
private String name; // 姓名
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo <br/> |
||||
|
* Description: 定点企业备案-对接人员 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-对接人员 视图数据详情", description = "定点企业备案-对接人员 视图数据详情") |
||||
|
public class CrmMaintenanceenterprisePersonDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("对接人员sid") |
||||
|
private String personSid; // 对接人员sid
|
||||
|
@ApiModelProperty("姓名") |
||||
|
private String name; // 姓名
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonDto.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonDto <br/> |
||||
|
* Description: 定点企业备案-对接人员 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-对接人员 数据传输对象", description = "定点企业备案-对接人员 数据传输对象") |
||||
|
public class CrmMaintenanceenterprisePersonDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("对接人员sid") |
||||
|
private String personSid; // 对接人员sid
|
||||
|
@ApiModelProperty("姓名") |
||||
|
private String name; // 姓名
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
|
||||
|
} |
@ -0,0 +1,83 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonFeign <br/> |
||||
|
* Description: 定点企业备案-对接人员. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业备案-对接人员") |
||||
|
@FeignClient( |
||||
|
contextId = "crm-CrmMaintenanceenterprisePerson", |
||||
|
name = "crm", |
||||
|
path = "v1/crmmaintenanceenterpriseperson", |
||||
|
fallback = CrmMaintenanceenterprisePersonFeignFallback.class) |
||||
|
public interface CrmMaintenanceenterprisePersonFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterprisePersonVo>> listPage(@RequestBody PagerQuery<CrmMaintenanceenterprisePersonQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody CrmMaintenanceenterprisePersonDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<CrmMaintenanceenterprisePersonDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/personList") |
||||
|
@ResponseBody |
||||
|
public ResultBean<List<CrmPersonListVo>> personList(@RequestParam("sid") String sid); |
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonFeignFallback <br/> |
||||
|
* Description: 定点企业备案-对接人员. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class CrmMaintenanceenterprisePersonFeignFallback implements CrmMaintenanceenterprisePersonFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterprisePersonVo>> listPage(PagerQuery<CrmMaintenanceenterprisePersonQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口crm/crmmaintenanceenterpriseperson/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(CrmMaintenanceenterprisePersonDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口crm/crmmaintenanceenterpriseperson/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口crm/crmmaintenanceenterpriseperson/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<CrmMaintenanceenterprisePersonDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口crm/crmmaintenanceenterpriseperson/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<CrmPersonListVo>> personList(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
@ -0,0 +1,63 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonQuery <br/> |
||||
|
* Description: 定点企业备案-对接人员 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-对接人员 查询条件", description = "定点企业备案-对接人员 查询条件") |
||||
|
public class CrmMaintenanceenterprisePersonQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("对接人员sid") |
||||
|
private String personSid; // 对接人员sid
|
||||
|
@ApiModelProperty("姓名") |
||||
|
private String name; // 姓名
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo <br/> |
||||
|
* Description: 定点企业备案-对接人员 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-对接人员 视图数据对象", description = "定点企业备案-对接人员 视图数据对象") |
||||
|
public class CrmMaintenanceenterprisePersonVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("对接人员sid") |
||||
|
private String personSid; // 对接人员sid
|
||||
|
@ApiModelProperty("姓名") |
||||
|
private String name; // 姓名
|
||||
|
@ApiModelProperty("手机号码") |
||||
|
private String mobile; // 手机号码
|
||||
|
|
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/29 16:48 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CrmPersonListVo { |
||||
|
private String mobile; |
||||
|
private String name; |
||||
|
private String remarks; |
||||
|
private String sid; |
||||
|
|
||||
|
} |
@ -0,0 +1,31 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/22 14:42 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CarListVo { |
||||
|
|
||||
|
/** |
||||
|
* 购买日期 |
||||
|
*/ |
||||
|
private String buyDate; |
||||
|
private String sid; |
||||
|
/** |
||||
|
* 车牌号 |
||||
|
*/ |
||||
|
private String vehMark; |
||||
|
/** |
||||
|
* 车架号 |
||||
|
*/ |
||||
|
private String vinNo; |
||||
|
|
||||
|
|
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
} |
@ -0,0 +1,92 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecord.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecord <br/> |
||||
|
* Description: 定点企业备案. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案", description = "定点企业备案") |
||||
|
@TableName("crm_maintenanceenterprise_record") |
||||
|
public class CrmMaintenanceenterpriseRecord extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; // 单据编号
|
||||
|
@ApiModelProperty("客户sid") |
||||
|
private String customerSid; // 客户sid
|
||||
|
@ApiModelProperty("备案类别") |
||||
|
private String filingType; // 备案类别
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("备案有效期") |
||||
|
private Date filingIndate; // 备案有效期
|
||||
|
@ApiModelProperty("申请部门") |
||||
|
private String deptName; // 申请部门
|
||||
|
@ApiModelProperty("申请部门sid") |
||||
|
private String deptSid; // 申请部门sid
|
||||
|
@ApiModelProperty("taskId") |
||||
|
private String taskId; // taskId
|
||||
|
@ApiModelProperty("环节定义的sid") |
||||
|
private String nodeSid; // 环节定义的sid
|
||||
|
@ApiModelProperty("流程状态") |
||||
|
private String nodeState; // 流程状态
|
||||
|
@ApiModelProperty("流程实例的sid") |
||||
|
private String procInstId; // 流程实例的sid
|
||||
|
@ApiModelProperty("流程定义的id") |
||||
|
private String procDefId; // 流程定义的id
|
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; // 使用组织sid
|
||||
|
@ApiModelProperty("使用组织名称(分公司)") |
||||
|
private String useOrgName; // 使用组织名称(分公司)
|
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; // 创建组织sid
|
||||
|
@ApiModelProperty("创建组织名称(分公司)") |
||||
|
private String createOrgName; // 创建组织名称(分公司)
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("办结日期") |
||||
|
private Date closingDate; // 办结日期
|
||||
|
|
||||
|
} |
@ -0,0 +1,206 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordVo <br/> |
||||
|
* Description: 定点企业备案 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案 视图数据详情", description = "定点企业备案 视图数据详情") |
||||
|
public class CrmMaintenanceenterpriseRecordDetailsVo implements Vo { |
||||
|
|
||||
|
/** |
||||
|
* 客户sid |
||||
|
*/ |
||||
|
private String customerSid; |
||||
|
/** |
||||
|
* 详细地址 |
||||
|
*/ |
||||
|
private String address; |
||||
|
/** |
||||
|
* 车辆列表 |
||||
|
*/ |
||||
|
private List<CarListVo> carList = new ArrayList<>(); |
||||
|
/** |
||||
|
* 证件类型 |
||||
|
*/ |
||||
|
private String certificateType; |
||||
|
/** |
||||
|
* 证件类型Key |
||||
|
*/ |
||||
|
private String certificateTypeKey; |
||||
|
/** |
||||
|
* 市 |
||||
|
*/ |
||||
|
private String city; |
||||
|
/** |
||||
|
* 对接人列表 |
||||
|
*/ |
||||
|
private List<PersonListVo> contactPerson = new ArrayList<>(); |
||||
|
/** |
||||
|
* 县 |
||||
|
*/ |
||||
|
private String county; |
||||
|
/** |
||||
|
* 申请人 |
||||
|
*/ |
||||
|
private String createByName; |
||||
|
/** |
||||
|
* 申请人sid |
||||
|
*/ |
||||
|
private String createBySid; |
||||
|
/** |
||||
|
* 分公司 |
||||
|
*/ |
||||
|
private String createOrgName; |
||||
|
/** |
||||
|
* 分公司sid |
||||
|
*/ |
||||
|
private String createOrgSid; |
||||
|
/** |
||||
|
* 申请日期 |
||||
|
*/ |
||||
|
private String createTime; |
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String customerName; |
||||
|
/** |
||||
|
* 客户类型 |
||||
|
*/ |
||||
|
private String customerType; |
||||
|
/** |
||||
|
* 客户类型Key |
||||
|
*/ |
||||
|
private String customerTypeKey; |
||||
|
/** |
||||
|
* 申请部门 |
||||
|
*/ |
||||
|
private String deptName; |
||||
|
/** |
||||
|
* 申请部门sid |
||||
|
*/ |
||||
|
private String deptSid; |
||||
|
/** |
||||
|
* 电子邮箱 |
||||
|
*/ |
||||
|
private String e_mail; |
||||
|
/** |
||||
|
* 紧急联系人 |
||||
|
*/ |
||||
|
private String emergencyContact; |
||||
|
/** |
||||
|
* 紧急联系电话 |
||||
|
*/ |
||||
|
private String emergencyMobile; |
||||
|
/** |
||||
|
* 证书有效期 |
||||
|
*/ |
||||
|
private String endDate; |
||||
|
/** |
||||
|
* 附件 |
||||
|
*/ |
||||
|
private List<FileQueryUrl> files = new ArrayList<>(); |
||||
|
/** |
||||
|
* 备案有效期 |
||||
|
*/ |
||||
|
private String filingIndate; |
||||
|
/** |
||||
|
* 备案类别,默认赋值"首次" |
||||
|
*/ |
||||
|
private String filingType; |
||||
|
/** |
||||
|
* 证书号码 |
||||
|
*/ |
||||
|
private String idnumber; |
||||
|
/** |
||||
|
* 流程实例ID |
||||
|
*/ |
||||
|
private String instanceId; |
||||
|
/** |
||||
|
* 联系电话 |
||||
|
*/ |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 省 |
||||
|
*/ |
||||
|
private String province; |
||||
|
/** |
||||
|
* 已备人数,首次备案默认为空 |
||||
|
*/ |
||||
|
private String readyStrength; |
||||
|
/** |
||||
|
* 已备车辆,首次备案默认为空 |
||||
|
*/ |
||||
|
private String readyVehicle; |
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
private String sid; |
||||
|
/** |
||||
|
* 流程ID |
||||
|
*/ |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 分公司 |
||||
|
*/ |
||||
|
private String useOrgName; |
||||
|
/** |
||||
|
* 分公司sid |
||||
|
*/ |
||||
|
private String useOrgSid; |
||||
|
/** |
||||
|
* 微信号 |
||||
|
*/ |
||||
|
private String weixin; |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,205 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordDto.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordDto <br/> |
||||
|
* Description: 定点企业备案 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案 数据传输对象", description = "定点企业备案 数据传输对象") |
||||
|
public class CrmMaintenanceenterpriseRecordDto implements Dto { |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 客户sid |
||||
|
*/ |
||||
|
private String customerSid; |
||||
|
/** |
||||
|
* 详细地址 |
||||
|
*/ |
||||
|
private String address; |
||||
|
/** |
||||
|
* 车辆列表 |
||||
|
*/ |
||||
|
private List<CarListVo> carList = new ArrayList<>(); |
||||
|
/** |
||||
|
* 证件类型 |
||||
|
*/ |
||||
|
private String certificateType; |
||||
|
/** |
||||
|
* 证件类型Key |
||||
|
*/ |
||||
|
private String certificateTypeKey; |
||||
|
/** |
||||
|
* 市 |
||||
|
*/ |
||||
|
private String city; |
||||
|
/** |
||||
|
* 对接人列表 |
||||
|
*/ |
||||
|
private List<PersonListVo> contactPerson = new ArrayList<>(); |
||||
|
/** |
||||
|
* 县 |
||||
|
*/ |
||||
|
private String county; |
||||
|
/** |
||||
|
* 申请人 |
||||
|
*/ |
||||
|
private String createByName; |
||||
|
/** |
||||
|
* 申请人sid |
||||
|
*/ |
||||
|
private String createBySid; |
||||
|
/** |
||||
|
* 分公司 |
||||
|
*/ |
||||
|
private String createOrgName; |
||||
|
/** |
||||
|
* 分公司sid |
||||
|
*/ |
||||
|
private String createOrgSid; |
||||
|
/** |
||||
|
* 申请日期 |
||||
|
*/ |
||||
|
private String createTime; |
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String customerName; |
||||
|
/** |
||||
|
* 客户类型 |
||||
|
*/ |
||||
|
private String customerType; |
||||
|
/** |
||||
|
* 客户类型Key |
||||
|
*/ |
||||
|
private String customerTypeKey; |
||||
|
/** |
||||
|
* 申请部门 |
||||
|
*/ |
||||
|
private String deptName; |
||||
|
/** |
||||
|
* 申请部门sid |
||||
|
*/ |
||||
|
private String deptSid; |
||||
|
/** |
||||
|
* 电子邮箱 |
||||
|
*/ |
||||
|
private String eMail; |
||||
|
/** |
||||
|
* 紧急联系人 |
||||
|
*/ |
||||
|
private String emergencyContact; |
||||
|
/** |
||||
|
* 紧急联系电话 |
||||
|
*/ |
||||
|
private String emergencyMobile; |
||||
|
/** |
||||
|
* 证书有效期 |
||||
|
*/ |
||||
|
private String endDate; |
||||
|
/** |
||||
|
* 附件 |
||||
|
*/ |
||||
|
private List<FileQueryUrl> files = new ArrayList<>(); |
||||
|
/** |
||||
|
* 备案有效期 |
||||
|
*/ |
||||
|
private String filingIndate; |
||||
|
/** |
||||
|
* 备案类别,默认赋值"首次" |
||||
|
*/ |
||||
|
private String filingType; |
||||
|
/** |
||||
|
* 证书号码 |
||||
|
*/ |
||||
|
private String idnumber; |
||||
|
/** |
||||
|
* 流程实例ID |
||||
|
*/ |
||||
|
private String instanceId; |
||||
|
/** |
||||
|
* 联系电话 |
||||
|
*/ |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 省 |
||||
|
*/ |
||||
|
private String province; |
||||
|
/** |
||||
|
* 已备人数,首次备案默认为空 |
||||
|
*/ |
||||
|
private String readyStrength; |
||||
|
/** |
||||
|
* 已备车辆,首次备案默认为空 |
||||
|
*/ |
||||
|
private String readyVehicle; |
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
private String sid; |
||||
|
/** |
||||
|
* 流程ID |
||||
|
*/ |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 分公司 |
||||
|
*/ |
||||
|
private String useOrgName; |
||||
|
/** |
||||
|
* 分公司sid |
||||
|
*/ |
||||
|
private String useOrgSid; |
||||
|
/** |
||||
|
* 微信号 |
||||
|
*/ |
||||
|
private String weixin; |
||||
|
|
||||
|
} |
@ -0,0 +1,128 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable.*; |
||||
|
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 io.swagger.annotations.ApiParam; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.cloud.openfeign.SpringQueryMap; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordFeign <br/> |
||||
|
* Description: 定点企业备案. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业备案") |
||||
|
@FeignClient( |
||||
|
contextId = "crm-CrmMaintenanceenterpriseRecord", |
||||
|
name = "crm", |
||||
|
path = "v1/maintenanceEnterprise", |
||||
|
fallback = CrmMaintenanceenterpriseRecordFeignFallback.class) |
||||
|
public interface CrmMaintenanceenterpriseRecordFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterpriseRecordVo>> listPage(@RequestBody PagerQuery<CrmMaintenanceenterpriseRecordQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody CrmMaintenanceenterpriseRecordDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("新增初始化") |
||||
|
@GetMapping("/init") |
||||
|
@ResponseBody |
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> init(@RequestParam("sid") String sid); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
|
||||
|
|
||||
|
// //------------------------------流程接口----------------------------------------------
|
||||
|
//
|
||||
|
// @ApiOperation("提交")
|
||||
|
// @PostMapping("/submit")
|
||||
|
// public ResultBean submitRecordApplication(@RequestBody @Valid SubmitEnterpriseDto dto);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "办理(同意)")
|
||||
|
// @PostMapping("/complete")
|
||||
|
// public ResultBean complete(@Valid @RequestBody EnterpriseCompleteDto dto);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "撤回流程")
|
||||
|
// @PostMapping(value = "/revokeProcess")
|
||||
|
// public ResultBean revokeProcess(@ApiParam(value = "工作流任务相关--请求参数") @RequestBody EnterpriseTaskQuery query);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "驳回任务")
|
||||
|
// @PostMapping(value = "/reject")
|
||||
|
// public ResultBean taskReject(@ApiParam(value = "工作流任务相关--请求参数") @RequestBody EnterpriseTaskQuery query);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "终止任务")
|
||||
|
// @PostMapping(value = "/breakProcess")
|
||||
|
// public ResultBean breakProcess(@RequestBody EnterpriseTaskQuery query);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "流程历史流转记录")
|
||||
|
// @GetMapping(value = "/task/flowRecord/{procInsId}/{deployId}")
|
||||
|
// public ResultBean flowRecord(@ApiParam(value = "流程实例id") @PathVariable(value = "procInsId") String procInsId);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "获取下一个环节")
|
||||
|
// @GetMapping(value = "/getNextNodesForSubmit")
|
||||
|
// ResultBean<List<EnterpriseNodeVo>> getNextNodesForSubmit(@Valid @SpringQueryMap EnterpriseNodeQuery query);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "获取上一个环节")
|
||||
|
// @GetMapping(value = "/getPreviousNodesForReject")
|
||||
|
// ResultBean<List<EnterpriseNodeVo>> getPreviousNodesForReject(@Valid @SpringQueryMap EnterpriseNodeQuery query);
|
||||
|
//
|
||||
|
// @ApiOperation(value = "加签")
|
||||
|
// @PostMapping(value = "/delegate")
|
||||
|
// public ResultBean delegate(@RequestBody EnterpriseDelegateQuery query);
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,123 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable.*; |
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordFeignFallback <br/> |
||||
|
* Description: 定点企业备案. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class CrmMaintenanceenterpriseRecordFeignFallback implements CrmMaintenanceenterpriseRecordFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterpriseRecordVo>> listPage(PagerQuery<CrmMaintenanceenterpriseRecordQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口crm/crmmaintenanceenterpriserecord/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(CrmMaintenanceenterpriseRecordDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口crm/crmmaintenanceenterpriserecord/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口crm/crmmaintenanceenterpriserecord/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> init(String sid) { |
||||
|
return null; |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口crm/crmmaintenanceenterpriserecord/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
|
||||
|
// @Override
|
||||
|
// public ResultBean submitRecordApplication(SubmitEnterpriseDto dto) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean complete(EnterpriseCompleteDto dto) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean revokeProcess(EnterpriseTaskQuery query) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean taskReject(EnterpriseTaskQuery query) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean breakProcess(EnterpriseTaskQuery query) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean flowRecord(String procInsId) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean<List<EnterpriseNodeVo>> getNextNodesForSubmit(EnterpriseNodeQuery query) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean<List<EnterpriseNodeVo>> getPreviousNodesForReject(EnterpriseNodeQuery query) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean delegate(EnterpriseDelegateQuery query) {
|
||||
|
// return null;
|
||||
|
// }
|
||||
|
} |
@ -0,0 +1,73 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordQuery <br/> |
||||
|
* Description: 定点企业备案 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案 查询条件", description = "定点企业备案 查询条件") |
||||
|
public class CrmMaintenanceenterpriseRecordQuery implements Query { |
||||
|
|
||||
|
private String billNo; |
||||
|
private String closingDateEnd; |
||||
|
private String closingDateStart; |
||||
|
private String createByName; |
||||
|
private String createEndTime; |
||||
|
private String createOrgName; |
||||
|
private String createStartTime; |
||||
|
private String customerName; |
||||
|
private String customerTypeKey; |
||||
|
private String deptName; |
||||
|
private String menuUrl; |
||||
|
private String mobile; |
||||
|
private String orgPath; |
||||
|
/** |
||||
|
* 是否有效 1是0否 |
||||
|
*/ |
||||
|
private String state; |
||||
|
private String userSid; |
||||
|
|
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordVo <br/> |
||||
|
* Description: 定点企业备案 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案 视图数据对象", description = "定点企业备案 视图数据对象") |
||||
|
public class CrmMaintenanceenterpriseRecordVo implements Vo { |
||||
|
|
||||
|
/** |
||||
|
* 单据编号 |
||||
|
*/ |
||||
|
private String billNo; |
||||
|
/** |
||||
|
* 办结日期 |
||||
|
*/ |
||||
|
private String closingDate; |
||||
|
/** |
||||
|
* 申请人 |
||||
|
*/ |
||||
|
private String createByName; |
||||
|
/** |
||||
|
* 申请日期 |
||||
|
*/ |
||||
|
private String createTime; |
||||
|
/** |
||||
|
* 客户名称 |
||||
|
*/ |
||||
|
private String customerName; |
||||
|
/** |
||||
|
* 客户类型 |
||||
|
*/ |
||||
|
private String customerTypeValue; |
||||
|
/** |
||||
|
* 申请部门 |
||||
|
*/ |
||||
|
private String deptName; |
||||
|
/** |
||||
|
* 备案有效期 |
||||
|
*/ |
||||
|
private String filingIndate; |
||||
|
/** |
||||
|
* 备案有效期是否已过,1是0否 |
||||
|
*/ |
||||
|
private String isFilingIndate; |
||||
|
/** |
||||
|
* 联系电话 |
||||
|
*/ |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 流程状态 |
||||
|
*/ |
||||
|
private String nodeState; |
||||
|
/** |
||||
|
* 流程定义ID |
||||
|
*/ |
||||
|
private String procDefId; |
||||
|
/** |
||||
|
* 流程实例ID |
||||
|
*/ |
||||
|
private String procInstId; |
||||
|
private String sid; |
||||
|
/** |
||||
|
* 分公司 |
||||
|
*/ |
||||
|
private String useOrgName; |
||||
|
@ApiModelProperty("备案类别") |
||||
|
private String filingType; // 备案类别
|
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/22 14:35 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class FileQueryUrl { |
||||
|
|
||||
|
private String url; |
||||
|
|
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/22 14:42 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PersonListVo { |
||||
|
|
||||
|
/** |
||||
|
* 手机号码 |
||||
|
*/ |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 姓名 |
||||
|
*/ |
||||
|
private String name; |
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
private String sid; |
||||
|
|
||||
|
@ApiModelProperty("对接人员sid") |
||||
|
private String personSid; // 对接人员sid
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,37 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 14:57 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EnterpriseCompleteDto implements Dto { |
||||
|
private static final long serialVersionUID = 6378752532534735663L; |
||||
|
|
||||
|
@ApiModelProperty(value = "用户sid") |
||||
|
private String userSid; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "任务id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty(value = "流程id(PC)") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty(value = "流程id(移动)") |
||||
|
private String procInsId; |
||||
|
@ApiModelProperty(value = "意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
|
||||
|
private String orgPath; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Administrator |
||||
|
* @description |
||||
|
* @date 2023/9/28 9:28 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EnterpriseDelegateQuery { |
||||
|
@ApiModelProperty |
||||
|
private String userSid; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
// @JsonProperty("procInsId")
|
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务Id") |
||||
|
private String taskId; |
||||
|
@ApiModelProperty("审批人sid") |
||||
|
private String assignee; |
||||
|
@ApiModelProperty("填写意见") |
||||
|
private String views; |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,25 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 15:04 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EnterpriseNodeQuery implements Query { |
||||
|
private static final long serialVersionUID = 9117613683840483366L; |
||||
|
|
||||
|
@ApiModelProperty(value = "环节定义id") |
||||
|
@NotBlank(message = "参数错误:taskDefKey") |
||||
|
private String taskDefKey; |
||||
|
@ApiModelProperty(value = "业务sid") |
||||
|
private String businessSid; |
||||
|
@ApiModelProperty(value = "0 上一环节 1下一环节") |
||||
|
private Integer next; |
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 15:03 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EnterpriseNodeVo implements Vo { |
||||
|
private static final long serialVersionUID = -833419512294877848L; |
||||
|
|
||||
|
@ApiModelProperty(value = "节点名称") |
||||
|
private String name; |
||||
|
@ApiModelProperty(value = "节点id") |
||||
|
private String id; |
||||
|
@ApiModelProperty(value = "审批组") |
||||
|
private List<String> candidateGroups; |
||||
|
@ApiModelProperty(value = "是否是最后环节") |
||||
|
private String endTask; |
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
/** |
||||
|
* @Author dimengzhe |
||||
|
* @Date 2022/9/6 15:06 |
||||
|
* @Description |
||||
|
*/ |
||||
|
@Data |
||||
|
public class EnterpriseTaskQuery implements Query { |
||||
|
private static final long serialVersionUID = 1288615499873178778L; |
||||
|
|
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务Id") |
||||
|
@NotBlank(message = "参数错误:taskId") |
||||
|
private String taskId; |
||||
|
/** |
||||
|
* 终止、驳回、撤回 |
||||
|
*/ |
||||
|
@ApiModelProperty("业务sid") |
||||
|
@NotBlank(message = "参数错误:businessSid") |
||||
|
private String businessSid; |
||||
|
/** |
||||
|
* 终止、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("任务意见") |
||||
|
private String comment; |
||||
|
/** |
||||
|
* 终止、撤回、驳回 |
||||
|
*/ |
||||
|
@ApiModelProperty("用户Sid") |
||||
|
private String userSid; |
||||
|
/** |
||||
|
* 终止 |
||||
|
*/ |
||||
|
@ApiModelProperty("流程实例Id(PC)") |
||||
|
private String instanceId; |
||||
|
|
||||
|
@ApiModelProperty("流程实例Id(移动)") |
||||
|
private String procInsId; |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable; |
||||
|
|
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordDto; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author liuguohui |
||||
|
* @version 1.0 |
||||
|
* @description |
||||
|
* @date 2022/04/13 |
||||
|
*/ |
||||
|
@ApiModel("提交") |
||||
|
@Data |
||||
|
public class SubmitEnterpriseDto extends CrmMaintenanceenterpriseRecordDto { |
||||
|
|
||||
|
@ApiModelProperty("意见") |
||||
|
private String comment; |
||||
|
@ApiModelProperty("流程实例id") |
||||
|
private String instanceId; |
||||
|
@ApiModelProperty("任务id") |
||||
|
private String taskId; |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVeh.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVeh <br/> |
||||
|
* Description: 定点企业备案-车辆信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-车辆信息", description = "定点企业备案-车辆信息") |
||||
|
@TableName("crm_maintenanceenterprise_veh") |
||||
|
public class CrmMaintenanceenterpriseVeh extends BaseEntity { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("购车日期") |
||||
|
private Date buyDate; // 购车日期
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo <br/> |
||||
|
* Description: 定点企业备案-车辆信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-车辆信息 视图数据详情", description = "定点企业备案-车辆信息 视图数据详情") |
||||
|
public class CrmMaintenanceenterpriseVehDetailsVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("购车日期") |
||||
|
private Date buyDateStart; // 购车日期
|
||||
|
private Date buyDateEnd; // 购车日期
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehDto.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehDto <br/> |
||||
|
* Description: 定点企业备案-车辆信息 数据传输对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-车辆信息 数据传输对象", description = "定点企业备案-车辆信息 数据传输对象") |
||||
|
public class CrmMaintenanceenterpriseVehDto implements Dto { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("购车日期") |
||||
|
private Date buyDateStart; // 购车日期
|
||||
|
private Date buyDateEnd; // 购车日期
|
||||
|
|
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehFeign <br/> |
||||
|
* Description: 定点企业备案-车辆信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业备案-车辆信息") |
||||
|
@FeignClient( |
||||
|
contextId = "crm-CrmMaintenanceenterpriseVeh", |
||||
|
name = "crm", |
||||
|
path = "v1/crmmaintenanceenterpriseveh", |
||||
|
fallback = CrmMaintenanceenterpriseVehFeignFallback.class) |
||||
|
public interface CrmMaintenanceenterpriseVehFeign { |
||||
|
|
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterpriseVehVo>> listPage(@RequestBody PagerQuery<CrmMaintenanceenterpriseVehQuery> pq); |
||||
|
|
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
@ResponseBody |
||||
|
public ResultBean save(@RequestBody CrmMaintenanceenterpriseVehDto dto); |
||||
|
|
||||
|
@ApiOperation("根据sid删除记录") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
@ResponseBody |
||||
|
public ResultBean delBySids(@RequestBody String[] sids); |
||||
|
|
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
@ResponseBody |
||||
|
public ResultBean<CrmMaintenanceenterpriseVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid); |
||||
|
} |
@ -0,0 +1,72 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehFeignFallback <br/> |
||||
|
* Description: 定点企业备案-车辆信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class CrmMaintenanceenterpriseVehFeignFallback implements CrmMaintenanceenterpriseVehFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterpriseVehVo>> listPage(PagerQuery<CrmMaintenanceenterpriseVehQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口crm/crmmaintenanceenterpriseveh/listPage无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean save(CrmMaintenanceenterpriseVehDto dto){ |
||||
|
return ResultBean.fireFail().setMsg("接口crm/crmmaintenanceenterpriseveh/save无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean delBySids( String[] sids){ |
||||
|
return ResultBean.fireFail().setMsg("接口crm/crmmaintenanceenterpriseveh/delBySids无法访问"); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<CrmMaintenanceenterpriseVehDetailsVo> fetchDetailsBySid(String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
return rb.setMsg("接口crm/crmmaintenanceenterpriseveh/fetchDetailsBySid无法访问"); |
||||
|
} |
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehQuery.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehQuery <br/> |
||||
|
* Description: 定点企业备案-车辆信息 查询条件. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-车辆信息 查询条件", description = "定点企业备案-车辆信息 查询条件") |
||||
|
public class CrmMaintenanceenterpriseVehQuery implements Query { |
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("购车日期") |
||||
|
private Date buyDateStart; // 购车日期
|
||||
|
private Date buyDateEnd; // 购车日期
|
||||
|
|
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import java.util.Date; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehVo.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo <br/> |
||||
|
* Description: 定点企业备案-车辆信息 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "定点企业备案-车辆信息 视图数据对象", description = "定点企业备案-车辆信息 视图数据对象") |
||||
|
public class CrmMaintenanceenterpriseVehVo implements Vo { |
||||
|
|
||||
|
private String sid; // sid
|
||||
|
|
||||
|
@ApiModelProperty("申请人") |
||||
|
private String createByName; // 申请人
|
||||
|
@ApiModelProperty("定点企业备案sid") |
||||
|
private String billSid; // 定点企业备案sid
|
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
@ApiModelProperty("车牌号") |
||||
|
private String vehMark; // 车牌号
|
||||
|
@ApiModelProperty("车架号") |
||||
|
private String vinNo; // 车架号
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
||||
|
@ApiModelProperty("购车日期") |
||||
|
private Date buyDateStart; // 购车日期
|
||||
|
private Date buyDateEnd; // 购车日期
|
||||
|
|
||||
|
} |
@ -0,0 +1,65 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmdockingpeople; |
||||
|
|
||||
|
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.crm.api.crmdockingpeople.CrmDockingPeople; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmdockingpeople.CrmDockingPeopleMapper <br/> |
||||
|
* Description: 定点企业对接人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface CrmDockingPeopleMapper extends BaseMapper<CrmDockingPeople> { |
||||
|
|
||||
|
//@Update("update crm_docking_people set name=#{msg} where id=#{id}")
|
||||
|
//IPage<CrmDockingPeopleVo> voPage(IPage<CrmDockingPeople> page, @Param(Constants.WRAPPER) QueryWrapper<CrmDockingPeople> qw);
|
||||
|
|
||||
|
IPage<CrmDockingPeopleVo> selectPageVo(IPage<CrmDockingPeople> page, @Param(Constants.WRAPPER) Wrapper<CrmDockingPeople> qw); |
||||
|
|
||||
|
List<CrmDockingPeopleVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<CrmDockingPeople> qw); |
||||
|
|
||||
|
@Select("select * from crm_docking_people") |
||||
|
List<CrmDockingPeopleVo> 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.crm.biz.crmdockingpeople.CrmDockingPeopleMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo"> |
||||
|
SELECT * FROM crm_docking_people <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo"> |
||||
|
SELECT * FROM crm_docking_people <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmdockingpeople; |
||||
|
|
||||
|
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; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeople; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleQuery; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleDetailsVo; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleDto; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmdockingpeople.CrmDockingPeopleRest <br/> |
||||
|
* Description: 定点企业对接人信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业对接人信息") |
||||
|
@RestController("com.yxt.anrui.crm.biz.crmdockingpeople.CrmDockingPeopleRest") |
||||
|
@RequestMapping("v1/crmdockingpeople") |
||||
|
public class CrmDockingPeopleRest implements CrmDockingPeopleFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private CrmDockingPeopleService crmDockingPeopleService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<CrmDockingPeopleVo>> listPage(@RequestBody PagerQuery<CrmDockingPeopleQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<CrmDockingPeopleVo> pv = crmDockingPeopleService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody CrmDockingPeopleDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmDockingPeopleService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmDockingPeopleService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<CrmDockingPeopleDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CrmDockingPeopleDetailsVo vo = crmDockingPeopleService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmdockingpeople; |
||||
|
|
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeople; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleQuery; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleVo; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleDetailsVo; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleDto; |
||||
|
import com.yxt.anrui.crm.api.crmdockingpeople.CrmDockingPeopleFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-crm(crm) <br/> |
||||
|
* File: CrmDockingPeopleService.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmdockingpeople.CrmDockingPeopleService <br/> |
||||
|
* Description: 定点企业对接人信息 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 17:21:58 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class CrmDockingPeopleService extends MybatisBaseService<CrmDockingPeopleMapper, CrmDockingPeople> { |
||||
|
private QueryWrapper<CrmDockingPeople> createQueryWrapper(CrmDockingPeopleQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<CrmDockingPeople> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<CrmDockingPeopleVo> listPageVo(PagerQuery<CrmDockingPeopleQuery> pq) { |
||||
|
CrmDockingPeopleQuery query = pq.getParams(); |
||||
|
QueryWrapper<CrmDockingPeople> qw = createQueryWrapper(query); |
||||
|
IPage<CrmDockingPeople> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<CrmDockingPeopleVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<CrmDockingPeopleVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(CrmDockingPeopleDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(CrmDockingPeopleDto dto){ |
||||
|
CrmDockingPeople entity = new CrmDockingPeople(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(CrmDockingPeopleDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
CrmDockingPeople entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public CrmDockingPeopleDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
CrmDockingPeople entity = fetchBySid(sid); |
||||
|
CrmDockingPeopleDetailsVo vo = new CrmDockingPeopleDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,76 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
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 com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmPersonListVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVeh; |
||||
|
import org.apache.ibatis.annotations.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePerson; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonMapper <br/> |
||||
|
* Description: 定点企业备案-对接人员. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface CrmMaintenanceenterprisePersonMapper extends BaseMapper<CrmMaintenanceenterprisePerson> { |
||||
|
|
||||
|
//@Update("update crm_maintenanceenterprise_person set name=#{msg} where id=#{id}")
|
||||
|
//IPage<CrmMaintenanceenterprisePersonVo> voPage(IPage<CrmMaintenanceenterprisePerson> page, @Param(Constants.WRAPPER) QueryWrapper<CrmMaintenanceenterprisePerson> qw);
|
||||
|
|
||||
|
IPage<CrmMaintenanceenterprisePersonVo> selectPageVo(IPage<CrmMaintenanceenterprisePerson> page, @Param(Constants.WRAPPER) Wrapper<CrmMaintenanceenterprisePerson> qw); |
||||
|
|
||||
|
List<CrmMaintenanceenterprisePersonVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<CrmMaintenanceenterprisePerson> qw); |
||||
|
|
||||
|
@Select("select * from crm_maintenanceenterprise_person") |
||||
|
List<CrmMaintenanceenterprisePersonVo> selectListVo(); |
||||
|
|
||||
|
@Delete("delete from crm_maintenanceenterprise_person where billSid = #{sid}") |
||||
|
void delByBillSid(String sid); |
||||
|
@Select("select * from crm_maintenanceenterprise_person where billSid = #{sid} ") |
||||
|
List<CrmMaintenanceenterprisePerson> selByBillSid(String sid); |
||||
|
|
||||
|
@Select("select * from crm_maintenanceenterprise_person where billSid = #{sid}") |
||||
|
List<CrmPersonListVo> personList(String sid); |
||||
|
} |
@ -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.crm.biz.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo"> |
||||
|
SELECT * FROM crm_maintenanceenterprise_person <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo"> |
||||
|
SELECT * FROM crm_maintenanceenterprise_person <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,102 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.*; |
||||
|
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: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonRest <br/> |
||||
|
* Description: 定点企业备案-对接人员. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业备案-对接人员") |
||||
|
@RestController("com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonRest") |
||||
|
@RequestMapping("v1/crmmaintenanceenterpriseperson") |
||||
|
public class CrmMaintenanceenterprisePersonRest implements CrmMaintenanceenterprisePersonFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private CrmMaintenanceenterprisePersonService crmMaintenanceenterprisePersonService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterprisePersonVo>> listPage(@RequestBody PagerQuery<CrmMaintenanceenterprisePersonQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<CrmMaintenanceenterprisePersonVo> pv = crmMaintenanceenterprisePersonService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody CrmMaintenanceenterprisePersonDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmMaintenanceenterprisePersonService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmMaintenanceenterprisePersonService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<CrmMaintenanceenterprisePersonDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CrmMaintenanceenterprisePersonDetailsVo vo = crmMaintenanceenterprisePersonService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<List<CrmPersonListVo>> personList(String sid) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
List<CrmPersonListVo> list = crmMaintenanceenterprisePersonService.personList(sid); |
||||
|
return rb.success().setData(list); |
||||
|
} |
||||
|
} |
@ -0,0 +1,120 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson; |
||||
|
|
||||
|
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.crm.api.crmcustomertemp.AsCustomerListVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.*; |
||||
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterprisePersonService.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonService <br/> |
||||
|
* Description: 定点企业备案-对接人员 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class CrmMaintenanceenterprisePersonService extends MybatisBaseService<CrmMaintenanceenterprisePersonMapper, CrmMaintenanceenterprisePerson> { |
||||
|
private QueryWrapper<CrmMaintenanceenterprisePerson> createQueryWrapper(CrmMaintenanceenterprisePersonQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<CrmMaintenanceenterprisePerson> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public void delByBillSid(String sid) { |
||||
|
baseMapper.delByBillSid(sid); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public List<CrmMaintenanceenterprisePerson> selByBillSid(String sid) { |
||||
|
return baseMapper.selByBillSid(sid); |
||||
|
} |
||||
|
|
||||
|
public PagerVo<CrmMaintenanceenterprisePersonVo> listPageVo(PagerQuery<CrmMaintenanceenterprisePersonQuery> pq) { |
||||
|
CrmMaintenanceenterprisePersonQuery query = pq.getParams(); |
||||
|
QueryWrapper<CrmMaintenanceenterprisePerson> qw = createQueryWrapper(query); |
||||
|
IPage<CrmMaintenanceenterprisePerson> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<CrmMaintenanceenterprisePersonVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<CrmMaintenanceenterprisePersonVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(CrmMaintenanceenterprisePersonDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(CrmMaintenanceenterprisePersonDto dto){ |
||||
|
CrmMaintenanceenterprisePerson entity = new CrmMaintenanceenterprisePerson(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(CrmMaintenanceenterprisePersonDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
CrmMaintenanceenterprisePerson entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public CrmMaintenanceenterprisePersonDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
CrmMaintenanceenterprisePerson entity = fetchBySid(sid); |
||||
|
CrmMaintenanceenterprisePersonDetailsVo vo = new CrmMaintenanceenterprisePersonDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public List<CrmPersonListVo> personList(String sid) { |
||||
|
return baseMapper.personList(sid); |
||||
|
} |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
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 com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.PersonListVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecord; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordMapper <br/> |
||||
|
* Description: 定点企业备案. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface CrmMaintenanceenterpriseRecordMapper extends BaseMapper<CrmMaintenanceenterpriseRecord> { |
||||
|
|
||||
|
//@Update("update crm_maintenanceenterprise_record set name=#{msg} where id=#{id}")
|
||||
|
//IPage<CrmMaintenanceenterpriseRecordVo> voPage(IPage<CrmMaintenanceenterpriseRecord> page, @Param(Constants.WRAPPER) QueryWrapper<CrmMaintenanceenterpriseRecord> qw);
|
||||
|
|
||||
|
IPage<CrmMaintenanceenterpriseRecordVo> selectPageVo(IPage<CrmMaintenanceenterpriseRecord> page, @Param(Constants.WRAPPER) Wrapper<CrmMaintenanceenterpriseRecord> qw); |
||||
|
|
||||
|
List<CrmMaintenanceenterpriseRecordVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<CrmMaintenanceenterpriseRecord> qw); |
||||
|
|
||||
|
@Select("select * from crm_maintenanceenterprise_record") |
||||
|
List<CrmMaintenanceenterpriseRecordVo> selectListVo(); |
||||
|
|
||||
|
List<PersonListVo> selPersonList(@Param("sid") String sid); |
||||
|
|
||||
|
int selectNum(String bill); |
||||
|
|
||||
|
int selPersonCount(@Param("customerSid") String customerSid); |
||||
|
|
||||
|
int selectBySid(String join); |
||||
|
} |
@ -0,0 +1,74 @@ |
|||||
|
<?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.crm.biz.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordVo"> |
||||
|
SELECT |
||||
|
* |
||||
|
FROM |
||||
|
( |
||||
|
SELECT |
||||
|
t.customerTypeKey, |
||||
|
r.createBySid, |
||||
|
r.billNo, |
||||
|
date_format ( r.closingDate, '%Y-%m-%d' ) closingDate, |
||||
|
t.mobile, |
||||
|
r.nodeState, |
||||
|
r.procDefId, |
||||
|
r.procInstId, |
||||
|
r.sid, |
||||
|
r.deptName, |
||||
|
r.filingType, |
||||
|
r.useOrgName, |
||||
|
r.createByName, |
||||
|
date_format ( r.createTime, '%Y-%m-%d' ) createTime, |
||||
|
t.`name` customerName, |
||||
|
t.customerType customerTypeValue, |
||||
|
date_format ( r.filingIndate, '%Y-%m-%d' ) filingIndate, |
||||
|
CASE |
||||
|
|
||||
|
WHEN r.filingIndate >= NOW() THEN |
||||
|
'0' |
||||
|
WHEN r.filingIndate < NOW() THEN |
||||
|
'1' ELSE '1' |
||||
|
END AS isFilingIndate, |
||||
|
s.orgSidPath |
||||
|
FROM |
||||
|
crm_maintenanceenterprise_record AS r |
||||
|
LEFT JOIN crm_customer_temp AS t ON r.customerSid = t.sid |
||||
|
LEFT JOIN anrui_portal.sys_organization AS s ON r.deptSid = s.sid |
||||
|
) a |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordVo"> |
||||
|
SELECT * FROM crm_maintenanceenterprise_record <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
<select id="selPersonList" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.PersonListVo"> |
||||
|
select |
||||
|
sid as personSid, |
||||
|
mobile, |
||||
|
`name`, |
||||
|
remarks |
||||
|
from crm_docking_people where customerSid =#{sid} |
||||
|
</select> |
||||
|
<select id="selectNum" resultType="java.lang.Integer"> |
||||
|
select IFNULL(CAST(REPLACE(MAX(billNo), #{bill}, '') AS SIGNED), 0) as code |
||||
|
from crm_maintenanceenterprise_record |
||||
|
where billNo LIKE concat(#{bill}, '%') |
||||
|
</select> |
||||
|
<select id="selPersonCount" resultType="java.lang.Integer"> |
||||
|
select |
||||
|
count(*) |
||||
|
from crm_docking_people where customerSid =#{customerSid} |
||||
|
</select> |
||||
|
<select id="selectBySid" resultType="java.lang.Integer"> |
||||
|
SELECT COUNT(*) |
||||
|
FROM crm_maintenanceenterprise_record |
||||
|
WHERE nodeState != '待提交' |
||||
|
and find_in_set(sid, #{list}) |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,157 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.flowable.*; |
||||
|
import com.yxt.anrui.flowable.api.utils.ProcDefEnum; |
||||
|
import com.yxt.anrui.flowable.sqloperationsymbol.BusinessVariables; |
||||
|
import com.yxt.anrui.riskcenter.api.loanbuckleapply.flow.*; |
||||
|
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; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecord; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordQuery; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordDetailsVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordDto; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordRest <br/> |
||||
|
* Description: 定点企业备案. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业备案") |
||||
|
@RestController("com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordRest") |
||||
|
@RequestMapping("v1/maintenanceEnterprise") |
||||
|
public class CrmMaintenanceenterpriseRecordRest implements CrmMaintenanceenterpriseRecordFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private CrmMaintenanceenterpriseRecordService crmMaintenanceenterpriseRecordService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterpriseRecordVo>> listPage(@RequestBody PagerQuery<CrmMaintenanceenterpriseRecordQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<CrmMaintenanceenterpriseRecordVo> pv = crmMaintenanceenterpriseRecordService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody CrmMaintenanceenterpriseRecordDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmMaintenanceenterpriseRecordService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@DeleteMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
return crmMaintenanceenterpriseRecordService.deleteBySids(sids); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> init(String sid) { |
||||
|
return crmMaintenanceenterpriseRecordService.init(sid); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CrmMaintenanceenterpriseRecordDetailsVo vo = crmMaintenanceenterpriseRecordService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
// @Override
|
||||
|
// public ResultBean submitRecordApplication(SubmitEnterpriseDto dto) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.submitRecordApplication(dto);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean complete(EnterpriseCompleteDto dto) {
|
||||
|
// BusinessVariables bv = new BusinessVariables();
|
||||
|
// BeanUtil.copyProperties(dto, bv);
|
||||
|
// bv.setModelId(ProcDefEnum.ENTERPRISEAPPLY.getProDefId());
|
||||
|
// return crmMaintenanceenterpriseRecordService.complete(bv);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean revokeProcess(EnterpriseTaskQuery query) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.revokeProcess(query);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean taskReject(EnterpriseTaskQuery query) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.taskReject(query);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean breakProcess(EnterpriseTaskQuery query) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.breakProcess(query);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean flowRecord(String procInsId) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.flowRecord(procInsId);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean<List<EnterpriseNodeVo>> getNextNodesForSubmit(EnterpriseNodeQuery query) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.getNextNodesForSubmit(query);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean<List<EnterpriseNodeVo>> getPreviousNodesForReject(EnterpriseNodeQuery query) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.getPreviousNodesForReject(query);
|
||||
|
// }
|
||||
|
//
|
||||
|
// @Override
|
||||
|
// public ResultBean delegate(EnterpriseDelegateQuery query) {
|
||||
|
// return crmMaintenanceenterpriseRecordService.delegate(query);
|
||||
|
// }
|
||||
|
} |
@ -0,0 +1,484 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import cn.hutool.core.date.DateUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.anrui.base.common.enums.BillTypeEnum; |
||||
|
import com.yxt.anrui.base.common.utils.Rule; |
||||
|
import com.yxt.anrui.base.common.utils.domain.BillNo; |
||||
|
import com.yxt.anrui.crm.api.crmcustomertemp.AsCustomerListVo; |
||||
|
import com.yxt.anrui.crm.api.crmcustomertemp.CrmCustomerTemp; |
||||
|
import com.yxt.anrui.crm.api.crmfile.CrmFile; |
||||
|
import com.yxt.anrui.crm.api.crmfile.CrmFileDetailsVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePerson; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.*; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVeh; |
||||
|
import com.yxt.anrui.crm.biz.crmcustomertemp.CrmCustomerTempService; |
||||
|
import com.yxt.anrui.crm.biz.crmfile.CrmFileService; |
||||
|
import com.yxt.anrui.crm.biz.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonService; |
||||
|
import com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehService; |
||||
|
import com.yxt.anrui.crm.fegin.as.AsCustomerVehicleFeign; |
||||
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationFeign; |
||||
|
import com.yxt.anrui.portal.api.sysorganization.SysOrganizationVo; |
||||
|
import com.yxt.anrui.portal.api.sysuser.PrivilegeQuery; |
||||
|
import com.yxt.anrui.portal.api.sysuser.SysUserFeign; |
||||
|
import com.yxt.common.base.config.component.FileUploadComponent; |
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
|
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.time.LocalDateTime; |
||||
|
import java.time.format.DateTimeFormatter; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseRecordService.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriserecord.CrmMaintenanceenterpriseRecordService <br/> |
||||
|
* Description: 定点企业备案 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class CrmMaintenanceenterpriseRecordService extends MybatisBaseService<CrmMaintenanceenterpriseRecordMapper, CrmMaintenanceenterpriseRecord> { |
||||
|
|
||||
|
@Autowired |
||||
|
private CrmFileService crmFileService; |
||||
|
@Autowired |
||||
|
private FileUploadComponent fileUploadComponent; |
||||
|
@Autowired |
||||
|
private CrmMaintenanceenterprisePersonService crmMaintenanceenterprisePersonService; |
||||
|
@Autowired |
||||
|
private CrmMaintenanceenterpriseVehService crmMaintenanceenterpriseVehService; |
||||
|
@Autowired |
||||
|
private SysOrganizationFeign sysOrganizationFeign; |
||||
|
@Resource |
||||
|
private AsCustomerVehicleFeign asCustomerVehicleFeign; |
||||
|
@Autowired |
||||
|
private SysUserFeign sysUserFeign; |
||||
|
@Autowired |
||||
|
private CrmCustomerTempService crmCustomerTempService; |
||||
|
|
||||
|
|
||||
|
private QueryWrapper<CrmMaintenanceenterpriseRecord> createQueryWrapper(CrmMaintenanceenterpriseRecordQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<CrmMaintenanceenterpriseRecord> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public PagerVo<CrmMaintenanceenterpriseRecordVo> listPageVo(PagerQuery<CrmMaintenanceenterpriseRecordQuery> pq) { |
||||
|
CrmMaintenanceenterpriseRecordQuery query = pq.getParams(); |
||||
|
QueryWrapper<CrmMaintenanceenterpriseRecord> qw = new QueryWrapper<>(); |
||||
|
PrivilegeQuery privilegeQuery = new PrivilegeQuery(); |
||||
|
privilegeQuery.setOrgPath(query.getOrgPath()); |
||||
|
privilegeQuery.setMenuUrl(query.getMenuUrl()); |
||||
|
privilegeQuery.setUserSid(query.getUserSid()); |
||||
|
ResultBean<String> defaultIdReltBean = sysUserFeign.selectPrivilegeLevel(privilegeQuery); |
||||
|
if (StringUtils.isNotBlank(query.getMenuUrl())) { |
||||
|
if (StringUtils.isNotBlank(defaultIdReltBean.getData())) { |
||||
|
//数据权限ID(1集团、2事业部、3分公司、4部门、5个人)
|
||||
|
String orgSidPath = query.getOrgPath(); |
||||
|
orgSidPath = orgSidPath + "/"; |
||||
|
int i1 = orgSidPath.indexOf("/"); |
||||
|
int i2 = orgSidPath.indexOf("/", i1 + 1); |
||||
|
int i3 = orgSidPath.indexOf("/", i2 + 1); |
||||
|
int i4 = orgSidPath.indexOf("/", i3 + 1); |
||||
|
String orgLevelKey = defaultIdReltBean.getData(); |
||||
|
if ("1".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i1); |
||||
|
qw.like("a.orgSidPath", orgSidPath); |
||||
|
} else if ("2".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i2); |
||||
|
qw.like("a.orgSidPath", orgSidPath); |
||||
|
} else if ("3".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i3); |
||||
|
qw.like("a.orgSidPath", orgSidPath); |
||||
|
} else if ("4".equals(orgLevelKey)) { |
||||
|
orgSidPath = orgSidPath.substring(0, i4); |
||||
|
qw.like("a.orgSidPath", orgSidPath); |
||||
|
} else if ("5".equals(orgLevelKey)) { |
||||
|
qw.eq("a.createBySid", query.getUserSid()); |
||||
|
} else { |
||||
|
PagerVo<CrmMaintenanceenterpriseRecordVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} else { |
||||
|
PagerVo<CrmMaintenanceenterpriseRecordVo> p = new PagerVo<>(); |
||||
|
return p; |
||||
|
} |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getState())) { |
||||
|
qw.eq("a.isFilingIndate", query.getState()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCustomerTypeKey())) { |
||||
|
qw.eq("a.customerTypeKey", query.getCustomerTypeKey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getMobile())) { |
||||
|
qw.like("a.mobile", query.getMobile()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getBillNo())) { |
||||
|
qw.like("a.billNo", query.getBillNo()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCreateByName())) { |
||||
|
qw.like("a.createByName", query.getCreateByName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCreateOrgName())) { |
||||
|
qw.like("a.useOrgName", query.getCreateOrgName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getDeptName())) { |
||||
|
qw.like("a.deptName", query.getDeptName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(query.getCustomerName())) { |
||||
|
qw.like("a.customerName", query.getCustomerName()); |
||||
|
} |
||||
|
String createStartTime = query.getCreateStartTime(); |
||||
|
String createEndTime = query.getCreateEndTime(); |
||||
|
qw.apply(StringUtils.isNotBlank(createStartTime), "date_format (a.createTime,'%Y-%m-%d') >= date_format('" + createStartTime + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotBlank(createEndTime), "date_format (a.createTime,'%Y-%m-%d') <= date_format('" + createEndTime + "','%Y-%m-%d')" |
||||
|
); |
||||
|
String closingDateStart = query.getClosingDateStart(); |
||||
|
String closingDateEnd = query.getClosingDateEnd(); |
||||
|
qw.apply(StringUtils.isNotBlank(closingDateStart), "date_format (a.closingDate,'%Y-%m-%d') >= date_format('" + closingDateStart + "','%Y-%m-%d')"). |
||||
|
apply(StringUtils.isNotBlank(closingDateEnd), "date_format (a.closingDate,'%Y-%m-%d') <= date_format('" + closingDateEnd + "','%Y-%m-%d')" |
||||
|
); |
||||
|
qw.orderBy(true, false, "a.createTime") |
||||
|
.orderBy(true, false, "a.filingIndate") |
||||
|
; |
||||
|
IPage<CrmMaintenanceenterpriseRecord> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<CrmMaintenanceenterpriseRecordVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<CrmMaintenanceenterpriseRecordVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public String saveOrUpdateDto(CrmMaintenanceenterpriseRecordDto dto) { |
||||
|
String sid = ""; |
||||
|
if (StringUtils.isNotBlank(dto.getSid())) { |
||||
|
sid = dto.getSid(); |
||||
|
crmMaintenanceenterprisePersonService.delByBillSid(sid); |
||||
|
crmMaintenanceenterpriseVehService.delByBillSid(sid); |
||||
|
crmFileService.deleteByLinkSidAndAttachType(sid, "2"); |
||||
|
CrmMaintenanceenterpriseRecord entity = fetchBySid(sid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} else { |
||||
|
CrmMaintenanceenterpriseRecord entity = new CrmMaintenanceenterpriseRecord(); |
||||
|
sid = entity.getSid(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
entity.setNodeState("待提交"); |
||||
|
String applyCode = getApplyCode(dto.getCreateOrgSid()); |
||||
|
entity.setBillNo(applyCode); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
if (!dto.getCarList().isEmpty()) { |
||||
|
List<CarListVo> carList = dto.getCarList(); |
||||
|
for (CarListVo carListVo : carList) { |
||||
|
CrmMaintenanceenterpriseVeh veh = new CrmMaintenanceenterpriseVeh(); |
||||
|
BeanUtil.copyProperties(carListVo, veh, "id", "sid"); |
||||
|
veh.setBillSid(sid); |
||||
|
crmMaintenanceenterpriseVehService.insert(veh); |
||||
|
} |
||||
|
} |
||||
|
if (!dto.getContactPerson().isEmpty()) { |
||||
|
List<PersonListVo> personListVos = dto.getContactPerson(); |
||||
|
for (PersonListVo personListVo : personListVos) { |
||||
|
CrmMaintenanceenterprisePerson person = new CrmMaintenanceenterprisePerson(); |
||||
|
BeanUtil.copyProperties(personListVo, person, "id", "sid"); |
||||
|
person.setBillSid(sid); |
||||
|
crmMaintenanceenterprisePersonService.insert(person); |
||||
|
} |
||||
|
} |
||||
|
if (!dto.getFiles().isEmpty()) { |
||||
|
List<FileQueryUrl> files = dto.getFiles(); |
||||
|
for (FileQueryUrl url : files) { |
||||
|
String file = url.getUrl(); |
||||
|
if (file.contains(fileUploadComponent.getUrlPrefix())) { |
||||
|
file = file.replace(fileUploadComponent.getUrlPrefix(), ""); |
||||
|
} |
||||
|
CrmFile crmFile = new CrmFile(); |
||||
|
crmFile.setFilePath(file); |
||||
|
crmFile.setLinkSid(sid); |
||||
|
crmFile.setCreateBySid(dto.getCreateBySid()); |
||||
|
crmFile.setCreateTime(new Date()); |
||||
|
crmFile.setName(dto.getCreateByName()); |
||||
|
crmFile.setAttachType("2"); |
||||
|
crmFileService.save(crmFile); |
||||
|
} |
||||
|
} |
||||
|
return sid; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 生成申请单单据编号 |
||||
|
* |
||||
|
* @param orgSid |
||||
|
* @return |
||||
|
*/ |
||||
|
public String getApplyCode(String orgSid) { |
||||
|
//获取分公司sid
|
||||
|
ResultBean<SysOrganizationVo> resultBean1 = sysOrganizationFeign.fetchBySid(orgSid); |
||||
|
String orgCode = resultBean1.getData().getOrgCode(); |
||||
|
BillNo b = new BillNo(); |
||||
|
b.setOrgCode(orgCode); |
||||
|
b.setBillType(BillTypeEnum.DDQYBA.getBillType()); |
||||
|
String bill = Rule.getBill(b); |
||||
|
int i = baseMapper.selectNum(bill); |
||||
|
String billNo = Rule.getBillNo(bill, i); |
||||
|
return billNo; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public void insertByDto(CrmMaintenanceenterpriseRecordDto dto) { |
||||
|
CrmMaintenanceenterpriseRecord entity = new CrmMaintenanceenterpriseRecord(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(CrmMaintenanceenterpriseRecordDto dto) { |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
CrmMaintenanceenterpriseRecord entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public CrmMaintenanceenterpriseRecordDetailsVo fetchDetailsVoBySid(String sid) { |
||||
|
CrmMaintenanceenterpriseRecordDetailsVo vo = new CrmMaintenanceenterpriseRecordDetailsVo(); |
||||
|
CrmMaintenanceenterpriseRecord entity = fetchBySid(sid); |
||||
|
List<PersonListVo> contactPerson = new ArrayList<>(); |
||||
|
List<CarListVo> carListVos = new ArrayList<>(); |
||||
|
List<FileQueryUrl> files = new ArrayList<>(); |
||||
|
if (null != entity) { |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
if (StringUtils.isNotBlank(entity.getProcInstId())) { |
||||
|
vo.setInstanceId(entity.getProcInstId()); |
||||
|
} |
||||
|
vo.setCreateTime(DateUtil.formatDate(entity.getCreateTime())); |
||||
|
if (null != entity.getFilingIndate()) { |
||||
|
vo.setFilingIndate(DateUtil.formatDate(entity.getFilingIndate())); |
||||
|
} |
||||
|
CrmCustomerTemp customerTemp = crmCustomerTempService.fetchBySid(entity.getCustomerSid()); |
||||
|
if (null != customerTemp) { |
||||
|
if (StringUtils.isNotBlank(customerTemp.getAddress())) { |
||||
|
vo.setAddress(customerTemp.getAddress()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCertificateType())) { |
||||
|
vo.setCertificateType(customerTemp.getCertificateType()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCertificateTypeKey())) { |
||||
|
vo.setCertificateTypeKey(customerTemp.getCertificateTypeKey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCity())) { |
||||
|
vo.setCity(customerTemp.getCity()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCounty())) { |
||||
|
vo.setCounty(customerTemp.getCounty()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getName())) { |
||||
|
vo.setCustomerName(customerTemp.getName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCustomerType())) { |
||||
|
vo.setCustomerType(customerTemp.getCustomerType()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCustomerTypeKey())) { |
||||
|
vo.setCustomerTypeKey(customerTemp.getCustomerTypeKey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getE_mail())) { |
||||
|
vo.setE_mail(customerTemp.getE_mail()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getEmergencyContact())) { |
||||
|
vo.setEmergencyContact(customerTemp.getEmergencyContact()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getEmergencyMobile())) { |
||||
|
vo.setEmergencyMobile(customerTemp.getEmergencyMobile()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getEndDate())) { |
||||
|
vo.setEndDate(customerTemp.getEndDate()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getMobile())) { |
||||
|
vo.setMobile(customerTemp.getMobile()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getProvince())) { |
||||
|
vo.setProvince(customerTemp.getProvince()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getIDNumber())) { |
||||
|
vo.setIdnumber(customerTemp.getIDNumber()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getWeixin())) { |
||||
|
vo.setWeixin(customerTemp.getWeixin()); |
||||
|
} |
||||
|
} |
||||
|
List<CrmMaintenanceenterprisePerson> personList = crmMaintenanceenterprisePersonService.selByBillSid(sid); |
||||
|
if (!personList.isEmpty()) { |
||||
|
for (CrmMaintenanceenterprisePerson person : personList) { |
||||
|
PersonListVo personListVo = new PersonListVo(); |
||||
|
BeanUtil.copyProperties(person, personListVo); |
||||
|
contactPerson.add(personListVo); |
||||
|
} |
||||
|
vo.setContactPerson(contactPerson); |
||||
|
} |
||||
|
List<CrmMaintenanceenterpriseVeh> vehList = crmMaintenanceenterpriseVehService.selByBillSid(sid); |
||||
|
if (!vehList.isEmpty()) { |
||||
|
for (CrmMaintenanceenterpriseVeh veh : vehList) { |
||||
|
CarListVo carListVo = new CarListVo(); |
||||
|
BeanUtil.copyProperties(veh, carListVo); |
||||
|
if (null != veh.getBuyDate()) { |
||||
|
carListVo.setBuyDate(DateUtil.formatDate(veh.getBuyDate())); |
||||
|
} |
||||
|
carListVos.add(carListVo); |
||||
|
} |
||||
|
vo.setCarList(carListVos); |
||||
|
} |
||||
|
int personCount = baseMapper.selPersonCount(entity.getCustomerSid()); |
||||
|
int vehCount = asCustomerVehicleFeign.getVehListCountsByCustomerSid(entity.getCustomerSid()); |
||||
|
vo.setReadyStrength(String.valueOf(personCount)); |
||||
|
vo.setReadyVehicle(String.valueOf(vehCount)); |
||||
|
List<CrmFileDetailsVo> crmFileDetailsVos = crmFileService.fetchByLinkSid(sid); |
||||
|
if (crmFileDetailsVos != null) { |
||||
|
for (CrmFileDetailsVo crmFileDetailsVo : crmFileDetailsVos) { |
||||
|
FileQueryUrl url = new FileQueryUrl(); |
||||
|
String filePath = crmFileDetailsVo.getFilePath(); |
||||
|
url.setUrl(fileUploadComponent.getUrlPrefix() + filePath); |
||||
|
files.add(url); |
||||
|
} |
||||
|
vo.setFiles(files); |
||||
|
} |
||||
|
} |
||||
|
return vo; |
||||
|
} |
||||
|
|
||||
|
public ResultBean<CrmMaintenanceenterpriseRecordDetailsVo> init(String sid) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CrmMaintenanceenterpriseRecordDetailsVo vo = new CrmMaintenanceenterpriseRecordDetailsVo(); |
||||
|
CrmCustomerTemp customerTemp = crmCustomerTempService.fetchBySid(sid); |
||||
|
if (null != customerTemp) { |
||||
|
if (StringUtils.isNotBlank(customerTemp.getAddress())) { |
||||
|
vo.setAddress(customerTemp.getAddress()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCertificateType())) { |
||||
|
vo.setCertificateType(customerTemp.getCertificateType()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCertificateTypeKey())) { |
||||
|
vo.setCertificateTypeKey(customerTemp.getCertificateTypeKey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCity())) { |
||||
|
vo.setCity(customerTemp.getCity()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCounty())) { |
||||
|
vo.setCounty(customerTemp.getCounty()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getName())) { |
||||
|
vo.setCustomerName(customerTemp.getName()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCustomerType())) { |
||||
|
vo.setCustomerType(customerTemp.getCustomerType()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getCustomerTypeKey())) { |
||||
|
vo.setCustomerTypeKey(customerTemp.getCustomerTypeKey()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getE_mail())) { |
||||
|
vo.setE_mail(customerTemp.getE_mail()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getEmergencyContact())) { |
||||
|
vo.setEmergencyContact(customerTemp.getEmergencyContact()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getEmergencyMobile())) { |
||||
|
vo.setEmergencyMobile(customerTemp.getEmergencyMobile()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getEndDate())) { |
||||
|
vo.setEndDate(customerTemp.getEndDate()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getMobile())) { |
||||
|
vo.setMobile(customerTemp.getMobile()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getProvince())) { |
||||
|
vo.setProvince(customerTemp.getProvince()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getIDNumber())) { |
||||
|
vo.setIdnumber(customerTemp.getIDNumber()); |
||||
|
} |
||||
|
if (StringUtils.isNotBlank(customerTemp.getWeixin())) { |
||||
|
vo.setWeixin(customerTemp.getWeixin()); |
||||
|
} |
||||
|
//获取当前日期
|
||||
|
LocalDateTime now = LocalDateTime.now(); |
||||
|
//加一年
|
||||
|
LocalDateTime afterOneYear = now.plusYears(1); |
||||
|
//格式化输出
|
||||
|
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
||||
|
vo.setFilingIndate(afterOneYear.format(formatter)); |
||||
|
vo.setCustomerSid(sid); |
||||
|
vo.setReadyStrength(""); |
||||
|
vo.setReadyVehicle(""); |
||||
|
vo.setFilingType("首次"); |
||||
|
List<PersonListVo> contactPerson = baseMapper.selPersonList(customerTemp.getSid()); |
||||
|
if (!contactPerson.isEmpty()) { |
||||
|
vo.setContactPerson(contactPerson); |
||||
|
} |
||||
|
List<CarListVo> carListVos = asCustomerVehicleFeign.getVehListByCustomerSid(customerTemp.getSid()).getData(); |
||||
|
if (!carListVos.isEmpty()) { |
||||
|
vo.setCarList(carListVos); |
||||
|
} |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
|
||||
|
public ResultBean deleteBySids(String[] sids) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
//查询该sid中是否有流程不是待提交的
|
||||
|
int count = baseMapper.selectBySid(StringUtils.join(sids, ",")); |
||||
|
if (count > 0) { |
||||
|
return rb.setMsg("删除的数据中包含已提交或已办结审批的数据,删除失败"); |
||||
|
} |
||||
|
delBySids(sids); |
||||
|
for (String sid : sids) { |
||||
|
crmMaintenanceenterprisePersonService.delByBillSid(sid); |
||||
|
crmMaintenanceenterpriseVehService.delByBillSid(sid); |
||||
|
crmFileService.deleteByLinkSidAndAttachType(sid, "2"); |
||||
|
} |
||||
|
return rb.success(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,71 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
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.Delete; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
import org.apache.ibatis.annotations.Select; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVeh; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehMapper.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehMapper <br/> |
||||
|
* Description: 定点企业备案-车辆信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface CrmMaintenanceenterpriseVehMapper extends BaseMapper<CrmMaintenanceenterpriseVeh> { |
||||
|
|
||||
|
//@Update("update crm_maintenanceenterprise_veh set name=#{msg} where id=#{id}")
|
||||
|
//IPage<CrmMaintenanceenterpriseVehVo> voPage(IPage<CrmMaintenanceenterpriseVeh> page, @Param(Constants.WRAPPER) QueryWrapper<CrmMaintenanceenterpriseVeh> qw);
|
||||
|
|
||||
|
IPage<CrmMaintenanceenterpriseVehVo> selectPageVo(IPage<CrmMaintenanceenterpriseVeh> page, @Param(Constants.WRAPPER) Wrapper<CrmMaintenanceenterpriseVeh> qw); |
||||
|
|
||||
|
List<CrmMaintenanceenterpriseVehVo> selectListAllVo(@Param(Constants.WRAPPER) Wrapper<CrmMaintenanceenterpriseVeh> qw); |
||||
|
|
||||
|
@Select("select * from crm_maintenanceenterprise_veh") |
||||
|
List<CrmMaintenanceenterpriseVehVo> selectListVo(); |
||||
|
|
||||
|
@Delete("delete from crm_maintenanceenterprise_veh where billSid = #{sid}") |
||||
|
void delByBillSid(String sid); |
||||
|
@Select("select * from crm_maintenanceenterprise_veh where billSid = #{sid} ") |
||||
|
List<CrmMaintenanceenterpriseVeh> selByBillSid(String sid); |
||||
|
} |
@ -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.crm.biz.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo"> |
||||
|
SELECT * FROM crm_maintenanceenterprise_veh <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo"> |
||||
|
SELECT * FROM crm_maintenanceenterprise_veh <where> ${ew.sqlSegment} </where> |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,100 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
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; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVeh; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehQuery; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehDetailsVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehDto; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehFeign; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehRest <br/> |
||||
|
* Description: 定点企业备案-车辆信息. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "定点企业备案-车辆信息") |
||||
|
@RestController("com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehRest") |
||||
|
@RequestMapping("v1/crmmaintenanceenterpriseveh") |
||||
|
public class CrmMaintenanceenterpriseVehRest implements CrmMaintenanceenterpriseVehFeign { |
||||
|
|
||||
|
@Autowired |
||||
|
private CrmMaintenanceenterpriseVehService crmMaintenanceenterpriseVehService; |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<CrmMaintenanceenterpriseVehVo>> listPage(@RequestBody PagerQuery<CrmMaintenanceenterpriseVehQuery> pq){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<CrmMaintenanceenterpriseVehVo> pv = crmMaintenanceenterpriseVehService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("新增或修改") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody CrmMaintenanceenterpriseVehDto dto){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmMaintenanceenterpriseVehService.saveOrUpdateDto(dto); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据sid批量删除") |
||||
|
@PostMapping("/delBySids") |
||||
|
public ResultBean delBySids(@RequestBody String[] sids){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
crmMaintenanceenterpriseVehService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
@ApiOperation("根据SID获取一条记录") |
||||
|
@GetMapping("/fetchDetailsBySid/{sid}") |
||||
|
public ResultBean<CrmMaintenanceenterpriseVehDetailsVo> fetchDetailsBySid(@PathVariable("sid") String sid){ |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
CrmMaintenanceenterpriseVehDetailsVo vo = crmMaintenanceenterpriseVehService.fetchDetailsVoBySid(sid); |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
} |
@ -0,0 +1,120 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh; |
||||
|
|
||||
|
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.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePerson; |
||||
|
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.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVeh; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehQuery; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehDetailsVo; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehDto; |
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehFeign; |
||||
|
|
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: crm(crm) <br/> |
||||
|
* File: CrmMaintenanceenterpriseVehService.java <br/> |
||||
|
* Class: com.yxt.anrui.crm.biz.crmmaintenanceenterpriseveh.CrmMaintenanceenterpriseVehService <br/> |
||||
|
* Description: 定点企业备案-车辆信息 业务逻辑. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2024-07-22 13:49:30 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class CrmMaintenanceenterpriseVehService extends MybatisBaseService<CrmMaintenanceenterpriseVehMapper, CrmMaintenanceenterpriseVeh> { |
||||
|
private QueryWrapper<CrmMaintenanceenterpriseVeh> createQueryWrapper(CrmMaintenanceenterpriseVehQuery query) { |
||||
|
// todo: 这里根据具体业务调整查询条件
|
||||
|
// 多字段Like示例:qw.and(wrapper -> wrapper.like("name", query.getName()).or().like("remark", query.getName()));
|
||||
|
QueryWrapper<CrmMaintenanceenterpriseVeh> qw = new QueryWrapper<>(); |
||||
|
return qw; |
||||
|
} |
||||
|
|
||||
|
public void delByBillSid(String sid) { |
||||
|
baseMapper.delByBillSid(sid); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public List<CrmMaintenanceenterpriseVeh> selByBillSid(String sid) { |
||||
|
return baseMapper.selByBillSid(sid); |
||||
|
} |
||||
|
|
||||
|
public PagerVo<CrmMaintenanceenterpriseVehVo> listPageVo(PagerQuery<CrmMaintenanceenterpriseVehQuery> pq) { |
||||
|
CrmMaintenanceenterpriseVehQuery query = pq.getParams(); |
||||
|
QueryWrapper<CrmMaintenanceenterpriseVeh> qw = createQueryWrapper(query); |
||||
|
IPage<CrmMaintenanceenterpriseVeh> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<CrmMaintenanceenterpriseVehVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<CrmMaintenanceenterpriseVehVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
public void saveOrUpdateDto(CrmMaintenanceenterpriseVehDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
this.insertByDto(dto); |
||||
|
return; |
||||
|
} |
||||
|
this.updateByDto(dto); |
||||
|
} |
||||
|
|
||||
|
public void insertByDto(CrmMaintenanceenterpriseVehDto dto){ |
||||
|
CrmMaintenanceenterpriseVeh entity = new CrmMaintenanceenterpriseVeh(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
} |
||||
|
|
||||
|
public void updateByDto(CrmMaintenanceenterpriseVehDto dto){ |
||||
|
String dtoSid = dto.getSid(); |
||||
|
if (StringUtils.isBlank(dtoSid)) { |
||||
|
return; |
||||
|
} |
||||
|
CrmMaintenanceenterpriseVeh entity = fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
} |
||||
|
|
||||
|
public CrmMaintenanceenterpriseVehDetailsVo fetchDetailsVoBySid(String sid){ |
||||
|
CrmMaintenanceenterpriseVeh entity = fetchBySid(sid); |
||||
|
CrmMaintenanceenterpriseVehDetailsVo vo = new CrmMaintenanceenterpriseVehDetailsVo(); |
||||
|
BeanUtil.copyProperties(entity, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.yxt.anrui.crm.fegin.as; |
||||
|
|
||||
|
import com.yxt.anrui.crm.api.crmmaintenanceenterpriserecord.CarListVo; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: 客户车辆信息 |
||||
|
* @author: fzz |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "yxt-as-AsCustomerVehicle", |
||||
|
name = "yxt-as", |
||||
|
path = "v1/ascustomervehicle" |
||||
|
) |
||||
|
public interface AsCustomerVehicleFeign { |
||||
|
@ApiOperation("根据客户sid查询车辆") |
||||
|
@GetMapping("/getVehListByCustomerSid") |
||||
|
public ResultBean<List<CarListVo>> getVehListByCustomerSid(@RequestParam("customerSid") String customerSid); |
||||
|
|
||||
|
|
||||
|
@ApiOperation("根据客户sid查询车辆数量") |
||||
|
@GetMapping("/getVehListCountsByCustomerSid") |
||||
|
public int getVehListCountsByCustomerSid(@RequestParam("customerSid") String customerSid); |
||||
|
} |
@ -0,0 +1,367 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div v-show="viewState == 1"> |
||||
|
<div class="tab-header webtop"> |
||||
|
<div>编辑盘库报告</div> |
||||
|
<div> |
||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> |
||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button> |
||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="downLoadPDF()">下载pdf</el-button> |
||||
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="listconadd"> |
||||
|
<el-form ref="form_obj" :model="formobj" class="formaddcopy02"> |
||||
|
|
||||
|
<el-row class="first_row"> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">发起人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">发起部门</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.deptName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">发起日期</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-row> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">盘点人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">监盘人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.finances }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">备注</div> |
||||
|
<el-form-item><el-input v-model="formobj.remarks" placeholder="" class="addinputw addinputInfo" |
||||
|
clearable /></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
<div class="title titleOne"> |
||||
|
<div>总体盘点情况</div> |
||||
|
<el-button type="primary" size="mini" class="btntopblueline" @click="downLoadDetail()">明细下载</el-button> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: flex;flex-direction: row;align-items: center; |
||||
|
border: 1px solid #E0E3EB;line-height: 30px;padding: 5px 10px;"> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 应盘数量:</span> |
||||
|
<span> {{formobj.ypNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 应盘金额:</span> |
||||
|
<span> {{formobj.ypMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 实盘数量:</span> |
||||
|
<span> {{formobj.spNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 实盘金额:</span> |
||||
|
<span> {{formobj.spMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘盈数量:</span> |
||||
|
<span> {{formobj.pyNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘盈金额:</span> |
||||
|
<span> {{formobj.pyMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘亏数量:</span> |
||||
|
<span> {{formobj.pkNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘亏金额:</span> |
||||
|
<span> {{formobj.pkMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘损数量:</span> |
||||
|
<span> {{formobj.psNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘损金额:</span> |
||||
|
<span> {{formobj.psMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="title titleOne"> |
||||
|
<div>仓库盘点情况</div> |
||||
|
</div> |
||||
|
<el-table :data="formobj.warehouseStocktakList" :index="index" border style="width: 100%;"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> |
||||
|
<el-table-column prop="warehouseName" label="仓库" width="200" align="center" /> |
||||
|
<el-table-column prop="ypNum" label="应盘" align="center" /> |
||||
|
<el-table-column prop="ypMoney" label="应盘金额" align="center" /> |
||||
|
<el-table-column prop="spNum" label="实盘" align="center" /> |
||||
|
<el-table-column prop="spMoney" label="实盘金额" align="center" /> |
||||
|
<el-table-column prop="pyNum" label="盘盈" align="center" /> |
||||
|
<el-table-column prop="pyMoney" label="盘盈金额" align="center" /> |
||||
|
<el-table-column prop="pkNum" label="盘亏" align="center" /> |
||||
|
<el-table-column prop="pkMoney" label="盘亏金额" align="center" /> |
||||
|
<el-table-column prop="psNum" label="盘损" align="center" /> |
||||
|
<el-table-column prop="psMoney" label="盘损金额" align="center" /> |
||||
|
</el-table> |
||||
|
|
||||
|
<div class="title titleOne"> |
||||
|
<div>库区盘点情况</div> |
||||
|
</div> |
||||
|
<el-table :data="formobj.arehouseAreaeStocktakList" :index="index" border style="width: 100%;"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> |
||||
|
<el-table-column prop="warehouseAreaeName" label="仓库-库区" width="200" align="center" /> |
||||
|
<el-table-column prop="ypNum" label="应盘" align="center" /> |
||||
|
<el-table-column prop="ypMoney" label="应盘金额" align="center" /> |
||||
|
<el-table-column prop="spNum" label="实盘" align="center" /> |
||||
|
<el-table-column prop="spMoney" label="实盘金额" align="center" /> |
||||
|
<el-table-column prop="pyNum" label="盘盈" align="center" /> |
||||
|
<el-table-column prop="pyMoney" label="盘盈金额" align="center" /> |
||||
|
<el-table-column prop="pkNum" label="盘亏" align="center" /> |
||||
|
<el-table-column prop="pkMoney" label="盘亏金额" align="center" /> |
||||
|
<el-table-column prop="psNum" label="盘损" align="center" /> |
||||
|
<el-table-column prop="psMoney" label="盘损金额" align="center" /> |
||||
|
</el-table> |
||||
|
|
||||
|
</el-form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/storage/stocktaking.js' |
||||
|
import { |
||||
|
getCurrentDate |
||||
|
} from '@/utils/index.js' |
||||
|
import { |
||||
|
getOrgSidByPath, |
||||
|
} from '@/api/Common/dictcommons' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
viewState: 1, |
||||
|
submitdisabled: false, |
||||
|
index: 0, |
||||
|
|
||||
|
formobj: { |
||||
|
"createByName": window.sessionStorage.getItem('name'), |
||||
|
"createBySid": window.sessionStorage.getItem('userSid'), |
||||
|
"deptName": window.sessionStorage.getItem('defaultOrgPathName').substring(window |
||||
|
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1), |
||||
|
"deptSid": window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
||||
|
.getItem('defaultOrgPath').lastIndexOf('/') + 1), |
||||
|
"createTime": getCurrentDate(), |
||||
|
"createName": "", |
||||
|
"finances": "", |
||||
|
"remarks": "", |
||||
|
"ypNum": "", |
||||
|
"ypMoney": "", |
||||
|
"spNum": "", |
||||
|
"spMoney": "", |
||||
|
"pyNum": "", |
||||
|
"pyMoney": "", |
||||
|
"pkNum": "", |
||||
|
"pkMoney": "", |
||||
|
"psNum": "", |
||||
|
"psMoney": "", |
||||
|
"warehouseStocktakList": [], |
||||
|
"arehouseAreaeStocktakList": [], |
||||
|
"useOrgSid": '', |
||||
|
"createOrgSid": '', |
||||
|
|
||||
|
}, |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
created() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
init() { |
||||
|
getOrgSidByPath({ |
||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath') |
||||
|
}).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.formobj.createOrgSid = res.data |
||||
|
this.formobj.useOrgSid = res.data |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
showEdit(row) { |
||||
|
|
||||
|
req.init(row.sid).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.formobj = res.data |
||||
|
|
||||
|
this.formobj.createByName = window.sessionStorage.getItem('name') |
||||
|
this.formobj.createBySid = window.sessionStorage.getItem('userSid') |
||||
|
this.formobj.deptName = window.sessionStorage.getItem('defaultOrgPathName').substring(window |
||||
|
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) |
||||
|
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage |
||||
|
.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
||||
|
this.formobj.createTime = getCurrentDate() |
||||
|
this.init() |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
saveOrUpdate() { |
||||
|
this.submitdisabled = true |
||||
|
req.saveReport(this.formobj).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.$message({ |
||||
|
showClose: true, |
||||
|
type: 'success', |
||||
|
message: '保存成功' |
||||
|
}) |
||||
|
this.handleReturn('true') |
||||
|
} else { |
||||
|
this.submitdisabled = false |
||||
|
} |
||||
|
}).catch(() => { |
||||
|
this.submitdisabled = false |
||||
|
}) |
||||
|
}, |
||||
|
submit() { |
||||
|
|
||||
|
req.submitReport(this.formobj).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.$message({ |
||||
|
showClose: true, |
||||
|
type: 'success', |
||||
|
message: '操作成功' |
||||
|
}) |
||||
|
this.handleReturn('true') |
||||
|
} else { |
||||
|
this.submitdisabled = false |
||||
|
} |
||||
|
}).catch(() => { |
||||
|
this.submitdisabled = false |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
handleReturn(isreload) { |
||||
|
if (isreload === 'true') this.$emit('reloadlist') |
||||
|
this.formobj = {} |
||||
|
this.submitdisabled = false |
||||
|
this.$emit('doback') |
||||
|
}, |
||||
|
downLoadPDF() { |
||||
|
|
||||
|
const loading = this.$loading({ |
||||
|
lock: true, |
||||
|
text: 'Loading', |
||||
|
spinner: 'el-icon-loading', |
||||
|
background: 'rgba(0, 0, 0, 0.7)' |
||||
|
}) |
||||
|
req.downloadPDF().then((resp) => { |
||||
|
loading.close() |
||||
|
const blob = new Blob([resp], { |
||||
|
type: 'application/vnd.ms-excel' |
||||
|
}) |
||||
|
const fileName = '盘库报告' + '.pdf' |
||||
|
const elink = document.createElement('a') |
||||
|
elink.download = fileName |
||||
|
elink.style.display = 'nonde' |
||||
|
elink.href = URL.createObjectURL(blob) |
||||
|
document.body.appendChild(elink) |
||||
|
elink.click() |
||||
|
URL.revokeObjectURL(elink.href) |
||||
|
document.body.removeChild(elink) |
||||
|
}).catch(() => { |
||||
|
loading.close() |
||||
|
}) |
||||
|
|
||||
|
}, |
||||
|
downLoadDetail() { |
||||
|
|
||||
|
const loading = this.$loading({ |
||||
|
lock: true, |
||||
|
text: 'Loading', |
||||
|
spinner: 'el-icon-loading', |
||||
|
background: 'rgba(0, 0, 0, 0.7)' |
||||
|
}) |
||||
|
req.downloadExcel().then((resp) => { |
||||
|
loading.close() |
||||
|
const blob = new Blob([resp], { |
||||
|
type: 'application/vnd.ms-excel' |
||||
|
}) |
||||
|
const fileName = '总体盘库明细' + '.xls' |
||||
|
const elink = document.createElement('a') |
||||
|
elink.download = fileName |
||||
|
elink.style.display = 'nonde' |
||||
|
elink.href = URL.createObjectURL(blob) |
||||
|
document.body.appendChild(elink) |
||||
|
elink.click() |
||||
|
URL.revokeObjectURL(elink.href) |
||||
|
document.body.removeChild(elink) |
||||
|
}).catch(() => { |
||||
|
loading.close() |
||||
|
}) |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 130px !important; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 120px !important; |
||||
|
width: calc(100% - 115px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,374 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div v-show="viewState == 1"> |
||||
|
<button-bar ref="btnbar" view-title="商品盘点明细" :btndisabled="btndisabled" @btnhandle="btnHandle" /> |
||||
|
<div class="main-content"> |
||||
|
<div class="searchcon"> |
||||
|
<el-button size="small" class="searchbtn" @click="clicksearchShow"> |
||||
|
{{ searchxianshitit }} |
||||
|
</el-button> |
||||
|
<div v-show="isSearchShow" class="search"> |
||||
|
<el-form :inline="true" class="tab-header"> |
||||
|
<el-form-item label="仓库"> |
||||
|
<el-select v-model="queryParams.params.warehouseName" placeholder="请选择仓库" |
||||
|
@change="selectWarehouseChange"> |
||||
|
<el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName" |
||||
|
:value="item.sid" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="库区"> |
||||
|
<el-select v-model="queryParams.params.warehouseAreaName" placeholder="请选择库区" |
||||
|
@change="selectWarehouseAreaChange"> |
||||
|
<el-option v-for="item in warehouseAreaList" :key="item.sid" :label="item.areaName" |
||||
|
:value="item.sid" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="库位"> |
||||
|
<el-select v-model="queryParams.params.warehouseRackName" placeholder="请选择库位"> |
||||
|
<el-option v-for="item in warehouseRackList" :key="item.sid" :label="item.rackName" |
||||
|
:value="item.sid"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商品ID"> |
||||
|
<el-input v-model="queryParams.params.goodsID" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商品名称"> |
||||
|
<el-input v-model="queryParams.params.goodsSkuTitle" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商品图号"> |
||||
|
<el-input v-model="queryParams.params.goodsSkuCode" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div class="btn" style="text-align: center;"> |
||||
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
||||
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Start 项目列表头部 --> |
||||
|
<div class="listtop"> |
||||
|
<div class="tit">商品盘点记录</div> |
||||
|
</div> |
||||
|
<!-- End 项目列表头部 --> |
||||
|
<!-- Start 项目列表 --> |
||||
|
<div class=""> |
||||
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> |
||||
|
<el-table-column prop="goodsID" label="商品ID" width="120" align="center" /> |
||||
|
<el-table-column prop="goodsSkuTitle" label="商品名称" width="120" align="center" /> |
||||
|
<el-table-column prop="goodsSkuCode" label="图号" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseName" label="仓库" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseArea" label="库区" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center" /> |
||||
|
<el-table-column prop="unit" label="单位" width="120" align="center" /> |
||||
|
<el-table-column prop="cost" label="单价" width="120" align="center" /> |
||||
|
<el-table-column prop="bookCount" label="库存数量" width="120" align="center" /> |
||||
|
<el-table-column prop="bookAmount" label="库存金额" width="120" align="center" /> |
||||
|
<el-table-column prop="realCount" label="实盘数量" width="120" align="center" /> |
||||
|
<el-table-column prop="realCount" label="实盘金额" width="120" align="center" /> |
||||
|
<el-table-column prop="state" label="状态" width="120" align="center" /> |
||||
|
<el-table-column prop="profitAndLoseCount" label="亏盈数" width="120" align="center" /> |
||||
|
<el-table-column prop="profitAndLoseAmount" label="盈亏金额" width="120" align="center" /> |
||||
|
<el-table-column prop="lossCount" label="盘损数量" width="120" align="center" /> |
||||
|
<el-table-column prop="lossAmount" label="盘损金额" width="120" align="center" /> |
||||
|
<el-table-column prop="remarks" label="备注" align="center" width="200" /> |
||||
|
<el-table-column label="附件" align="center"> |
||||
|
<template slot-scope="scope"> |
||||
|
<div style="color: #1890FF; text-decoration: underline ;" @click="showImage(scope.row.fillPaths)"> |
||||
|
查看 |
||||
|
</div> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</div> |
||||
|
<!-- End 项目列表 --> |
||||
|
<div class="pages"> |
||||
|
<div class="tit" /> |
||||
|
<!-- 翻页 --> |
||||
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" |
||||
|
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose"> |
||||
|
|
||||
|
<el-form ref="dataForm1" class="formadd" style="margin-top: -30px;"> |
||||
|
|
||||
|
<el-row class="first_row"> |
||||
|
<el-col :span="24" class="trightb"> |
||||
|
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;" |
||||
|
v-for="(item,index) in fileList" :src="item.url" :preview-src-list="[item]"> |
||||
|
</el-image> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/storage/stocktaking.js' |
||||
|
import ButtonBar from '@/components/ButtonBar' |
||||
|
import Pagination from '@/components/pagination' |
||||
|
import pageye from '@/components/pagination/pageye' |
||||
|
import req2 from '@/api/warehouse/warehouse.js' |
||||
|
import req3 from '@/api/warehouse/warehouseArea.js' |
||||
|
import req4 from '@/api/warehouse/goodsShelves.js' |
||||
|
export default { |
||||
|
components: { |
||||
|
ButtonBar, |
||||
|
Pagination, |
||||
|
pageye, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
dialogVisible: false, |
||||
|
btndisabled: false, |
||||
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看 |
||||
|
isSearchShow: false, |
||||
|
searchxianshitit: '显示查询条件', |
||||
|
tableLoading: false, |
||||
|
dataList: [], |
||||
|
btnList: [{ |
||||
|
type: 'info', |
||||
|
size: 'small', |
||||
|
icon: 'cross', |
||||
|
btnKey: 'doClose', |
||||
|
btnLabel: '关闭' |
||||
|
}], |
||||
|
queryParams: { |
||||
|
current: 1, |
||||
|
size: 10, |
||||
|
total: 0, |
||||
|
params: { |
||||
|
"billSid": "", |
||||
|
"warehouseSid": "", |
||||
|
"warehouseName": "", |
||||
|
"warehouseAreaSid": "", |
||||
|
"warehouseAreaName": "", |
||||
|
"warehouseRackSid": "", |
||||
|
"goodsID": "", |
||||
|
"goodsSkuTitle": "", |
||||
|
"goodsSkuCode": "" |
||||
|
} |
||||
|
}, |
||||
|
billSid: "", |
||||
|
fileList: [], |
||||
|
warehouseList: [], |
||||
|
warehouseAreaList: [], |
||||
|
warehouseRackList: [] |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$refs['btnbar'].setButtonList(this.btnList) |
||||
|
}, |
||||
|
created() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
initData() { |
||||
|
|
||||
|
var parpams = { |
||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'), |
||||
|
} |
||||
|
|
||||
|
req2.getAllWarehouse(parpams).then(resp => { |
||||
|
this.warehouseList = resp.data |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
getWarehouseArea(sid) { |
||||
|
this.queryParams.params.warehouseAreaSid = '' |
||||
|
this.queryParams.params.warehouseAreaName = '' |
||||
|
|
||||
|
var params = { |
||||
|
ckSid: sid |
||||
|
} |
||||
|
|
||||
|
req3.getAllWarehouseareaBysid(params).then(resp => { |
||||
|
console.log('>>>>>>>>>getAllWarehousearea', resp) |
||||
|
this.warehouseAreaList = resp.data |
||||
|
}).catch(() => {}) |
||||
|
}, |
||||
|
|
||||
|
getAllTypeByAreaSid(sid) { |
||||
|
this.queryParams.params.warehouseRackSid = '' |
||||
|
this.queryParams.params.warehouseRackName = '' |
||||
|
|
||||
|
var params = { |
||||
|
areaSid: sid |
||||
|
} |
||||
|
|
||||
|
req4.getAllTypeByAreaSid(params).then(resp => { |
||||
|
console.log('>>>>>>>>>getAllTypeByAreaSid', resp) |
||||
|
this.warehouseRackList = resp.data |
||||
|
}).catch(() => {}) |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
selectWarehouseChange(val) { |
||||
|
const choose = this.warehouseList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>selectWarehouseChange', choose) |
||||
|
this.queryParams.params.warehouseSid = choose[0].sid |
||||
|
this.queryParams.params.warehouseName = choose[0].warehouseName |
||||
|
|
||||
|
this.getWarehouseArea(choose[0].sid) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
selectWarehouseAreaChange(val) { |
||||
|
const choose = this.warehouseAreaList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>selectWarehouseAreaChange', choose) |
||||
|
this.queryParams.params.warehouseAreaSid = choose[0].sid |
||||
|
this.queryParams.params.warehouseAreaName = choose[0].areaName |
||||
|
|
||||
|
this.getAllTypeByAreaSid(choose[0].sid) |
||||
|
}, |
||||
|
|
||||
|
selectWarehouseRackChange(val) { |
||||
|
const choose = this.warehouseRackList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>selectWarehouseRackChange', choose) |
||||
|
this.queryParams.params.warehouseRackSid = choose[0].sid |
||||
|
this.queryParams.params.warehouseRackName = choose[0].rackName |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
showImage(paths) { |
||||
|
this.fileList = paths |
||||
|
this.dialogVisible = true |
||||
|
}, |
||||
|
handleClose() { |
||||
|
this.dialogVisible = false |
||||
|
}, |
||||
|
// 搜索条件效果 |
||||
|
clicksearchShow() { |
||||
|
this.isSearchShow = !this.isSearchShow |
||||
|
if (this.isSearchShow) { |
||||
|
this.searchxianshitit = '隐藏查询条件' |
||||
|
} else { |
||||
|
this.searchxianshitit = '显示查询条件' |
||||
|
} |
||||
|
}, |
||||
|
btnHandle(btnKey) { |
||||
|
switch (btnKey) { |
||||
|
case 'doClose': |
||||
|
this.close() |
||||
|
break |
||||
|
default: |
||||
|
break |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
showDetail(sid) { |
||||
|
this.initData() |
||||
|
this.billSid = sid |
||||
|
this.queryParams.params.billSid = sid |
||||
|
this.loadList() |
||||
|
}, |
||||
|
|
||||
|
loadList() { |
||||
|
|
||||
|
this.tableLoading = true |
||||
|
|
||||
|
req.billDetail(this.queryParams).then((resp) => { |
||||
|
this.tableLoading = false |
||||
|
if (resp.success) { |
||||
|
const data = resp.data |
||||
|
this.queryParams.total = data.total |
||||
|
this.dataList = data.records |
||||
|
} else { |
||||
|
// 根据resp.code进行异常情况处理 |
||||
|
this.dataList = [] |
||||
|
this.queryParams.total = 0 |
||||
|
} |
||||
|
}).catch(() => { |
||||
|
this.tableLoading = false |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 序号 |
||||
|
indexMethod(index) { |
||||
|
var pagestart = (this.queryParams.current - 1) * this.queryParams.size |
||||
|
var pageindex = index + 1 + pagestart |
||||
|
return pageindex |
||||
|
}, |
||||
|
dosearch() { |
||||
|
this.queryParams.current = 1 |
||||
|
this.loadList() |
||||
|
}, |
||||
|
resetQuery() { |
||||
|
this.queryParams = { |
||||
|
current: 1, |
||||
|
size: 10, |
||||
|
total: 0, |
||||
|
params: { |
||||
|
"billSid": this.billSid, |
||||
|
"warehouseSid": "", |
||||
|
"warehouseName": "", |
||||
|
"warehouseAreaSid": "", |
||||
|
"warehouseAreaName": "", |
||||
|
"warehouseRackSid": "", |
||||
|
"goodsID": "", |
||||
|
"goodsSkuTitle": "", |
||||
|
"goodsSkuCode": "" |
||||
|
} |
||||
|
} |
||||
|
this.loadList() |
||||
|
}, |
||||
|
|
||||
|
close() { |
||||
|
this.$emit('doback') |
||||
|
}, |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 90px !important; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 80px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 80px !important; |
||||
|
width: calc(100% - 70px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 180px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,271 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div v-show="viewState == 1"> |
||||
|
<button-bar ref="btnbar" view-title="库位商品盘点明细" :btndisabled="btndisabled" @btnhandle="btnHandle" /> |
||||
|
<div class="main-content"> |
||||
|
<div class="searchcon"> |
||||
|
<el-button size="small" class="searchbtn" @click="clicksearchShow"> |
||||
|
{{ searchxianshitit }} |
||||
|
</el-button> |
||||
|
<div v-show="isSearchShow" class="search"> |
||||
|
<el-form :inline="true" class="tab-header"> |
||||
|
<el-form-item label="商品ID"> |
||||
|
<el-input v-model="queryParams.params.goodsID" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商品名称"> |
||||
|
<el-input v-model="queryParams.params.goodsSkuTitle" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="商品图号"> |
||||
|
<el-input v-model="queryParams.params.goodsSkuCode" placeholder="" clearable /> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div class="btn" style="text-align: center;"> |
||||
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
||||
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Start 项目列表头部 --> |
||||
|
<div class="listtop"> |
||||
|
<div class="tit">商品盘点记录</div> |
||||
|
</div> |
||||
|
<!-- End 项目列表头部 --> |
||||
|
<!-- Start 项目列表 --> |
||||
|
<div class=""> |
||||
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> |
||||
|
<el-table-column prop="goodsID" label="商品ID" width="120" align="center" /> |
||||
|
<el-table-column prop="goodsSkuTitle" label="商品名称" width="120" align="center" /> |
||||
|
<el-table-column prop="goodsSkuCode" label="图号" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseName" label="仓库" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseArea" label="库区" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center" /> |
||||
|
<el-table-column prop="unit" label="单位" width="120" align="center" /> |
||||
|
<el-table-column prop="cost" label="单价" width="120" align="center" /> |
||||
|
<el-table-column prop="bookCount" label="库存数量" width="120" align="center" /> |
||||
|
<el-table-column prop="bookAmount" label="库存金额" width="120" align="center" /> |
||||
|
<el-table-column prop="realCount" label="实盘数量" width="120" align="center" /> |
||||
|
<el-table-column prop="realCount" label="实盘金额" width="120" align="center" /> |
||||
|
<el-table-column prop="state" label="状态" width="120" align="center" /> |
||||
|
<el-table-column prop="profitAndLoseCount" label="亏盈数" width="120" align="center" /> |
||||
|
<el-table-column prop="profitAndLoseAmount" label="盈亏金额" width="120" align="center" /> |
||||
|
<el-table-column prop="lossCount" label="盘损数量" width="120" align="center" /> |
||||
|
<el-table-column prop="lossAmount" label="盘损金额" width="120" align="center" /> |
||||
|
<el-table-column prop="remarks" label="备注" align="center" width="200" /> |
||||
|
<el-table-column label="附件" align="center"> |
||||
|
<template slot-scope="scope"> |
||||
|
<div style="color: #1890FF; text-decoration: underline ;" @click="showImage(scope.row.fillPaths)"> |
||||
|
查看 |
||||
|
</div> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</div> |
||||
|
<!-- End 项目列表 --> |
||||
|
<div class="pages"> |
||||
|
<div class="tit" /> |
||||
|
<!-- 翻页 --> |
||||
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" |
||||
|
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<el-dialog title="附件" :visible.sync="dialogVisible" :before-close="handleClose"> |
||||
|
|
||||
|
<el-form ref="dataForm1" class="formadd" style="margin-top: -30px;"> |
||||
|
|
||||
|
<el-row class="first_row"> |
||||
|
<el-col :span="24" class="trightb"> |
||||
|
<el-image style="width: 120px;height: 120px; margin: 10px; background: #f0f;" |
||||
|
v-for="(item,index) in fileList" :src="item.url" :preview-src-list="[item]"> |
||||
|
</el-image> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
</el-form> |
||||
|
</el-dialog> |
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/storage/stocktaking.js' |
||||
|
import ButtonBar from '@/components/ButtonBar' |
||||
|
import Pagination from '@/components/pagination' |
||||
|
import pageye from '@/components/pagination/pageye' |
||||
|
export default { |
||||
|
components: { |
||||
|
ButtonBar, |
||||
|
Pagination, |
||||
|
pageye, |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
dialogVisible: false, |
||||
|
btndisabled: false, |
||||
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看 |
||||
|
isSearchShow: false, |
||||
|
searchxianshitit: '显示查询条件', |
||||
|
tableLoading: false, |
||||
|
dataList: [], |
||||
|
btnList: [{ |
||||
|
type: 'info', |
||||
|
size: 'small', |
||||
|
icon: 'cross', |
||||
|
btnKey: 'doClose', |
||||
|
btnLabel: '关闭' |
||||
|
}], |
||||
|
queryParams: { |
||||
|
current: 1, |
||||
|
size: 10, |
||||
|
total: 0, |
||||
|
params: { |
||||
|
"billSid": "", |
||||
|
"warehouseRackSid": "", |
||||
|
"goodsID": "", |
||||
|
"goodsSkuTitle": "", |
||||
|
"goodsSkuCode": "" |
||||
|
} |
||||
|
}, |
||||
|
billSid: "", |
||||
|
warehouseRackSid: "", |
||||
|
fileList: [] |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$refs['btnbar'].setButtonList(this.btnList) |
||||
|
}, |
||||
|
created() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
showImage(paths) { |
||||
|
this.fileList = paths |
||||
|
this.dialogVisible = true |
||||
|
}, |
||||
|
handleClose() { |
||||
|
this.dialogVisible = false |
||||
|
}, |
||||
|
// 搜索条件效果 |
||||
|
clicksearchShow() { |
||||
|
this.isSearchShow = !this.isSearchShow |
||||
|
if (this.isSearchShow) { |
||||
|
this.searchxianshitit = '隐藏查询条件' |
||||
|
} else { |
||||
|
this.searchxianshitit = '显示查询条件' |
||||
|
} |
||||
|
}, |
||||
|
btnHandle(btnKey) { |
||||
|
switch (btnKey) { |
||||
|
case 'doClose': |
||||
|
this.close() |
||||
|
break |
||||
|
default: |
||||
|
break |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
showDetail(sid, warehouseRackSid) { |
||||
|
this.billSid = sid |
||||
|
this.warehouseRackSid = warehouseRackSid |
||||
|
this.queryParams.params.billSid = sid |
||||
|
this.queryParams.params.warehouseRackSid = warehouseRackSid |
||||
|
this.loadList() |
||||
|
}, |
||||
|
|
||||
|
loadList() { |
||||
|
this.tableLoading = true |
||||
|
req.billRackCodeDetail(this.queryParams).then((resp) => { |
||||
|
this.tableLoading = false |
||||
|
if (resp.success) { |
||||
|
const data = resp.data |
||||
|
this.queryParams.total = data.total |
||||
|
this.dataList = data.records |
||||
|
} else { |
||||
|
// 根据resp.code进行异常情况处理 |
||||
|
this.dataList = [] |
||||
|
this.queryParams.total = 0 |
||||
|
} |
||||
|
}).catch(() => { |
||||
|
this.tableLoading = false |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 序号 |
||||
|
indexMethod(index) { |
||||
|
var pagestart = (this.queryParams.current - 1) * this.queryParams.size |
||||
|
var pageindex = index + 1 + pagestart |
||||
|
return pageindex |
||||
|
}, |
||||
|
dosearch() { |
||||
|
this.queryParams.current = 1 |
||||
|
this.loadList() |
||||
|
}, |
||||
|
resetQuery() { |
||||
|
this.queryParams = { |
||||
|
current: 1, |
||||
|
size: 10, |
||||
|
total: 0, |
||||
|
params: { |
||||
|
"billSid": this.billSid, |
||||
|
"warehouseRackSid": this.warehouseRackSid, |
||||
|
"goodsID": "", |
||||
|
"goodsSkuTitle": "", |
||||
|
"goodsSkuCode": "" |
||||
|
} |
||||
|
} |
||||
|
this.loadList() |
||||
|
}, |
||||
|
|
||||
|
close() { |
||||
|
this.$emit('doback') |
||||
|
}, |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 90px !important; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 80px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 80px !important; |
||||
|
width: calc(100% - 70px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 180px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,352 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div v-show="viewState == 1"> |
||||
|
<button-bar ref="btnbar" view-title="盘库明细" :btndisabled="btndisabled" @btnhandle="btnHandle" /> |
||||
|
<div class="main-content"> |
||||
|
<div class="searchcon"> |
||||
|
<el-button size="small" class="searchbtn" @click="clicksearchShow"> |
||||
|
{{ searchxianshitit }} |
||||
|
</el-button> |
||||
|
<div v-show="isSearchShow" class="search"> |
||||
|
<el-form :inline="true" class="tab-header"> |
||||
|
<el-form-item label="仓库"> |
||||
|
<el-select v-model="queryParams.params.warehouseName" placeholder="请选择仓库" |
||||
|
@change="selectWarehouseChange"> |
||||
|
<el-option v-for="item in warehouseList" :key="item.sid" :label="item.warehouseName" |
||||
|
:value="item.sid" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="库区"> |
||||
|
<el-select v-model="queryParams.params.warehouseAreaName" placeholder="请选择库区" |
||||
|
@change="selectWarehouseAreaChange"> |
||||
|
<el-option v-for="item in warehouseAreaList" :key="item.sid" :label="item.areaName" |
||||
|
:value="item.sid" /> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="库位"> |
||||
|
<el-select v-model="queryParams.params.warehouseRackName" placeholder="请选择库位"> |
||||
|
<el-option v-for="item in warehouseRackList" :key="item.sid" :label="item.rackName" |
||||
|
:value="item.sid"> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div class="btn" style="text-align: center;"> |
||||
|
<el-button type="primary" size="small" icon="el-icon-search" @click="dosearch">查询</el-button> |
||||
|
<el-button type="primary" size="small" icon="el-icon-refresh" @click="resetQuery">重置</el-button> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Start 项目列表头部 --> |
||||
|
<div class="listtop"> |
||||
|
<div class="tit">库位盘点列表</div> |
||||
|
</div> |
||||
|
<!-- End 项目列表头部 --> |
||||
|
<!-- Start 项目列表 --> |
||||
|
<div class=""> |
||||
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center" /> |
||||
|
<el-table-column fixed label="操作" align="center" width="100"> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button type="primary" size="mini" @click="toDetail(scope.row)">查看</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column prop="warehouseName" label="仓库" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseArea" label="库区" width="120" align="center" /> |
||||
|
<el-table-column prop="warehouseRackName" label="库位" width="120" align="center" /> |
||||
|
<el-table-column label="应盘" align="center"> |
||||
|
<el-table-column prop="bookCount" label="数量" align="center" width="100" /> |
||||
|
<el-table-column prop="bookAmount" label="金额" align="center" width="100" /> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="实盘" align="center"> |
||||
|
<el-table-column prop="realCount" label="数量" align="center" width="100" /> |
||||
|
<el-table-column prop="realAmount" label="金额" align="center" width="100" /> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="未盘" align="center"> |
||||
|
<el-table-column prop="notCount" label="数量" align="center" width="100" /> |
||||
|
<el-table-column prop="notAmount" label="金额" align="center" width="100" /> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="盘盈" align="center"> |
||||
|
<el-table-column prop="profitCount" label="数量" align="center" width="100" /> |
||||
|
<el-table-column prop="profitAmount" label="金额" align="center" width="100" /> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="盘亏" align="center"> |
||||
|
<el-table-column prop="loseCount" label="数量" align="center" width="100" /> |
||||
|
<el-table-column prop="loseAmount" label="金额" align="center" width="100" /> |
||||
|
</el-table-column> |
||||
|
<el-table-column label="盘损" align="center"> |
||||
|
<el-table-column prop="lossCount" label="数量" align="center" width="100" /> |
||||
|
<el-table-column prop="lossAmount" label="金额" align="center" width="100" /> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
</div> |
||||
|
<!-- End 项目列表 --> |
||||
|
<div class="pages"> |
||||
|
<div class="tit" /> |
||||
|
<!-- 翻页 --> |
||||
|
<pagination v-show="dataList.length > 0" :total="queryParams.total" :page.sync="queryParams.current" |
||||
|
:limit.sync="queryParams.size" class="pagination" @pagination="loadList" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- 查看库位明细 --> |
||||
|
<stocktakingRackCodeDetail v-show="viewState == 2" ref="divSp" @doback="resetState" /> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/storage/stocktaking.js' |
||||
|
import ButtonBar from '@/components/ButtonBar' |
||||
|
import Pagination from '@/components/pagination' |
||||
|
import pageye from '@/components/pagination/pageye' |
||||
|
import stocktakingRackCodeDetail from './stocktakingRackCodeDetail.vue' |
||||
|
import req2 from '@/api/warehouse/warehouse.js' |
||||
|
import req3 from '@/api/warehouse/warehouseArea.js' |
||||
|
import req4 from '@/api/warehouse/goodsShelves.js' |
||||
|
export default { |
||||
|
components: { |
||||
|
ButtonBar, |
||||
|
Pagination, |
||||
|
pageye, |
||||
|
stocktakingRackCodeDetail |
||||
|
}, |
||||
|
data() { |
||||
|
return { |
||||
|
dialogVisible: false, |
||||
|
btndisabled: false, |
||||
|
viewState: 1, // 1、列表 2、添加 3、修改 4、查看 |
||||
|
isSearchShow: false, |
||||
|
searchxianshitit: '显示查询条件', |
||||
|
tableLoading: false, |
||||
|
dataList: [], |
||||
|
btnList: [{ |
||||
|
type: 'info', |
||||
|
size: 'small', |
||||
|
icon: 'cross', |
||||
|
btnKey: 'doClose', |
||||
|
btnLabel: '关闭' |
||||
|
}], |
||||
|
queryParams: { |
||||
|
current: 1, |
||||
|
size: 10, |
||||
|
total: 0, |
||||
|
params: { |
||||
|
"billSid": "", |
||||
|
"warehouseSid": "", |
||||
|
"warehouseName": "", |
||||
|
"warehouseAreaSid": "", |
||||
|
"warehouseAreaName": "", |
||||
|
"warehouseRackSid": "", |
||||
|
} |
||||
|
}, |
||||
|
billSid: "", |
||||
|
warehouseList: [], |
||||
|
warehouseAreaList: [], |
||||
|
warehouseRackList: [] |
||||
|
} |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$refs['btnbar'].setButtonList(this.btnList) |
||||
|
}, |
||||
|
created() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
|
||||
|
initData() { |
||||
|
|
||||
|
var parpams = { |
||||
|
orgPath: window.sessionStorage.getItem('defaultOrgPath'), |
||||
|
} |
||||
|
|
||||
|
req2.getAllWarehouse(parpams).then(resp => { |
||||
|
this.warehouseList = resp.data |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
getWarehouseArea(sid) { |
||||
|
this.queryParams.params.warehouseAreaSid = '' |
||||
|
this.queryParams.params.warehouseAreaName = '' |
||||
|
|
||||
|
var params = { |
||||
|
ckSid: sid |
||||
|
} |
||||
|
|
||||
|
req3.getAllWarehouseareaBysid(params).then(resp => { |
||||
|
console.log('>>>>>>>>>getAllWarehousearea', resp) |
||||
|
this.warehouseAreaList = resp.data |
||||
|
}).catch(() => {}) |
||||
|
}, |
||||
|
|
||||
|
getAllTypeByAreaSid(sid) { |
||||
|
this.queryParams.params.warehouseRackSid = '' |
||||
|
this.queryParams.params.warehouseRackName = '' |
||||
|
|
||||
|
var params = { |
||||
|
areaSid: sid |
||||
|
} |
||||
|
|
||||
|
req4.getAllTypeByAreaSid(params).then(resp => { |
||||
|
console.log('>>>>>>>>>getAllTypeByAreaSid', resp) |
||||
|
this.warehouseRackList = resp.data |
||||
|
}).catch(() => {}) |
||||
|
}, |
||||
|
|
||||
|
|
||||
|
selectWarehouseChange(val) { |
||||
|
const choose = this.warehouseList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>selectWarehouseChange', choose) |
||||
|
this.queryParams.params.warehouseSid = choose[0].sid |
||||
|
this.queryParams.params.warehouseName = choose[0].warehouseName |
||||
|
|
||||
|
this.getWarehouseArea(choose[0].sid) |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
selectWarehouseAreaChange(val) { |
||||
|
const choose = this.warehouseAreaList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>selectWarehouseAreaChange', choose) |
||||
|
this.queryParams.params.warehouseAreaSid = choose[0].sid |
||||
|
this.queryParams.params.warehouseAreaName = choose[0].areaName |
||||
|
|
||||
|
this.getAllTypeByAreaSid(choose[0].sid) |
||||
|
}, |
||||
|
|
||||
|
selectWarehouseRackChange(val) { |
||||
|
const choose = this.warehouseRackList.filter((item) => item.sid == val) |
||||
|
console.log('>>>>>>>>>selectWarehouseRackChange', choose) |
||||
|
this.queryParams.params.warehouseRackSid = choose[0].sid |
||||
|
this.queryParams.params.warehouseRackName = choose[0].rackName |
||||
|
|
||||
|
}, |
||||
|
|
||||
|
|
||||
|
// 搜索条件效果 |
||||
|
clicksearchShow() { |
||||
|
this.isSearchShow = !this.isSearchShow |
||||
|
if (this.isSearchShow) { |
||||
|
this.searchxianshitit = '隐藏查询条件' |
||||
|
} else { |
||||
|
this.searchxianshitit = '显示查询条件' |
||||
|
} |
||||
|
}, |
||||
|
btnHandle(btnKey) { |
||||
|
switch (btnKey) { |
||||
|
case 'doClose': |
||||
|
this.close() |
||||
|
break |
||||
|
default: |
||||
|
break |
||||
|
} |
||||
|
}, |
||||
|
showDetail(sid) { |
||||
|
this.initData() |
||||
|
this.billSid = sid |
||||
|
this.queryParams.params.billSid = sid |
||||
|
this.loadList() |
||||
|
}, |
||||
|
|
||||
|
loadList() { |
||||
|
this.tableLoading = true |
||||
|
req.billStocktak(this.queryParams).then((resp) => { |
||||
|
this.tableLoading = false |
||||
|
if (resp.success) { |
||||
|
const data = resp.data |
||||
|
this.queryParams.total = data.total |
||||
|
this.dataList = data.records |
||||
|
} else { |
||||
|
// 根据resp.code进行异常情况处理 |
||||
|
this.dataList = [] |
||||
|
this.queryParams.total = 0 |
||||
|
} |
||||
|
}).catch(() => { |
||||
|
this.tableLoading = false |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 序号 |
||||
|
indexMethod(index) { |
||||
|
var pagestart = (this.queryParams.current - 1) * this.queryParams.size |
||||
|
var pageindex = index + 1 + pagestart |
||||
|
return pageindex |
||||
|
}, |
||||
|
dosearch() { |
||||
|
this.queryParams.current = 1 |
||||
|
this.loadList() |
||||
|
}, |
||||
|
resetQuery() { |
||||
|
this.queryParams = { |
||||
|
current: 1, |
||||
|
size: 10, |
||||
|
total: 0, |
||||
|
params: { |
||||
|
"billSid": this.billSid, |
||||
|
"warehouseSid": "", |
||||
|
"warehouseName": "", |
||||
|
"warehouseAreaSid": "", |
||||
|
"warehouseAreaName": "", |
||||
|
"warehouseRackSid": "", |
||||
|
} |
||||
|
} |
||||
|
this.loadList() |
||||
|
}, |
||||
|
|
||||
|
toDetail(row) { |
||||
|
|
||||
|
this.viewState = 2 |
||||
|
this.$refs['divSp'].showDetail(row.billSid, row.warehouseRackSid) |
||||
|
}, |
||||
|
close() { |
||||
|
this.$emit('doback') |
||||
|
}, |
||||
|
|
||||
|
resetState() { |
||||
|
this.viewState = 1 |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 90px !important; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 80px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 80px !important; |
||||
|
width: calc(100% - 70px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 180px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,221 @@ |
|||||
|
<template> |
||||
|
<div class="app-container"> |
||||
|
<div v-show="viewState == 1"> |
||||
|
<div class="tab-header webtop"> |
||||
|
<div>盘库报告</div> |
||||
|
<div> |
||||
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="settle()">下载pdf</el-button> |
||||
|
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="listconadd"> |
||||
|
<el-form ref="form_obj" :model="formobj" class="formaddcopy02"> |
||||
|
|
||||
|
<el-row class="first_row"> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">发起人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">发起部门</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.deptName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">发起日期</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
<el-row> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">盘点人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.createName }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">监盘人</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.finances }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
<el-col :span="8"> |
||||
|
<div class="span-sty">备注</div> |
||||
|
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
|
||||
|
<div class="title titleOne"> |
||||
|
<div>总体盘点情况</div> |
||||
|
<el-button type="primary" size="mini" class="btntopblueline" @click="seleMaintenance()">明细下载</el-button> |
||||
|
</div> |
||||
|
|
||||
|
<div style="display: flex;flex-direction: row;align-items: center; |
||||
|
border: 1px solid #E0E3EB;line-height: 30px;padding: 5px 10px;"> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 应盘数量:</span> |
||||
|
<span> {{formobj.ypNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 应盘金额:</span> |
||||
|
<span> {{formobj.ypMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 实盘数量:</span> |
||||
|
<span> {{formobj.spNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 实盘金额:</span> |
||||
|
<span> {{formobj.spMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘盈数量:</span> |
||||
|
<span> {{formobj.pyNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘盈金额:</span> |
||||
|
<span> {{formobj.pyMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘亏数量:</span> |
||||
|
<span> {{formobj.pkNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘亏金额:</span> |
||||
|
<span> {{formobj.pkMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘损数量:</span> |
||||
|
<span> {{formobj.psNum}}</span> |
||||
|
</div> |
||||
|
|
||||
|
<div style="flex: 1;"> |
||||
|
<span> 盘损金额:</span> |
||||
|
<span> {{formobj.psMoney}}</span> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="title titleOne"> |
||||
|
<div>仓库盘点情况</div> |
||||
|
</div> |
||||
|
<el-table :data="formobj.warehouseStocktakList" :index="index" border style="width: 100%;"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> |
||||
|
<el-table-column prop="warehouseName" label="仓库" align="center" /> |
||||
|
<el-table-column prop="ypNum" label="应盘" align="center" /> |
||||
|
<el-table-column prop="ypMoney" label="应盘金额" width="70" align="center" /> |
||||
|
<el-table-column prop="spNum" label="实盘" width="150" align="center" /> |
||||
|
<el-table-column prop="spMoney" label="实盘金额" align="center" /> |
||||
|
<el-table-column prop="pyNum" label="盘盈" align="center" /> |
||||
|
<el-table-column prop="pyMoney" label="盘盈金额" align="center" /> |
||||
|
<el-table-column prop="pkNum" label="盘亏" align="center" width="100" /> |
||||
|
<el-table-column prop="pkMoney" label="盘亏金额" align="center" width="100" /> |
||||
|
<el-table-column prop="psNum" label="盘损" align="center" width="100" /> |
||||
|
<el-table-column prop="psMoney" label="盘损金额" align="center" width="100" /> |
||||
|
</el-table> |
||||
|
|
||||
|
<div class="title titleOne"> |
||||
|
<div>库区盘点情况</div> |
||||
|
</div> |
||||
|
<el-table :data="formobj.arehouseAreaeStocktakList" :index="index" border style="width: 100%;"> |
||||
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center" /> |
||||
|
<el-table-column prop="warehouseAreaeName" label="仓库-库区" align="center" /> |
||||
|
<el-table-column prop="ypNum" label="应盘" align="center" /> |
||||
|
<el-table-column prop="ypMoney" label="应盘金额" width="70" align="center" /> |
||||
|
<el-table-column prop="spNum" label="实盘" width="150" align="center" /> |
||||
|
<el-table-column prop="spMoney" label="实盘金额" align="center" /> |
||||
|
<el-table-column prop="pyNum" label="盘盈" align="center" /> |
||||
|
<el-table-column prop="pyMoney" label="盘盈金额" align="center" /> |
||||
|
<el-table-column prop="pkNum" label="盘亏" align="center" width="100" /> |
||||
|
<el-table-column prop="pkMoney" label="盘亏金额" align="center" width="100" /> |
||||
|
<el-table-column prop="psNum" label="盘损" align="center" width="100" /> |
||||
|
<el-table-column prop="psMoney" label="盘损金额" align="center" width="100" /> |
||||
|
</el-table> |
||||
|
|
||||
|
</el-form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/storage/stocktaking.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
viewState: 1, |
||||
|
submitdisabled: false, |
||||
|
index: 0, |
||||
|
|
||||
|
formobj: {}, |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
created() { |
||||
|
|
||||
|
}, |
||||
|
methods: { |
||||
|
showDetail(sid) { |
||||
|
req.init(sid).then((res) => { |
||||
|
if (res.success) { |
||||
|
this.formobj = res.data |
||||
|
|
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
handleReturn(isreload) { |
||||
|
if (isreload === 'true') this.$emit('reloadlist') |
||||
|
this.formobj = {} |
||||
|
this.submitdisabled = false |
||||
|
this.$emit('doback') |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
/deep/ .el-form-item__error { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.must { |
||||
|
color: #f00; |
||||
|
} |
||||
|
|
||||
|
.span-sty { |
||||
|
width: 130px !important; |
||||
|
} |
||||
|
|
||||
|
.addinputInfo { |
||||
|
margin-left: 120px !important; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw { |
||||
|
margin-left: 120px !important; |
||||
|
width: calc(100% - 115px); |
||||
|
} |
||||
|
|
||||
|
.first_row { |
||||
|
border-top: 1px solid #E0E3EB; |
||||
|
} |
||||
|
|
||||
|
.titleOne { |
||||
|
padding: 7px; |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group { |
||||
|
display: inline; |
||||
|
line-height: 1px; |
||||
|
vertical-align: middle; |
||||
|
} |
||||
|
</style> |
@ -0,0 +1,29 @@ |
|||||
|
package com.yxt.anrui.as.api.ascustomervehicle; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author Fan |
||||
|
* @description |
||||
|
* @date 2024/7/22 14:42 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class CarListVo { |
||||
|
|
||||
|
/** |
||||
|
* 购买日期 |
||||
|
*/ |
||||
|
private String buyDate; |
||||
|
private String sid; |
||||
|
/** |
||||
|
* 车牌号 |
||||
|
*/ |
||||
|
private String vehMark; |
||||
|
/** |
||||
|
* 车架号 |
||||
|
*/ |
||||
|
private String vinNo; |
||||
|
@ApiModelProperty("售后客户车辆信息sid") |
||||
|
private String asVinSid; // 售后客户车辆信息sid
|
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue