Przeglądaj źródła

登录页自定义图片修改

dongjh 7 miesięcy temu
rodzic
commit
4d70518368

+ 13 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/interlockLoginConfig/controller/InterlockLoginConfigController.java

@@ -149,6 +149,19 @@ public class InterlockLoginConfigController extends JeecgController<InterlockLog
 		return Result.OK(interlockLoginConfig);
 	}
 
+	 /**
+	  * 查询定义的配置信息
+	  *
+	  * @return
+	  */
+	 //@AutoLog(value = "联锁登陆页配置表-查询定义的配置信息")
+	 @ApiOperation(value="联锁登陆页配置表-查询定义的配置信息", notes="联锁登陆页配置表-查询定义的配置信息")
+	 @GetMapping(value = "/queryLoginConfig")
+	 public Result<List<InterlockLoginConfig>> queryPageList() {
+		 List<InterlockLoginConfig> pageList = interlockLoginConfigService.queryPageList("0");
+		 return Result.OK(pageList);
+	 }
+
     /**
     * 导出excel
     *

+ 4 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/interlockLoginConfig/mapper/InterlockLoginConfigMapper.java

@@ -20,4 +20,8 @@ public interface InterlockLoginConfigMapper extends BaseMapper<InterlockLoginCon
     @Update("update interlock_login_config set status=#{interlockLoginConfig.status} where id=#{interlockLoginConfig.id}")
     void updateStatusById(@Param("interlockLoginConfig") InterlockLoginConfig interlockLoginConfig);
 
+    //查询定义的配置信息
+    @Select("select * from interlock_login_config where status=#{status} order by id desc limit 1")
+    List<InterlockLoginConfig> queryPageList(String status);
+
 }

+ 5 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/interlockLoginConfig/service/IInterlockLoginConfigService.java

@@ -4,6 +4,8 @@ import org.jeecg.modules.interlockLoginConfig.entity.InterlockLoginConfig;
 import com.baomidou.mybatisplus.extension.service.IService;
 import org.springframework.beans.factory.annotation.Autowired;
 
+import java.util.List;
+
 /**
  * @Description: 联锁登陆页配置表
  * @Author: jeecg-boot
@@ -15,4 +17,7 @@ public interface IInterlockLoginConfigService extends IService<InterlockLoginCon
     //根据id修改状态
     void updateStatusById(InterlockLoginConfig interlockLoginConfig);
 
+    //查询定义的配置信息
+    List<InterlockLoginConfig> queryPageList(String status);
+
 }

+ 7 - 0
jeecg-module-interlock/src/main/java/org/jeecg/modules/interlockLoginConfig/service/impl/InterlockLoginConfigServiceImpl.java

@@ -9,6 +9,8 @@ import org.springframework.stereotype.Service;
 
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 
+import java.util.List;
+
 /**
  * @Description: 联锁登陆页配置表
  * @Author: jeecg-boot
@@ -28,4 +30,9 @@ public class InterlockLoginConfigServiceImpl extends ServiceImpl<InterlockLoginC
         return;
     }
 
+    //查询定义的配置信息
+    public List<InterlockLoginConfig> queryPageList(String status) {
+        return interlockLoginConfigMapper.queryPageList(status);
+    }
+
 }