|
@@ -28,7 +28,7 @@ func GetLocalRecruittime(ctx context.Context, request http_model.GetLocalRecruit
|
|
|
|
|
|
func GetLocalTalentstatusCount(db *gorm.DB, request http_model.GetLocalTalentstatusNumRequest, status int) (int64, error) {
|
|
|
query := db.Model(&gorm_model.YoungeeLocalTaskInfo{}).Where("local_id = ? AND task_status = ?", request.ProjectId, status)
|
|
|
-
|
|
|
+ query = query.Where("(supplier_id = 0 AND supplier_status = 0) OR (supplier_id != 0 AND supplier_status = 2)")
|
|
|
// 计算总数
|
|
|
var total int64
|
|
|
if err := query.Count(&total).Error; err != nil {
|