Commit 254eed67 authored by licc's avatar licc

fix

parent f09d7c0b
...@@ -142,12 +142,12 @@ ...@@ -142,12 +142,12 @@
</select> </select>
<!--查询全部--> <!--查询全部-->
<select id="findAll" resultType="User"> <select id="findAll" resultType="cn.wisenergy.model.app.User">
select * from User select * from User
</select> </select>
<!--查询用户--> <!--查询用户-->
<select id="findByName" resultType="User"> <select id="findByName" resultType="cn.wisenergy.model.app.User">
select * from User where user_id = #{userId} select * from User where user_id = #{userId}
</select> </select>
......
package cn.wisenergy.service.app.impl; package cn.wisenergy.service.app.impl;
import cn.wisenergy.common.utils.R;
import cn.wisenergy.mapper.UsersMapper; import cn.wisenergy.mapper.UsersMapper;
import cn.wisenergy.model.app.User; import cn.wisenergy.model.app.User;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* @ Description: 用户接口实现 * @ Description: 用户接口实现
......
...@@ -10,10 +10,9 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2; ...@@ -10,10 +10,9 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
/** /**
* Created by m1991 on 2021/2/23 15:45 * Created by m1991 on 2021/2/23 15:45
*/ */
@EnableSwagger2
@RestController @RestController
@RequestMapping("/sys") @RequestMapping("/sys")
public class UserController { public class UserSysController {
@Autowired @Autowired
UserService userService; UserService userService;
......
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