Commit 04d19eec authored by 廖旭伟's avatar 廖旭伟

取消编辑人员信息时将来源改为自定义

parent 7d593584
...@@ -105,7 +105,7 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ ...@@ -105,7 +105,7 @@ public class StaffController extends BaseCRUDJsonBodyMappingController<StaffServ
@Override @Override
protected void saveBefore(StaffEntity entity, Map<String, Object> model, Context context) throws AppException { protected void saveBefore(StaffEntity entity, Map<String, Object> model, Context context) throws AppException {
entity.setSource(SourceEnum.自定义.getValue()); //entity.setSource(SourceEnum.自定义.getValue());
//判断手机号码是否包含* 如果包含则不添加更新 //判断手机号码是否包含* 如果包含则不添加更新
if (!entity.newEntity() && !ObjectUtils.isEmpty(entity.getPhoneNumber()) && StrUtil.contains(entity.getPhoneNumber(), "*")) { if (!entity.newEntity() && !ObjectUtils.isEmpty(entity.getPhoneNumber()) && StrUtil.contains(entity.getPhoneNumber(), "*")) {
entity.setPhoneNumber(null); entity.setPhoneNumber(null);
......
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