Commit de1b1a34 authored by huyuchen's avatar huyuchen

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

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