|
|
@ -23,6 +23,7 @@ import com.dxhy.order.constant.OrderManagementConstant; |
|
|
|
import com.dxhy.order.model.R; |
|
|
|
import com.dxhy.order.model.R; |
|
|
|
import com.dxhy.order.utils.HttpUtils; |
|
|
|
import com.dxhy.order.utils.HttpUtils; |
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
import com.dxhy.order.utils.JsonUtils; |
|
|
|
|
|
|
|
import com.google.common.collect.Lists; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -437,6 +438,29 @@ public class UserInfoServiceImpl implements UserInfoService { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public DeptEntity querySysDeptEntity(DeptEntity deptEntity) { |
|
|
|
|
|
|
|
List<String> groupIdList = Lists.newArrayList(); |
|
|
|
|
|
|
|
groupIdList.add(deptEntity.getDeptId()); |
|
|
|
|
|
|
|
List<GroupManagementEntity> entityList = groupManagementService.queryByGroupIdList(groupIdList); |
|
|
|
|
|
|
|
if (entityList != null && entityList.size() > 0) { |
|
|
|
|
|
|
|
//选出默认项
|
|
|
|
|
|
|
|
Optional<GroupManagementEntity> groupManagementEntityOptional = entityList.stream() |
|
|
|
|
|
|
|
.filter(groupManagementEntity -> OrderInfoEnum.ORDER_KPZZGL_SFMRX_0.getKey().equals(groupManagementEntity.getDefaultItem())) |
|
|
|
|
|
|
|
.findFirst(); |
|
|
|
|
|
|
|
GroupManagementEntity groupManagementEntity = groupManagementEntityOptional.orElseGet(() -> entityList.get(0)); |
|
|
|
|
|
|
|
deptEntity.setTaxpayerCode(groupManagementEntity.getXhfNsrsbh()); |
|
|
|
|
|
|
|
//todo 虚拟组织:组织名称和销方名称公用此字段会有问题,后期优化
|
|
|
|
|
|
|
|
deptEntity.setName(groupManagementEntity.getGroupName()); |
|
|
|
|
|
|
|
deptEntity.setTaxpayerName(groupManagementEntity.getXhfMc()); |
|
|
|
|
|
|
|
deptEntity.setTaxpayerAddress(groupManagementEntity.getXhfDz()); |
|
|
|
|
|
|
|
deptEntity.setTaxpayerPhone(groupManagementEntity.getXhfDh()); |
|
|
|
|
|
|
|
deptEntity.setTaxpayerBank(groupManagementEntity.getXhfYh()); |
|
|
|
|
|
|
|
deptEntity.setTaxpayerAccount(groupManagementEntity.getXhfZh()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return deptEntity; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UserEntity ssoUserTransUserEntity(SsoUser ssoUser) { |
|
|
|
public UserEntity ssoUserTransUserEntity(SsoUser ssoUser) { |
|
|
|
UserEntity userEntity = new UserEntity(); |
|
|
|
UserEntity userEntity = new UserEntity(); |
|
|
|