Commit 254eed67 authored by licc's avatar licc

fix

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