
67 changed files with 4454 additions and 3 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,78 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _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); |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _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无法访问"); |
|||
} |
|||
} |
@ -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,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; |
|||
/** |
|||
* 证件类型 |
|||
*/ |
|||
private String certificateType; |
|||
/** |
|||
* 证件类型Key |
|||
*/ |
|||
private String certificateTypeKey; |
|||
/** |
|||
* 市 |
|||
*/ |
|||
private String city; |
|||
/** |
|||
* 对接人列表 |
|||
*/ |
|||
private List<PersonListVo> contactPerson; |
|||
/** |
|||
* 县 |
|||
*/ |
|||
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; |
|||
/** |
|||
* 证件类型 |
|||
*/ |
|||
private String certificateType; |
|||
/** |
|||
* 证件类型Key |
|||
*/ |
|||
private String certificateTypeKey; |
|||
/** |
|||
* 市 |
|||
*/ |
|||
private String city; |
|||
/** |
|||
* 对接人列表 |
|||
*/ |
|||
private List<PersonListVo> contactPerson; |
|||
/** |
|||
* 县 |
|||
*/ |
|||
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,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _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.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); |
|||
} |
@ -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,100 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.crm.biz.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; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePerson; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonQuery; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonDetailsVo; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonDto; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonFeign; |
|||
|
|||
/** |
|||
* 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); |
|||
} |
|||
} |
@ -0,0 +1,121 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _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.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 com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePerson; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonQuery; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonVo; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonDetailsVo; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonDto; |
|||
import com.yxt.anrui.crm.api.crmmaintenanceenterpriseperson.CrmMaintenanceenterprisePersonFeign; |
|||
|
|||
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; |
|||
} |
|||
} |
@ -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 =#{sid} |
|||
</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,476 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _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"); |
|||
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"); |
|||
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())); |
|||
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); |
|||
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,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
|
|||
} |
Loading…
Reference in new issue