12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- package com.pj.project4sp.admin;
- import java.util.List;
- import org.apache.ibatis.annotations.Mapper;
- import com.pj.utils.so.SoMap;
- import org.apache.ibatis.annotations.Param;
- /**
- * Mapper: 系统管理员表
- * @author kong
- */
- @Mapper
- public interface SpAdminMapper {
- /**
- * 增 #{name}, #{password}, #{roleId}
- * @param obj
- * @return
- */
- int add(SpAdmin obj);
- /**
- * 删
- * @param id
- * @return
- */
- int delete(long id);
- /**
- * 改
- * @param obj
- * @return
- */
- int update(SpAdmin obj);
- /**
- * 查
- * @param id
- * @return
- */
- SpAdmin getById(long id);
- /**
- * 查
- * @param so
- * @return
- */
- List<SpAdmin> getList(SoMap so);
- /**
- * 查询,根据name
- * @param name
- * @return
- */
- SpAdmin getByName(String name);
-
- /**
- * 查询,根据 phone
- * @param phone
- * @return
- */
- SpAdmin getByPhone(String phone);
- void setRole(@Param("id") Long id,@Param("roleId") String roleId);
- void removeByCustomerId(@Param("customerId") String customerId);
- void updateCustomerAdmin(@Param("customerId")String customerId, @Param("status")int status);
- }
|