提交 | 用户 | 时间
|
58d006
|
1 |
package com.mandi.fendan.mapper; |
A |
2 |
|
|
3 |
import java.util.List; |
|
4 |
import java.util.Map; |
|
5 |
|
|
6 |
import org.apache.ibatis.annotations.Delete; |
|
7 |
import org.apache.ibatis.annotations.Insert; |
|
8 |
import org.apache.ibatis.annotations.Select; |
|
9 |
import org.apache.ibatis.annotations.Update; |
|
10 |
|
|
11 |
import com.mandi.fendan.persist.Fd_Erpconfig; |
|
12 |
|
|
13 |
|
|
14 |
public interface Fd_ErpconfigMapper { |
|
15 |
@Select("select a.* from fd_erpconfig a where a.id=#{id}") |
|
16 |
public Fd_Erpconfig get(String id); |
|
17 |
|
|
18 |
@Delete("delete from fd_erpconfig where id=#{id}") |
|
19 |
public int del(String id); |
|
20 |
|
|
21 |
@Update("update fd_erpconfig set db=#{db},dbsign=#{dbsign},note=#{note},post=#{post},pwd=#{pwd},uri=#{uri},username=#{username},ztsign=#{ztsign},ztval=#{ztval} where id=#{id}") |
|
22 |
public int update(Fd_Erpconfig fd_erpconfig); |
|
23 |
@Insert("insert into fd_erpconfig(id,db,dbsign,note,post,pwd,uri,username,ztsign,ztval) values (#{id},#{db},#{dbsign},#{note},#{post},#{pwd},#{uri},#{username},#{ztsign},#{ztval})") |
|
24 |
public int insert(Fd_Erpconfig fd_erpconfig); |
|
25 |
public List<Fd_Erpconfig> getList1(Map<String, Object> map); |
|
26 |
|
|
27 |
@Select("select top 1 * from fd_erpconfig where dbsign=#{dbsign}") |
|
28 |
public Fd_Erpconfig getbySign(String dbsign); |
|
29 |
@Select("select * from fd_erpconfig ") |
|
30 |
public List<Fd_Erpconfig> getall(); |
|
31 |
|
|
32 |
public List<Fd_Erpconfig> getList(Map<String, Object> mp); |
|
33 |
public int getPages(Map<String, Object> mp); |
|
34 |
} |