src/main/java/cn/pzhu/pserson/dao/dao/GiveMapper.java
(完整代码) 1KBpackage cn.pzhu.pserson.dao.dao;
import cn.pzhu.pserson.dao.provider.GiveDynaSqlProvider;
import cn.pzhu.pserson.domain.Give;
import cn.pzhu.pserson.util.Constants;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
public interface GiveMapper extends Mapper<Give> {
@Select("select * from " + Constants.GIVETABLE + " order by createdate DESC")
List<Give> get_List();
@Select("select * from " + Constants.GIVETABLE
+ " where give_name like CONCAT('%',#{content},'%') or logistic_id like CONCAT('%',#{content},'%') order by createdate DESC")
List<Give> get_LikeList(String content);
@Select("select * from " + Constants.GIVETABLE + " where id = #{id}")
Give get_GiveInfo(Integer id);
@SelectProvider(type = GiveDynaSqlProvider.class, method = "insert_GiveInfo")
void insert_GiveInfo(Give give);
@SelectProvider(type = GiveDynaSqlProvider.class, method = "update_GiveInfo")
void update_GiveInfo(Give give);
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。