智慧保安后台管理项目备份
Administrator
2021-08-16 454ec801479b822c8225ed2c963f7f643b1ca7c6
保安员查询新增身份证号模糊查询
2 files modified
8 ■■■■■ changed files
src/main/java/org/springblade/modules/investigate/Investigate.java 5 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml 3 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/investigate/Investigate.java
@@ -47,7 +47,6 @@
    /**
     *
     * @param idCardNo 身份证号码
     * @return
     */
    @GetMapping("/investigate/byUser")
@@ -56,9 +55,9 @@
        List<User> users = userService.getAllUserList();
        //遍历
        users.forEach(InvestigateUtil.consumerWithIndex((user,index) ->{
            if (index==99){
            if (index==80){
                try {
                    Thread.sleep(1000);
                    Thread.sleep(500);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -118,6 +118,9 @@
        <if test="user.account!=null and user.account != ''">
            and bu.account != #{user.account}
        </if>
        <if test="user.cardid!=null and user.cardid != ''">
            and bu.cardid like concat(concat('%', #{user.cardid}),'%')
        </if>
        <if test="user.realName!=null and user.realName != ''">
            and bu.real_name like concat(concat('%', #{user.realName}),'%')
        </if>