Commit e919bb9b by 陈浩建

账号验证管理调整--(正则转义问题未修复)

parent aef13312
...@@ -163,9 +163,12 @@ public class codeManagerController { ...@@ -163,9 +163,12 @@ public class codeManagerController {
@RequestMapping(value = "getRegularById", method = RequestMethod.POST) @RequestMapping(value = "getRegularById", method = RequestMethod.POST)
@ResponseBody @ResponseBody
public ResponseData<Object> getRegularById(String regularId) { public ResponseData<Object> getRegularById(String regularId) {
Wrapper<Regular> wrapper = new EntityWrapper<>();
Regular regulars = regularMapper.selectById(regularId); wrapper.eq("regular_id",regularId);
return ResponseData.success(regulars, "查询成功!"); wrapper.eq("is_show","1");
List<Regular> regulars = regularMapper.selectList(wrapper);
// Regular regulars = regularMapper.selectById(regularId);
return ResponseData.success(regulars.get(0), "查询成功!");
} }
//检查学生证号是否在学生清单内 //检查学生证号是否在学生清单内
@ResponseBody @ResponseBody
......
...@@ -38,6 +38,12 @@ public class Regular implements Serializable { ...@@ -38,6 +38,12 @@ public class Regular implements Serializable {
/** /**
* *
*/ */
@TableField(value = "password_msg")
private String passwordMsg;
/**
*
*/
@TableField(value = "regular_name") @TableField(value = "regular_name")
private String regularName; private String regularName;
/** /**
......
...@@ -87,6 +87,7 @@ public class RegularController extends BaseController { ...@@ -87,6 +87,7 @@ public class RegularController extends BaseController {
dataMapping.put("regular", pro.getRegular()); dataMapping.put("regular", pro.getRegular());
dataMapping.put("tips", pro.getTips()); dataMapping.put("tips", pro.getTips());
dataMapping.put("placeholder", pro.getPlaceholder()); dataMapping.put("placeholder", pro.getPlaceholder());
dataMapping.put("password_msg", pro.getPasswordMsg());
dataMapping.put("is_show", pro.getIsShow()); dataMapping.put("is_show", pro.getIsShow());
regularMapper.updateForSet(MyBatisPlusUpdateUtils.toUpdateSet(dataMapping), wrapper); regularMapper.updateForSet(MyBatisPlusUpdateUtils.toUpdateSet(dataMapping), wrapper);
return ResponseData.success("修改成功!"); return ResponseData.success("修改成功!");
......
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