diff --git a/src/cn/edu/hactcm/dao/AdminDao.xml b/src/cn/edu/hactcm/dao/AdminDao.xml new file mode 100644 index 0000000..1768369 --- /dev/null +++ b/src/cn/edu/hactcm/dao/AdminDao.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + insert into d_admin (a_username,a_password,a_name,a_phone,a_power,a_describe) + values(#{a_username},#{a_password},#{a_name},#{a_phone},#{a_power},#{a_describe}) + + + + + delete from d_admin where a_id=#{a_id} + + + + + + + + + update d_admin + + + a_username=#{a_username}, + + + a_password=#{a_password}, + + + a_name=#{a_name}, + + + a_phone=#{a_phone}, + + + a_power=#{a_power}, + + + a_describe=#{a_describe}, + + + where a_id = #{a_id} + +