优化
This commit is contained in:
@ -144,6 +144,9 @@ public class BgtProjectRecruit implements Serializable {
|
||||
@ApiModelProperty("创建者ID")
|
||||
private Long userId;
|
||||
|
||||
@ApiModelProperty("招工状态(1-进行中,2-已招满,3-已过期)")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 删除标志(0代表存在 2代表删除)
|
||||
*/
|
||||
|
@ -48,4 +48,6 @@ public class BgtAttendanceVO {
|
||||
@ApiModelProperty("申请者列表")
|
||||
List<BgtProjectRecruitApplyVO> applyList;
|
||||
|
||||
@ApiModelProperty("到岗率")
|
||||
private Integer reportToDutyRate= 0;
|
||||
}
|
||||
|
@ -31,6 +31,10 @@ public class BgtProjectRecruitApplyVO implements Serializable {
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate entryTime;
|
||||
|
||||
@ApiModelProperty("离场时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate leaveTime;
|
||||
|
||||
@ApiModelProperty("务工者用户ID")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private Long userId;
|
||||
@ -65,4 +69,7 @@ public class BgtProjectRecruitApplyVO implements Serializable {
|
||||
@ApiModelProperty("打卡状态")
|
||||
private String attendanceStatus;
|
||||
|
||||
@ApiModelProperty("已打分数")
|
||||
private Double hasScore;
|
||||
|
||||
}
|
||||
|
@ -59,6 +59,13 @@ public class BusinessTask
|
||||
@Autowired
|
||||
private IWgzLeaveService iWgzLeaveService;
|
||||
|
||||
public void ryNoParams()
|
||||
{
|
||||
Console.log("-------------------------------------------------------------------------");
|
||||
Console.log("测试任务执行了");
|
||||
Console.log("-------------------------------------------------------------------------");
|
||||
}
|
||||
|
||||
/**
|
||||
* 招工任务招工时间结束自动拒绝未选择的务工者
|
||||
*/
|
||||
@ -143,7 +150,7 @@ public class BusinessTask
|
||||
//添加消息提醒
|
||||
WgzMessage wgzMessage = new WgzMessage().
|
||||
setSenderType(USERTYPE_SYSTEM).
|
||||
setRecipientType(USERTYPE_WGZ).
|
||||
setRecipientType(WgzAndBgtMessageConstant.USERTYPE_WGZ).
|
||||
setRecipientId(by.getUserId()).
|
||||
setHeadline(WgzAndBgtMessageConstant.wgzMessage(mp,"113")).
|
||||
setSubheading(WgzAndBgtMessageConstant.wgzMessage(mp,"114")).
|
||||
@ -267,7 +274,7 @@ public class BusinessTask
|
||||
//组装请假超时的消息
|
||||
WgzMessage wgzMessage = new WgzMessage().
|
||||
setSenderType(USERTYPE_SYSTEM).
|
||||
setRecipientType(USERTYPE_WGZ).
|
||||
setRecipientType(WgzAndBgtMessageConstant.USERTYPE_WGZ).
|
||||
setRecipientId(wgzLeave.getUserId()).
|
||||
setHeadline(WgzAndBgtMessageConstant.wgzMessage(mp,"117")).
|
||||
setSubheading(WgzAndBgtMessageConstant.wgzMessage(mp,"118")).
|
||||
|
@ -42,6 +42,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.RoundingMode;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.*;
|
||||
@ -425,6 +427,11 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
|
||||
bgtAttendanceVO.setReportToDutyNum(countVO.getReportToDutyNum());
|
||||
bgtAttendanceVO.setTotalNum(countVO.getTotalNum());
|
||||
bgtAttendanceVO.setAbsenceDutyNum(countVO.getTotalNum()-countVO.getReportToDutyNum());
|
||||
if(bgtAttendanceVO.getTotalNum()!=0){
|
||||
int rate = new BigDecimal(bgtAttendanceVO.getReportToDutyNum()).divide(new BigDecimal(bgtAttendanceVO.getTotalNum()), 2, RoundingMode.HALF_UP)
|
||||
.multiply(new BigDecimal(100)).intValue();
|
||||
bgtAttendanceVO.setReportToDutyRate(rate);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user