You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SRuml/BusinessMapper.java

40 lines
690 B

3 months ago
package com.example.mapper;
import com.example.entity.Business;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* business
*/
public interface BusinessMapper {
/**
*
*/
int insert(Business business);
/**
*
*/
int deleteById(Integer id);
/**
*
*/
int updateById(Business business);
/**
* ID
*/
Business selectById(Integer id);
/**
*
*/
List<Business> selectAll(Business business);
@Select("select * from business where username = #{username}")
Business selectByUsername(String username);
}