Commit de1b1a34 authored by huyuchen's avatar huyuchen

huych-含风险项目商险不购买申请提交

parent 0e38684e
......@@ -126,7 +126,7 @@ public class UpmsDaprUtils {
* @Param
* @return
**/
public R<Boolean> selectExitDeptCompany(String deptName) {
return HttpDaprUtil.invokeMethodPost(daprUpmsProperties.getAppUrl(),daprUpmsProperties.getAppId(),"/user/inner/selectExitDeptCompany", deptName, Boolean.class, SecurityConstants.FROM_IN);
public R<Boolean> selectExitDeptCompany(String deptId) {
return HttpDaprUtil.invokeMethodPost(daprUpmsProperties.getAppUrl(),daprUpmsProperties.getAppId(),"/user/inner/selectExitDeptCompany", deptId, Boolean.class, SecurityConstants.FROM_IN);
}
}
......@@ -416,9 +416,9 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
//申请人是否属于子分公司和该项目是否有审批通过记录赋值
private void setValue(TInsuranceUnpurchaseApply tInsuranceUnpurchaseApply,YifuUser user) {
if (Common.isNotNull(tInsuranceUnpurchaseApply.getDeptNo())) {
String deptName = user.getDeptName();
String deptId = user.getDeptId().toString();
R<Boolean> booleanR = upmsDaprUtils.selectExitDeptCompany(deptName);
R<Boolean> booleanR = upmsDaprUtils.selectExitDeptCompany(deptId);
if (Common.isEmpty(booleanR) || Boolean.FALSE.equals(booleanR.getData())) {
tInsuranceUnpurchaseApply.setCompanyFlag(CommonConstants.ONE_STRING);
} else {
......
......@@ -620,7 +620,7 @@ public class UserController {
@Inner
@PostMapping(value = {"/inner/selectExitDeptCompany"})
public Boolean selectExitDeptCompany(@RequestBody String deptName) {
return userService.selectExitDeptCompany(deptName);
public Boolean selectExitDeptCompany(@RequestBody String deptId) {
return userService.selectExitDeptCompany(deptId);
}
}
......@@ -82,5 +82,5 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
List<SysUser> getUserManagerByUpDepartIdUp(@Param("departId") Integer departId, @Param("roleId")String roleId);
String selectExitDeptCompany(@Param("deptName") String deptName);
String selectExitDeptCompany(@Param("deptId") String deptId);
}
......@@ -190,6 +190,6 @@ public interface SysUserService extends IService<SysUser> {
List<SysUser> getUserManagerByUpDepartIdUp(Integer departId, String roleId);
Boolean selectExitDeptCompany(String deptName);
Boolean selectExitDeptCompany(String deptId);
}
......@@ -953,8 +953,8 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
}
@Override
public Boolean selectExitDeptCompany(String deptName) {
String dn = baseMapper.selectExitDeptCompany(deptName);
public Boolean selectExitDeptCompany(String deptId) {
String dn = baseMapper.selectExitDeptCompany(deptId);
if (Common.isEmpty(dn)) {
return false;
}
......
......@@ -384,6 +384,6 @@
SELECT
dept_dn
from
sys_dept where name = #{deptName} limit 1
sys_dept where dept_id = #{deptId} limit 1
</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