今天继续书写erp的功能。
@Override public void wages_get(Wages wages) { LocalDate currentDate = LocalDate.now(); // 获取月份 int month = currentDate.getMonthValue(); String month_now=month+"月"; wages.setMonth(month_now); empMapper.set_wages(wages); }
<el-dialog title="员工薪资的发放" :visible.sync="dialogVisible_wa" width="40%"> <el-form ref="form" :model="wages" label-width="80px"> <p>员工id: {{wages.empid}}</p> <p>员工姓名:{{wages.empname}}</p> <p>员工职位:{{wages.position}}</p> <p>员工职所属部门:{{ displayParentDepartment(wages.deptid) }}</p> <el-form-item label="发放工资"> <el-input-number v-model="wages.wages" :min="2000" :max="9000" ></el-input-number> <p>单位:元</p> </el-form-item> <el-form-item> <el-button type="primary" @click="submitForm2">发放工资</el-button> <el-button @click="closeDialog2">取消</el-button> </el-form-item> </el-form> </el-dialog>
@PostMapping("/wages") public Result wages(@RequestBody Wages wages){ empService.wages_get(wages); return Result.success(); }
标签:总结,get,month,每日,员工,Result,wages,now From: https://www.cnblogs.com/syhxx/p/17847684.html