大家好✌!我是CZ淡陌。一名专注以理论为基础实战为主的技术博主,将再这里为大家分享优质的实战项目,本人在Java毕业设计领域有多年的经验,陆续会更新更多优质的Java实战项目,希望你能有所收获,少走一些弯路,向着优秀程序员前行!
更多优质项目可点击下方获取文章底部或评论区获取
Java项目精品实战案例《100套》
有源码 查看源码
随着社会文明的进步,人们希望身心健康、延年益寿,追求精神满足和享受人生乐趣。体育运动是实现这个目标的重要方式之一,它具有健身性、娱乐性、思想性等多方面的作用,而且可以充实人类的文化生活、提高文化水准和生命质量,改善人们的生活习惯,培养高尚品格,对社会的良性发展有积极的调节作用。
健身房管理系统可以更好地帮助健身房实现会员信息管理,健身房设备相关管理,提高健身房的运营效率。
开发系统:Windows
JDK版本:Java JDK1.8(推荐)
开发工具:IDEA
数据库版本: mysql8.0(推荐)
数据库可视化工具: navicat
服务器:SpringBoot自带 apache tomcat
主要技术:Java,Springboot,mybatis,mysql,jquery,html
@Service
public class EmployeeServiceImpl implements EmployeeService {
@Autowired
private EmployeeMapper employeeMapper;
@Override
public List<Employee> findAll() {
return employeeMapper.findAll();
}
@Override
public Boolean deleteByEmployeeAccount(Integer employeeAccount) {
return employeeMapper.deleteByEmployeeAccount(employeeAccount);
}
@Override
public Boolean insertEmployee(Employee employee) {
return employeeMapper.insertEmployee(employee);
}
@Override
public Boolean updateMemberByEmployeeAccount(Employee employee) {
return employeeMapper.updateMemberByEmployeeAccount(employee);
}
@Override
public List<Employee> selectByEmployeeAccount(Integer employeeAccount) {
return employeeMapper.selectByEmployeeAccount(employeeAccount);
}
@Override
public Integer selectTotalCount() {
return employeeMapper.selectTotalCount();
}
}
@Mapper
public interface EmployeeMapper {
//查询所有员工
List<Employee> findAll();
//根据员工账号删除员工
Boolean deleteByEmployeeAccount(Integer employeeAccount);
//添加新员工
Boolean insertEmployee(Employee employee);
//根据员工账号修改会员信息
Boolean updateMemberByEmployeeAccount(Employee employee);
//根据员工账号查询员工
List<Employee> selectByEmployeeAccount(Integer employeeAccount);
//查询员工数
Integer selectTotalCount();
}
<select id="findAll" resultType="employee">
SELECT *
FROM employee
</select>
<delete id="deleteByEmployeeAccount" parameterType="java.lang.Integer">
DELETE
FROM employee
WHERE employee_account = #{employeeAccount}
</delete>
<insert id="insertEmployee" parameterType="employee">
INSERT INTO employee (employee_account, employee_name, employee_gender,
employee_age, entry_time, staff, employee_message)
VALUES (#{employeeAccount}, #{employeeName}, #{employeeGender},
#{employeeAge}, #{entryTime}, #{staff}, #{employeeMessage})
</insert>
<update id="updateMemberByEmployeeAccount" parameterType="employee">
UPDATE employee
SET employee_account = #{employeeAccount},
employee_name = #{employeeName},
employee_gender = #{employeeGender},
employee_age = #{employeeAge},
staff = #{staff},
employee_message=#{employeeMessage}
WHERE employee_account = #{employeeAccount}
</update>
<select id="selectByEmployeeAccount" parameterType="java.lang.Integer" resultType="employee">
SELECT *
FROM employee
WHERE employee_account = #{employeeAccount}
</select>
<select id="selectTotalCount" resultType="java.lang.Integer">
SELECT count(*)
FROM employee
</select>
分享的所有Java项目源码均包含(前端+后台+数据库),可做毕业设计或课程设计,欢迎留言分享问题,交流经验
更多优质项目可点击下方获取文章底部或评论区获取
Java项目精品实战案例《100套》
有源码 查看源码