You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
337 B

6 years ago
package org.use.service;
import org.use.dao.UseDao;
import org.use.entity.Use;
public class UseService {
UseDao useDao = new UseDao();
public boolean regUse(Use use) {
if(!useDao.isExist(use.getUsername())) {
useDao.addUse(use);
return true;
}else {
System.out.println("此人已经存在!");
return false;
}
}
}