| | |
| | | |
| | | import com.dy.common.webUtil.QueryResultVo; |
| | | import com.dy.pipIrrGlobal.daoBa.BaUserMapper; |
| | | import com.dy.pipIrrGlobal.pojoBa.BaDistrict; |
| | | import com.dy.pipIrrGlobal.pojoBa.BaUser; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Slf4j |
| | | @Service |
| | | //public class UserSv extends MPJBaseServiceImpl<BaUserMapper, BaUser> { |
| | | public class UserSv { |
| | | |
| | | private BaUserMapper dao; |
| | |
| | | /** |
| | | * 保存实体 |
| | | * @param po 实体 |
| | | * @return 数量 |
| | | * @return 影响记录数量 |
| | | */ |
| | | @Transactional |
| | | public int save(BaUser po){ |
| | |
| | | /** |
| | | * 保存修改实体 |
| | | * @param po 实体 |
| | | * @return 数量 |
| | | * @return 影响记录数量 |
| | | */ |
| | | @Transactional |
| | | public int update(BaUser po){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 修改密码 |
| | | * @param id 用户ID |
| | | * @param password 新密码 |
| | | * @return 影响记录数量 |
| | | */ |
| | | public int changePassword(Long id, String password){ |
| | | return this.dao.changePassword(id, password) ; |
| | | } |
| | | |
| | | /** |
| | | * 保存修改实体 |
| | | * @param id 实体ID |
| | | * @return 数量 |
| | | * @return 影响记录数量 |
| | | */ |
| | | @Transactional |
| | | public int delete(Long id){ |