Commit 09c8efcc authored by huyuchen's avatar huyuchen

huych-入职登记商险待办提交

parent 1b462ede
......@@ -560,6 +560,7 @@ public class TSettleDomainServiceImpl extends ServiceImpl<TSettleDomainMapper, T
.set(EmployeeRegistrationPre::getCustomerUsernameNew, vo.getName());
registrationPreService.update(updateWrapper);
//更新商险待购买的前端客服
updateVo.setCustomerUserLoginName(vo.getLoginName());
insuranceDaprUtil.updateInsurancePreCustomerName(updateVo);
}
}
......
......@@ -20,4 +20,7 @@ public class EmployeeRegistrationCustomerUserUpdateVo implements Serializable {
@Schema(description = "项目编码")
private String deptNo;
@Schema(description = "最新的前端客服登录名")
private String customerUserLoginName;
}
......@@ -1197,6 +1197,7 @@ public class EmployeeRegistrationServiceImpl extends ServiceImpl<EmployeeRegistr
YifuUser user,String id) throws ParseException {
preVo.setRegisterId(id);
preVo.setCustomerUsername(registration.getCustomerUsername());
preVo.setCustomerUserLoginname(registration.getCustomerUserLoginname());
preVo.setDeptName(registration.getDeptName());
preVo.setDeptId(registration.getDeptId());
preVo.setDataSource(registration.getDataSource());
......
......@@ -48,6 +48,9 @@ public class TEmployeeInsurancePre extends BaseEntity {
@Schema(description = "前端客服")
private String customerUsername;
@Schema(description = "前端客服登录名")
private String customerUserLoginname;
@Schema(description = "项目名称")
private String deptName;
......
......@@ -61,6 +61,13 @@ public class TEmployeeInsurancePreVo implements Serializable {
@Schema(description = "前端客服")
@ExcelProperty("前端客服")
private String customerUsername;
/**
* 前端客服登录名
*/
@ExcelAttribute(name = "前端客服登录名")
@Schema(description = "前端客服登录名")
@ExcelProperty("前端客服登录名")
private String customerUserLoginname;
/**
* 项目名称
*/
......
......@@ -3,6 +3,7 @@ package com.yifu.cloud.plus.v1.yifu.insurances.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yifu.cloud.plus.v1.csp.vo.EmployeeRegistrationCustomerUserUpdateVo;
import com.yifu.cloud.plus.v1.yifu.archives.vo.EmployeeRegistrationPreVo;
import com.yifu.cloud.plus.v1.yifu.common.core.util.R;
import com.yifu.cloud.plus.v1.yifu.common.core.vo.YifuUser;
import com.yifu.cloud.plus.v1.yifu.common.dapr.util.MenuUtil;
......@@ -148,6 +149,18 @@ public class TEmployeeInsurancePreController {
return tEmployeeInsurancePreService.selectInsurancePreInfoList(preVo);
}
/**
* 新增商险待购买
* @author huych
* @date 2025-04-09 9:26:35
**/
@Operation(description = "新增商险待购买")
@Inner
@PostMapping("/inner/saveInsurancePreInfo")
public Boolean saveInsurancePreInfo(@RequestBody EmployeeRegistrationPreVo preVo) {
return tEmployeeInsurancePreService.saveInsurancePreInfo(preVo);
}
/**
* 更新商险待购买的前端客服姓名
* @author huych
......@@ -160,4 +173,17 @@ public class TEmployeeInsurancePreController {
tEmployeeInsurancePreService.updateInsurancePreCustomerName(updateVo);
}
/**
* 派单当日9点统一推送确认信息
* @author huych
* @date 2025-04-09 9:33:16
* @return void
*/
@SysLog("派单当日9点统一推送确认信息")
@Inner
@PostMapping("/inner/pushWxConfrimMessage")
public void pushWxConfrimMessage() {
tEmployeeInsurancePreService.pushWxConfrimMessage();
}
}
......@@ -29,4 +29,6 @@ public interface TEmployeeInsurancePreMapper extends BaseMapper<TEmployeeInsuran
long selectExportCount(@Param("employeeRegistration") TEmployeeInsurancePreSearchVo employeeRegistration);
List<TEmployeeInsurancePreExportVo> selectExportList(@Param("employeeRegistration") TEmployeeInsurancePreSearchVo employeeRegistration);
List<TEmployeeInsurancePre> getAllUnconfimData();
}
......@@ -79,10 +79,12 @@ public interface TEmployeeInsurancePreService extends IService<TEmployeeInsuranc
* @param status 状态
* @return
*/
void saveInsurancePreInfo(String id,String status);
void updateInsurancePreInfo(String id,String status);
TEmployeeInsuranceSelectVo selectInsurancePreInfoList(TEmployeeInsurancePreVo preVo);
void updateInsurancePreCustomerName(EmployeeRegistrationCustomerUserUpdateVo updateVo);
void pushWxConfrimMessage();
}
......@@ -288,7 +288,7 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
}
@Override
public void saveInsurancePreInfo(String id, String status) {
public void updateInsurancePreInfo(String id, String status) {
if (Common.isNotNull(id) && Common.isNotNull(status)) {
TEmployeeInsurancePre preExit = baseMapper.selectById(id);
if (Common.isNotNull(preExit)) {
......@@ -317,10 +317,21 @@ public class TEmployeeInsurancePreServiceImpl extends ServiceImpl<TEmployeeInsur
public void updateInsurancePreCustomerName(EmployeeRegistrationCustomerUserUpdateVo updateVo) {
LambdaUpdateWrapper<TEmployeeInsurancePre> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(TEmployeeInsurancePre::getDeptNo,updateVo.getDeptNo())
.set(TEmployeeInsurancePre::getCustomerUsername, updateVo.getCustomerUserName());
.set(TEmployeeInsurancePre::getCustomerUsername, updateVo.getCustomerUserName())
.set(TEmployeeInsurancePre::getCustomerUserLoginname, updateVo.getCustomerUserLoginName());
this.update(updateWrapper);
}
@Override
public void pushWxConfrimMessage() {
//获取所有预计派单时间为当天而且状态是待确认的商险待购买数据
List<TEmployeeInsurancePre> unConfirmList = baseMapper.getAllUnconfimData();
if (Common.isNotNull(unConfirmList) && !unConfirmList.isEmpty()) {
}
}
/**
* @Description: 获取前端客服的所有项目权限
* @Author: huych
......
......@@ -17,6 +17,7 @@
<result property="deptNo" column="dept_no"/>
<result property="deptId" column="dept_id"/>
<result property="expectedCollectionTime" column="expected_collection_time"/>
<result property="customerUserLoginname" column="customer_user_loginname"/>
<result property="registUser" column="regist_user"/>
<result property="registTime" column="regist_time"/>
<result property="insuranceCompanyName" column="insurance_company_name"/>
......@@ -73,6 +74,7 @@
a.dept_no,
a.dept_id,
a.expected_collection_time,
a.customer_user_loginname,
a.regist_user,
a.regist_time,
a.insurance_company_name,
......@@ -274,9 +276,6 @@
SELECT
<include refid="Base_Column_List"/>
FROM t_employee_insurance_pre a
<where>
1=1
<include refid="tEmployeeInsurancePre_where"/>
</where>
where a.process_status = '0' and DATE_FORMAT(a.expected_collection_time,"%Y-%m-%d") = CURDATE()
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment