4 changed files with 46 additions and 14 deletions
@ -0,0 +1,20 @@ |
|||||||
|
/** |
||||||
|
* @author JOJO |
||||||
|
* @class Uses |
||||||
|
* @date 2023/3/8 |
||||||
|
* @apiNote |
||||||
|
*/ |
||||||
|
|
||||||
|
package co.depsystem.application2.DAO.mapper.DO; |
||||||
|
|
||||||
|
import lombok.Data; |
||||||
|
|
||||||
|
@Data |
||||||
|
public class Uses { |
||||||
|
private Integer id; |
||||||
|
private String number; |
||||||
|
private Integer iphone; |
||||||
|
private String workType; |
||||||
|
private String loginDate; |
||||||
|
private Integer loginNumber; |
||||||
|
} |
||||||
@ -1,4 +1,21 @@ |
|||||||
package co.depsystem.application2.DAO.mapper; |
package co.depsystem.application2.DAO.mapper; |
||||||
|
|
||||||
public interface UserMapper{ |
import co.depsystem.application2.DAO.mapper.DO.Uses; |
||||||
|
import co.depsystem.application2.DAO.mapper.util.Curmp; |
||||||
|
import org.apache.ibatis.annotations.Insert; |
||||||
|
import org.apache.ibatis.annotations.Mapper; |
||||||
|
import org.apache.ibatis.annotations.Param; |
||||||
|
import org.apache.ibatis.annotations.Select; |
||||||
|
import org.springframework.stereotype.Repository; |
||||||
|
|
||||||
|
@Repository |
||||||
|
@Mapper |
||||||
|
public interface UserMapper extends Curmp<Uses> { |
||||||
|
/** 查询 |
||||||
|
* */ |
||||||
|
@Select("select * from uses where number = #usernumber") |
||||||
|
public void getUserName(@Param("usernumber")String usernumber); |
||||||
|
|
||||||
|
@Insert("insert into depsystem.uses values (#o)") |
||||||
|
public void setUser(@Param("o") Object o); |
||||||
} |
} |
||||||
|
|||||||
Loading…
Reference in new issue