change - add员工工资记录

main
yinq 5 months ago
parent 831bad93f7
commit 92da9bae1d

@ -0,0 +1,43 @@
package com.os.mes.record.controller;
import com.os.common.core.controller.BaseController;
import com.os.common.core.domain.AjaxResult;
import com.os.common.core.page.TableDataInfo;
import com.os.mes.base.domain.BaseCustomData;
import com.os.mes.record.domain.RecordStaffAttendance;
import com.os.mes.record.domain.RecordStaffSalary;
import com.os.mes.record.service.IRecordStaffAttendanceService;
import com.os.mes.record.service.IRecordStaffSalaryService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
* Controller
*
* @author Yinq
* @date 2024-05-24
*/
@RestController
@RequestMapping("/mes/record/staffSalary")
public class RecordStaffSalaryController extends BaseController {
@Autowired
private IRecordStaffSalaryService staffSalaryService;
/**
*
* @param recordStaffSalary
* @return
*/
@GetMapping("/selectTeamEmployeesWages")
public AjaxResult selectTeamEmployeesWages(RecordStaffSalary recordStaffSalary) {
List<RecordStaffSalary> list = staffSalaryService.selectTeamEmployeesWages(recordStaffSalary);
return success(list);
}
}

@ -0,0 +1,143 @@
package com.os.mes.record.domain;
import com.os.common.annotation.Excel;
import com.os.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import java.util.Date;
/**
* record_staff_attendance
*
* @author Yinq
* @date 2024-05-24
*/
public class RecordStaffSalary extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@Excel(name = "班组编号")
private String teamCode;
/**
*
*/
@Excel(name = "班组名称")
private String teamName;
/**
* ID
*/
@Excel(name = "员工ID")
private String staffId;
/**
*
*/
@Excel(name = "员工名称")
private String staffName;
/**
*
*/
@Excel(name = "工资系数")
private BigDecimal wageCoefficient;
/**
*
*/
@Excel(name = "工资")
private BigDecimal wage;
/**
*
*/
@Excel(name = "开始日期")
private Date beginDate;
/**
*
*/
@Excel(name = "结束日期")
private Date endDate;
public String getTeamCode() {
return teamCode;
}
public void setTeamCode(String teamCode) {
this.teamCode = teamCode;
}
public String getTeamName() {
return teamName;
}
public void setTeamName(String teamName) {
this.teamName = teamName;
}
public String getStaffId() {
return staffId;
}
public void setStaffId(String staffId) {
this.staffId = staffId;
}
public String getStaffName() {
return staffName;
}
public void setStaffName(String staffName) {
this.staffName = staffName;
}
public BigDecimal getWageCoefficient() {
return wageCoefficient;
}
public void setWageCoefficient(BigDecimal wageCoefficient) {
this.wageCoefficient = wageCoefficient;
}
public BigDecimal getWage() {
return wage;
}
public void setWage(BigDecimal wage) {
this.wage = wage;
}
public Date getBeginDate() {
return beginDate;
}
public void setBeginDate(Date beginDate) {
this.beginDate = beginDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
@Override
public String toString() {
return "RecordStaffSalary{" +
"teamCode='" + teamCode + '\'' +
", teamName='" + teamName + '\'' +
", staffId='" + staffId + '\'' +
", staffName='" + staffName + '\'' +
", wageCoefficient=" + wageCoefficient +
", wage=" + wage +
", beginDate=" + beginDate +
", endDate=" + endDate +
'}';
}
}

@ -0,0 +1,24 @@
package com.os.mes.record.service;
import com.os.mes.record.domain.RecordStaffAttendance;
import com.os.mes.record.domain.RecordStaffSalary;
import java.util.List;
/**
* Service
*
* @author Yinq
* @date 2024-05-24
*/
public interface IRecordStaffSalaryService {
/**
*
* @param recordStaffSalary
* @return
*/
List<RecordStaffSalary> selectTeamEmployeesWages(RecordStaffSalary recordStaffSalary);
}

@ -0,0 +1,43 @@
package com.os.mes.record.service.impl;
import com.os.mes.prod.domain.ProdOrderDetail;
import com.os.mes.prod.mapper.ProdOrderDetailMapper;
import com.os.mes.record.domain.RecordStaffSalary;
import com.os.mes.record.mapper.RecordStaffAttendanceMapper;
import com.os.mes.record.service.IRecordStaffSalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Service
*
* @author Yinq
* @date 2024-05-24
*/
@Service
public class RecordStaffSalaryServiceImpl implements IRecordStaffSalaryService {
@Autowired
private RecordStaffAttendanceMapper recordStaffAttendanceMapper;
@Autowired
private ProdOrderDetailMapper prodOrderDetailMapper;
/**
*
* @param recordStaffSalary
* @return
*/
@Override
public List<RecordStaffSalary> selectTeamEmployeesWages(RecordStaffSalary recordStaffSalary) {
ProdOrderDetail orderDetail = new ProdOrderDetail();
List<ProdOrderDetail> prodOrderDetails = prodOrderDetailMapper.selectProdOrderDetailList(orderDetail);
return null;
}
}
Loading…
Cancel
Save