|
|
@@ -18,180 +18,176 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
-@FeignClient(name="jzg-organization",url = "${feign.client.jzg-org.url}")
|
|
|
+@FeignClient(name = "jzg-organization")
|
|
|
public interface OrgClient {
|
|
|
|
|
|
/**
|
|
|
* 查找人员信息地区
|
|
|
+ *
|
|
|
* @param address
|
|
|
* @param idCard
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(value = "/area/queryByAddress")
|
|
|
- public HttpResult<PersonAreaVo> queryByAddress(@RequestParam("address") String address,
|
|
|
- @RequestParam("idCard") String idCard);
|
|
|
+ HttpResult<PersonAreaVo> queryByAddress(@RequestParam("address") String address,
|
|
|
+ @RequestParam("idCard") String idCard);
|
|
|
|
|
|
@GetMapping(value = "/agreement/getByCompanyId")
|
|
|
- public HttpResult<List<PtlAgreement>> getByCompanyId(@RequestParam("companyId") String companyId,
|
|
|
- @RequestParam("systemCode") String code,
|
|
|
- @RequestHeader("Authorization") String authToken,
|
|
|
- @RequestHeader("system_code")String systemCode);
|
|
|
+ HttpResult<List<PtlAgreement>> getByCompanyId(@RequestParam("companyId") String companyId,
|
|
|
+ @RequestParam("systemCode") String code
|
|
|
+ );
|
|
|
+
|
|
|
@GetMapping(value = "/agreement/getByAgreementId")
|
|
|
- public PtlAgreement getByAgreementId(@RequestParam String agreementId,
|
|
|
- @RequestHeader("Authorization") String authToken,
|
|
|
- @RequestHeader("system_code")String systemCode);
|
|
|
+ PtlAgreement getByAgreementId(@RequestParam String agreementId);
|
|
|
|
|
|
@GetMapping(value = "/messageTemplate/templateGet")
|
|
|
- public HttpResult<SysMessageTemplate> templateGet(@RequestParam MessageCodeEnum messageCodeEnum,
|
|
|
- @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult<SysMessageTemplate> templateGet(@RequestParam MessageCodeEnum messageCodeEnum);
|
|
|
|
|
|
@PostMapping(value = "/message/messageAdd")
|
|
|
- public HttpResult<SysMessageTemplate> messageAdd(@RequestBody MessageAddParam param,
|
|
|
- @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult<SysMessageTemplate> messageAdd(@RequestBody MessageAddParam param);
|
|
|
|
|
|
/**
|
|
|
* 根据id获取费用信息
|
|
|
+ *
|
|
|
* @param id
|
|
|
* @param authToken
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(value = "/ptlAgreementCost/queryById")
|
|
|
- public HttpResult<PtlAgreementCostVo> queryCostById(@RequestParam Long id,
|
|
|
- @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult<PtlAgreementCostVo> queryCostById(@RequestParam Long id);
|
|
|
|
|
|
@GetMapping(value = "/agreement/agreementGet")
|
|
|
- public HttpResult<AgreementInfoVo> queryAgreementById(@RequestParam String id,
|
|
|
- @RequestHeader("Authorization") String authToken,
|
|
|
- @RequestHeader("system_code") String systemCode);
|
|
|
+ HttpResult<AgreementInfoVo> queryAgreementById(@RequestParam String id);
|
|
|
|
|
|
@PostMapping(value = "/ptlAgreementCost/queryByAgreementIdAndProductId")
|
|
|
- public List<CostsListVo> queryByAgreementIdAndProductId(@RequestBody CostAgreementParam costAgreementParam,
|
|
|
- @RequestHeader("Authorization") String authToken,@RequestHeader("system_code")String systemCode);
|
|
|
+ List<CostsListVo> queryByAgreementIdAndProductId(@RequestBody CostAgreementParam costAgreementParam);
|
|
|
|
|
|
@GetMapping(value = "/pltAgreement/attr/list")
|
|
|
- public HttpResult<List<PtlAgreementUndwrtRulesAttr>> list();
|
|
|
+ HttpResult<List<PtlAgreementUndwrtRulesAttr>> list();
|
|
|
|
|
|
@GetMapping(value = "/ptlAgreementCost/queryByCostId")
|
|
|
- public List<PtlAgreementCostTypeVo> queryByCostId(@RequestParam String costId);
|
|
|
+ List<PtlAgreementCostTypeVo> queryByCostId(@RequestParam String costId);
|
|
|
|
|
|
@GetMapping(value = "/userInfo/getUserByMobile")
|
|
|
- public SalesmanVo getUserByMobile(@RequestParam String mobile,
|
|
|
- @RequestHeader("Authorization") String authToken,
|
|
|
- @RequestHeader("system_code") String systemCode);
|
|
|
+ SalesmanVo getUserByMobile(@RequestParam String mobile);
|
|
|
|
|
|
/**
|
|
|
* 获取用户唯一id
|
|
|
+ *
|
|
|
* @param mobile
|
|
|
* @param authToken
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(value = "/userInfo/getUserOnlyIdByMobile")
|
|
|
- public HttpResult<SysUser> getUserOnlyIdByMobile(@RequestParam String mobile,
|
|
|
- @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult<SysUser> getUserOnlyIdByMobile(@RequestParam String mobile);
|
|
|
|
|
|
/**
|
|
|
* 用户账户信息查询
|
|
|
+ *
|
|
|
* @param userId
|
|
|
* @param authToken
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping(value = "/userAccount/accountGet")
|
|
|
- public HttpResult<SysUserAccount> accountGet(@RequestParam String userId, @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult<SysUserAccount> accountGet(@RequestParam String userId);
|
|
|
|
|
|
/**
|
|
|
* 用户账户信息保存
|
|
|
+ *
|
|
|
* @param userAccount
|
|
|
* @param authToken
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping(value = "/userAccount/saveOrUpdate")
|
|
|
- public HttpResult saveOrUpdate(@RequestBody SysUserAccount userAccount, @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult saveOrUpdate(@RequestBody SysUserAccount userAccount);
|
|
|
|
|
|
/**
|
|
|
* 获取租户分销设置
|
|
|
*/
|
|
|
@PostMapping(value = "/sysDistributionSetting/getSettingBySystemCode")
|
|
|
- public HttpResult<SysDistributionSetting> getSettingBySystemCode();
|
|
|
+ HttpResult<SysDistributionSetting> getSettingBySystemCode();
|
|
|
|
|
|
/**
|
|
|
* 获取机构
|
|
|
*/
|
|
|
@GetMapping(value = "/dept/deptGet")
|
|
|
- public HttpResult<SysDeptVo> deptGet(String id);
|
|
|
+ HttpResult<SysDeptVo> deptGet(String id);
|
|
|
|
|
|
/**
|
|
|
* 获取租户用户
|
|
|
*/
|
|
|
@GetMapping(value = "userInfo/getUserInfoByMobile")
|
|
|
- public HttpResult<SysUserJzgInfo> getUserInfoByMobile(String mobile);
|
|
|
+ HttpResult<SysUserJzgInfo> getUserInfoByMobile(String mobile);
|
|
|
|
|
|
/**
|
|
|
* 获取上级推荐人
|
|
|
*/
|
|
|
@GetMapping(value = "esmUserReferrer/getReferrer")
|
|
|
- public HttpResult<EsmUserReferrer> getReferrer(String id);
|
|
|
+ HttpResult<EsmUserReferrer> getReferrer(String id);
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 获取租户用户
|
|
|
*/
|
|
|
@GetMapping(value = "userInfo/getUserInfo")
|
|
|
- public HttpResult<SysUserJzgInfo> getUserInfo(String id);
|
|
|
+ HttpResult<SysUserJzgInfo> getUserInfo(String id);
|
|
|
|
|
|
@GetMapping(value = "userInfo/getUserInfoById")
|
|
|
- public HttpResult<SysUserJzgInfo> getUserInfoById(String id);
|
|
|
+ HttpResult<SysUserJzgInfo> getUserInfoById(String id);
|
|
|
|
|
|
@PostMapping(value = "receivable/restockInsPlyIncome")
|
|
|
- public void restockInsPlyIncome(@RequestBody InsOrderAdjust insOrderAdjust);
|
|
|
+ void restockInsPlyIncome(@RequestBody InsOrderAdjust insOrderAdjust);
|
|
|
|
|
|
/**
|
|
|
* 获取调度动作
|
|
|
*/
|
|
|
@PostMapping(value = "/ptlAgreementDispatch/getAgreementDispatchAction")
|
|
|
- public HttpResult<List<PtlAgreementDispatchVo.DispatchVo>> getAgreementDispatchAction(List<String> dispatchIds);
|
|
|
+ HttpResult<List<PtlAgreementDispatchVo.DispatchVo>> getAgreementDispatchAction(List<String> dispatchIds);
|
|
|
|
|
|
/**
|
|
|
* 获取报价之后的调度动作
|
|
|
+ *
|
|
|
* @param companyId
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping(value = "/ptlAgreementDispatch/getAgreementDispatchAfterAction")
|
|
|
- public HttpResult<List<PtlAgreementDispatchAfterAction>> getAgreementDispatchAfterAction(String companyId);
|
|
|
+ HttpResult<List<PtlAgreementDispatchAfterAction>> getAgreementDispatchAfterAction(String companyId);
|
|
|
|
|
|
/**
|
|
|
* 执行调度动作
|
|
|
*/
|
|
|
@PostMapping(value = "executeActions")
|
|
|
- public HttpResult executeActions(@RequestParam("orderNo") String orderNo,@RequestParam("quoteVo") QuoteVo quoteVo,@RequestParam("actionMap") Map<String, Object> actionMap);
|
|
|
+ HttpResult executeActions(@RequestParam("orderNo") String orderNo, @RequestParam("quoteVo") QuoteVo quoteVo, @RequestParam("actionMap") Map<String, Object> actionMap);
|
|
|
|
|
|
/**
|
|
|
* 判断新车
|
|
|
*/
|
|
|
@GetMapping(value = "/newCarJudgeRules/compareNewCar")
|
|
|
- public HttpResult compareNewCar(@RequestParam("registerDate") String registerDate, @RequestParam("companyId") String companyId, @RequestParam("vehicleType") String vehicleType);
|
|
|
+ HttpResult compareNewCar(@RequestParam("registerDate") String registerDate, @RequestParam("companyId") String companyId, @RequestParam("vehicleType") String vehicleType);
|
|
|
|
|
|
/**
|
|
|
* 获取费用信息
|
|
|
*/
|
|
|
@GetMapping(value = "/ptlAgreementCost/queryById")
|
|
|
- public HttpResult queryCostById(@RequestParam("id") String id, @RequestHeader("Authorization") String authToken,@RequestHeader("system_code")String systemCode);
|
|
|
+ HttpResult queryCostById(@RequestParam("id") String id);
|
|
|
|
|
|
/**
|
|
|
* 获取承保规则详情
|
|
|
*/
|
|
|
@GetMapping(value = "/agreementRules/getRuleInfo")
|
|
|
- public HttpResult getRuleInfo(@RequestParam("ruleId") String ruleId, @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult getRuleInfo(@RequestParam("ruleId") String ruleId);
|
|
|
|
|
|
/**
|
|
|
* 添加应收
|
|
|
+ *
|
|
|
* @return
|
|
|
*/
|
|
|
@PostMapping(value = "/receivable/addReceivable")
|
|
|
- public HttpResult addReceivable(@RequestBody JSONObject requestData, @RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult addReceivable(@RequestBody JSONObject requestData);
|
|
|
|
|
|
/**
|
|
|
* 添加用户账户收入记录
|
|
|
*/
|
|
|
@PostMapping(value = "/userAccount/addUserAccountIncomeLog")
|
|
|
- public HttpResult addUserAccountIncomeLog(@RequestBody List<SysUserAccountIncomeLog> incomeLogs,@RequestHeader("Authorization") String authToken);
|
|
|
+ HttpResult addUserAccountIncomeLog(@RequestBody List<SysUserAccountIncomeLog> incomeLogs);
|
|
|
}
|