jiapeng 8 vuotta sitten
vanhempi
commit
9b35ead238

+ 6 - 0
src/main/java/com/ekexiu/console/system/dao/OrgDao.java

4
import java.sql.SQLException;
4
import java.sql.SQLException;
5

5

6
import org.jfw.apt.annotation.Nullable;
6
import org.jfw.apt.annotation.Nullable;
7
import org.jfw.apt.orm.annotation.dao.Batch;
7
import org.jfw.apt.orm.annotation.dao.DAO;
8
import org.jfw.apt.orm.annotation.dao.DAO;
8
import org.jfw.apt.orm.annotation.dao.method.From;
9
import org.jfw.apt.orm.annotation.dao.method.From;
9
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
10
import org.jfw.apt.orm.annotation.dao.method.OrderBy;
31
	@DeleteWith
32
	@DeleteWith
32
	@From(Organization.class)
33
	@From(Organization.class)
33
	int delete(Connection con, String id) throws SQLException;
34
	int delete(Connection con, String id) throws SQLException;
35
	
36
	@DeleteWith
37
	@Batch
38
	@From(Organization.class)
39
	int[] delete(Connection con, @Batch String[] id) throws SQLException;
34

40

35
	@Nullable
41
	@Nullable
36
	@SelectOne
42
	@SelectOne

+ 5 - 0
src/main/java/com/ekexiu/console/system/service/OrgService.java

61
	public Organization query(@JdbcConn Connection con,@PathVar String id)throws SQLException{
61
	public Organization query(@JdbcConn Connection con,@PathVar String id)throws SQLException{
62
		return this.orgDao.query(con, id);
62
		return this.orgDao.query(con, id);
63
	}
63
	}
64
	@Post
65
	@Path("/del")
66
	public void delete(@JdbcConn(true) Connection con,String[] ids)throws SQLException{
67
		this.orgDao.delete(con, ids);
68
	}
64
	
69
	
65

70

66
}
71
}