修改
This commit is contained in:
parent
a39facfe63
commit
69d84a0efc
@ -195,7 +195,7 @@ func ExistLeaveApplyApproval(in *approval.CreateRequest) bool {
|
||||
Where("status in (?)", []uint64{StatusDoing, StatusOk})
|
||||
|
||||
if LeaveBalanceUsefulTime[in.Type] == OnceAYear {
|
||||
subQuery1.Where("DATE_FORMAT(created_at,%Y) = ?", time.Now().Format("2006"))
|
||||
subQuery1.Where(" STR_TO_DATE(created_at,%Y) = ?", time.Now().Format("2006"))
|
||||
}
|
||||
|
||||
subQuery1.Select("id")
|
||||
|
Loading…
Reference in New Issue
Block a user