3.17优化
This commit is contained in:
@ -7,6 +7,8 @@ import lombok.Data;
|
|||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
import java.time.LocalDate;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@ -14,4 +16,10 @@ import lombok.experimental.Accessors;
|
|||||||
public class WgzAppDailyRecordReq extends PageReq {
|
public class WgzAppDailyRecordReq extends PageReq {
|
||||||
@ApiModelProperty(value = "务工者Id",hidden = true)
|
@ApiModelProperty(value = "务工者Id",hidden = true)
|
||||||
private Long userId;
|
private Long userId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "0正常 1补卡 2全部 ")
|
||||||
|
private String types;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "日期(格式:年-月-日)")
|
||||||
|
private LocalDate rq;
|
||||||
}
|
}
|
||||||
|
@ -213,14 +213,19 @@ public class WgzPayCalculationServiceImpl extends ServicePlusImpl<WgzPayCalculat
|
|||||||
setUserId(user.getUserId()).
|
setUserId(user.getUserId()).
|
||||||
setUserName(user.getUserName()).
|
setUserName(user.getUserName()).
|
||||||
setAuditorUserId(recruit.getUserId());
|
setAuditorUserId(recruit.getUserId());
|
||||||
boolean fjSave = iWgzPayCalculationFilesService.saveBatch(req.getPayCalculation());
|
|
||||||
if (!fjSave) {
|
|
||||||
throw new RuntimeException("附件新增失败!");
|
|
||||||
}
|
|
||||||
boolean save = save(wgzPayCalculation);
|
boolean save = save(wgzPayCalculation);
|
||||||
if (!save) {
|
if (!save) {
|
||||||
throw new RuntimeException("结算新增失败!");
|
throw new RuntimeException("结算新增失败!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req.getPayCalculation().forEach(data -> {
|
||||||
|
data.setCalculationId(wgzPayCalculation.getId());
|
||||||
|
});
|
||||||
|
boolean fjSave = iWgzPayCalculationFilesService.saveBatch(req.getPayCalculation());
|
||||||
|
if (!fjSave) {
|
||||||
|
throw new RuntimeException("附件新增失败!");
|
||||||
|
}
|
||||||
|
|
||||||
//5、将修改标识符的数据存放到中间表
|
//5、将修改标识符的数据存放到中间表
|
||||||
List<WgzPayCalculationMiddle> listMiddle = new ArrayList<>();
|
List<WgzPayCalculationMiddle> listMiddle = new ArrayList<>();
|
||||||
for (WgzAttendance data : attList) {
|
for (WgzAttendance data : attList) {
|
||||||
|
@ -43,7 +43,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
wgz_daily_clock a
|
wgz_daily_clock a
|
||||||
LEFT JOIN wgz_user b ON (a.user_id = b.user_id and b.del_flag = 0)
|
LEFT JOIN wgz_user b ON (a.user_id = b.user_id and b.del_flag = 0)
|
||||||
WHERE
|
WHERE
|
||||||
a.user_id = #{req.userId} and a.del_flag = 0
|
a.user_id = #{req.userId} and
|
||||||
|
DATE_FORMAT(dily_time, '%Y-%m-%d') = #{req.rq} and
|
||||||
|
<if test="req.types != 2">
|
||||||
|
status = #{req.types} and
|
||||||
|
</if>
|
||||||
|
a.del_flag = 0
|
||||||
ORDER BY
|
ORDER BY
|
||||||
a.id DESC
|
a.id DESC
|
||||||
</select>
|
</select>
|
||||||
|
Reference in New Issue
Block a user