| | |
| | | // ||StringUtils.isBlank(param.getLinkName()) |
| | | // ||StringUtils.isBlank(param.getLinkPhone()) |
| | | // ||Objects.isNull(param.getEditDate()) |
| | | |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到上级组织数据"); |
| | | } |
| | | } |
| | | String rootOrgId = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_ROOTORG_CODE).getCode(); |
| | | if(Objects.isNull(company)){ |
| | | company = new Company(); |
| | | company.setId(null); |
| | |
| | | company.setHkStatus(Constants.ZERO); |
| | | company.setErpStatus(Constants.ONE); |
| | | company.setErpDate(new Date()); |
| | | company.setName(param.getName()); |
| | | /* if(StringUtils.isNotBlank(param.getParentId())){ |
| | | company.setHkId(rootOrgId); |
| | | }*/ |
| | | company.setErpId(param.getId()); |
| | | company.setErpParentId(param.getParentId()); |
| | | company.setParentId(Objects.isNull(parentCompany)?null:parentCompany.getId()); |
| | | company.setErpParentId(param.getParentId()); |
| | | company.setFsStatus(Constants.ZERO); |
| | | company.setType(Constants.ONE); |
| | | company.setLinkName(param.getLinkName()); |
| | |
| | | // BeanUtils.copyProperties(param,company); |
| | | company.setEditDate(new Date()); |
| | | company.setErpId(param.getId()); |
| | | /* if(StringUtils.isNotBlank(param.getParentId())){ |
| | | company.setHkId(rootOrgId); |
| | | }*/ |
| | | company.setHkStatus(Constants.ZERO); |
| | | company.setErpDate(new Date()); |
| | | company.setName(param.getName()); |
| | | company.setErpParentId(param.getParentId()); |
| | | company.setParentId(Objects.isNull(parentCompany)?null:parentCompany.getId()); |
| | | company.setLinkName(param.getLinkName()); |
| | |
| | | public void userUpdate(UserUpdateRequest param){ |
| | | try{ |
| | | if(Objects.isNull(param) |
| | | ||Objects.isNull(param.getId()) |
| | | ||StringUtils.isBlank(param.getName()) |
| | | ||StringUtils.isBlank(param.getIdNo()) |
| | | ||Objects.isNull(param.getIdType()) |
| | | ||Objects.isNull(param.getSex()) |
| | | ||Objects.isNull(param.getOrgId()) |
| | | ||StringUtils.isNotBlank(param.getFaceImg()) |
| | | ||StringUtils.isNotBlank(param.getCode()) |
| | | ||StringUtils.isNotBlank(param.getPhone()) |
| | | ||Objects.isNull(param.getEditDate())){ |
| | | ||Objects.isNull(param.getId())//编码 |
| | | ||StringUtils.isBlank(param.getName())//名称 |
| | | ||StringUtils.isBlank(param.getIdNo())//证件号 |
| | | ||Objects.isNull(param.getIdType())//证件类型 |
| | | ||Objects.isNull(param.getSex())//性别 |
| | | ||Objects.isNull(param.getOrgId())//所属组织编码 |
| | | ||StringUtils.isBlank(param.getFaceImg())//人脸照片 |
| | | ||StringUtils.isBlank(param.getCode())//工号 |
| | | ||StringUtils.isBlank(param.getPhone())//手机号 |
| | | ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | Member member = memberMapper.selectOne(new QueryWrapper<Member>().lambda().eq(Member::getErpId,param.getId()).last("limit 1")); |