Commit c32442a7 authored by 廖旭伟's avatar 廖旭伟

绩效汇总导出字段自定义

parent f5b232ca
...@@ -29,5 +29,6 @@ public class StaffPerformSummaryEditVo extends BaseEntityLong { ...@@ -29,5 +29,6 @@ public class StaffPerformSummaryEditVo extends BaseEntityLong {
/** 主键ID,主键,自增长列表 */ /** 主键ID,主键,自增长列表 */
private List <Long> idList; private List <Long> idList;
/** 导出字段 */
List<String> properties;
} }
\ No newline at end of file
...@@ -17,8 +17,10 @@ import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery; ...@@ -17,8 +17,10 @@ import com.mortals.xhx.module.check.model.vo.StaffCheckSummaryQuery;
import com.mortals.xhx.module.staff.model.StaffEntity; import com.mortals.xhx.module.staff.model.StaffEntity;
import com.mortals.xhx.module.staff.model.StaffPerformSummaryEditEntity; import com.mortals.xhx.module.staff.model.StaffPerformSummaryEditEntity;
import com.mortals.xhx.module.staff.model.StaffPerformSummaryEditQuery; import com.mortals.xhx.module.staff.model.StaffPerformSummaryEditQuery;
import com.mortals.xhx.module.staff.model.StaffPerformSummaryEntity;
import com.mortals.xhx.module.staff.service.StaffPerformSummaryEditService; import com.mortals.xhx.module.staff.service.StaffPerformSummaryEditService;
import com.mortals.xhx.module.staff.service.StaffService; import com.mortals.xhx.module.staff.service.StaffService;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.ObjectUtils; import org.springframework.util.ObjectUtils;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
...@@ -219,5 +221,11 @@ public class StaffPerformSummaryEditController extends BaseCRUDJsonBodyMappingCo ...@@ -219,5 +221,11 @@ public class StaffPerformSummaryEditController extends BaseCRUDJsonBodyMappingCo
ret.setMsg(model.get("message_info") == null ? "" : model.remove("message_info").toString()); ret.setMsg(model.get("message_info") == null ? "" : model.remove("message_info").toString());
return ret; return ret;
} }
@Override
public void doExportBefore(Context context, StaffPerformSummaryEditEntity query, List<String> properties) throws AppException {
if(CollectionUtils.isNotEmpty(query.getProperties())){
properties.addAll(query.getProperties());
}
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment