Commit 49806c7c by sdif

添加医院列表详细位置

parent bb7f0db4
...@@ -10,6 +10,7 @@ import com.pz.common.core.domain.entity.SysUser; ...@@ -10,6 +10,7 @@ import com.pz.common.core.domain.entity.SysUser;
import com.pz.common.core.page.TableDataInfo; import com.pz.common.core.page.TableDataInfo;
import com.pz.common.core.domain.PageQuery; import com.pz.common.core.domain.PageQuery;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.pz.common.enums.UserType;
import com.pz.common.exception.ServiceException; import com.pz.common.exception.ServiceException;
import com.pz.common.utils.StringUtils; import com.pz.common.utils.StringUtils;
import com.pz.merchant.domain.Company; import com.pz.merchant.domain.Company;
...@@ -52,6 +53,8 @@ public class CompanyServiceImpl implements ICompanyService { ...@@ -52,6 +53,8 @@ public class CompanyServiceImpl implements ICompanyService {
private final IncomeMapper incomeMapper; private final IncomeMapper incomeMapper;
private final SysUserMapper sysUserMapper;
/** /**
* 查询商户 * 查询商户
*/ */
...@@ -119,6 +122,15 @@ public class CompanyServiceImpl implements ICompanyService { ...@@ -119,6 +122,15 @@ public class CompanyServiceImpl implements ICompanyService {
public Boolean updateByBo(CompanyBo bo) { public Boolean updateByBo(CompanyBo bo) {
Company update = BeanUtil.toBean(bo, Company.class); Company update = BeanUtil.toBean(bo, Company.class);
validEntityBeforeSave(update); validEntityBeforeSave(update);
SysUser sysUser = new SysUser();
sysUser.setUserId(update.getUid().longValue());
if(update.getStatus() == 0 || update.getStatus() == 2){
sysUser.setUserType(UserType.XCX_USER.getUserType());
sysUserMapper.updateById(sysUser);
}else if(update.getStatus() == 1){
sysUser.setUserType(UserType.APP_USER.getUserType());
sysUserMapper.updateById(sysUser);
}
return baseMapper.updateById(update) > 0; return baseMapper.updateById(update) > 0;
} }
......
...@@ -177,6 +177,15 @@ public class EmployeesServiceImpl implements IEmployeesService { ...@@ -177,6 +177,15 @@ public class EmployeesServiceImpl implements IEmployeesService {
public Boolean updateByBo(EmployeesBo bo) { public Boolean updateByBo(EmployeesBo bo) {
Employees update = BeanUtil.toBean(bo, Employees.class); Employees update = BeanUtil.toBean(bo, Employees.class);
validEntityBeforeSave(update); validEntityBeforeSave(update);
SysUser sysUser = new SysUser();
sysUser.setUserId(update.getUid().longValue());
if(update.getStatus() == 0 || update.getStatus() == 2){
sysUser.setUserType(UserType.XCX_USER.getUserType());
sysUserMapper.updateById(sysUser);
}else if(update.getStatus() == 1){
sysUser.setUserType(UserType.APP_USER.getUserType());
sysUserMapper.updateById(sysUser);
}
return baseMapper.updateById(update) > 0; return baseMapper.updateById(update) > 0;
} }
......
...@@ -65,6 +65,10 @@ public class Hospital extends BaseEntity { ...@@ -65,6 +65,10 @@ public class Hospital extends BaseEntity {
*/ */
private Integer status; private Integer status;
/** /**
* 地图位置
*/
private String mapAddress;
/**
* 删除标志(0代表存在 2代表删除) * 删除标志(0代表存在 2代表删除)
*/ */
@TableLogic @TableLogic
......
...@@ -73,5 +73,10 @@ public class HospitalBo extends BaseEntity { ...@@ -73,5 +73,10 @@ public class HospitalBo extends BaseEntity {
*/ */
private Integer status; private Integer status;
/**
* 地图位置
*/
private String mapAddress;
private List<Integer> hisId; private List<Integer> hisId;
} }
...@@ -101,7 +101,10 @@ public class HospitalVo { ...@@ -101,7 +101,10 @@ public class HospitalVo {
* 城市名称 * 城市名称
*/ */
private String cityName; private String cityName;
/**
* 地图位置
*/
private String mapAddress;
/** /**
* 关联科室集 * 关联科室集
*/ */
......
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