|
@@ -266,7 +266,7 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
|
- HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "合作单位", "乐团", "学员编号", "学员姓名", "手机号", "声部", "所在班级", "是否预约", "器乐等级", "乐理等级", "是否购买VIP", "是否购买乐理课"}, new String[]{
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "合作单位", "乐团", "学员编号", "学员姓名", "手机号", "声部", "所在班级", "是否预约", "器乐等级", "小组等级", "是否购买VIP", "是否购买小组课"}, new String[]{
|
|
|
"organName", "cooperationOrganName", "musicGroupName", "userId", "username", "phone", "subjectName",
|
|
|
"currentClass", "isReserve == true ?'是':'否'", "gradeLeave"
|
|
|
, "theoryLevel", "buyVipFlag == true ?'是':'否'", "buyTheoryCourseFlag == true ?'是':'否'"}, rows);
|
|
@@ -340,7 +340,7 @@ public class ExportController extends BaseController {
|
|
|
try {
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "总成交金额", "总购买人数", "人均购买金额",
|
|
|
"20节1v1成交金额", "20节1v1成交人数", "40节1v1成交金额", "40节1v1成交人数", "20节1v2成交金额", "20节1v2成交人数",
|
|
|
- "40节1v2成交金额", "40节1v2成交人数", "乐理课成交金额", "乐理课成交人数", "赠送会员人数"}, new String[]{
|
|
|
+ "40节1v2成交金额", "40节1v2成交人数", "小组课成交金额", "小组课成交人数", "赠送会员人数"}, new String[]{
|
|
|
"organName", "totalBuyAmount", "totalBuyNum", "avgBuyAmount", "vip1V120Amount", "vip1V120Num", "vip1V140Amount",
|
|
|
"vip1V140Num", "vip1V220Amount", "vip1V220Num", "vip1V240Amount"
|
|
|
, "vip1V240Num", "musicTheoryAmount", "musicTheoryNum", "giveMemberNum"}, rows);
|
|
@@ -521,16 +521,17 @@ public class ExportController extends BaseController {
|
|
|
public void exportGoods(HttpServletResponse response, GoodsQueryInfo queryInfo) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- List<Goods> rows = goodsService.queryPage(queryInfo).getRows();
|
|
|
+ List<Goods> rows = goodsService.exportGoods(queryInfo);
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
|
- HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"商品编号", "货号", "品牌", "商品名称",
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"学员展示分部","教务展示分部","课程收费团展示分部","会员团展示分部", "免费团展示分部","乐器置换展示分部", "分部成本", "商品编号", "货号", "品牌", "商品名称",
|
|
|
"是否组合商品", "商品类型", "商品分类", "具体型号", "内部库存", "税务库存", "库存类型", "市场价(元)",
|
|
|
- "零售价(元)", "商品团购价(元)", "商品描述", "商品详情", "是否上下架"}, new String[]{
|
|
|
- "id", "sn", "brand", "name",
|
|
|
+ "零售价(元)", "商品团购价(元)", "商品描述", "商品详情", "是否上下架","子商品编号","子商品名称","子商品成本","子商品货号"}, new String[]{
|
|
|
+ "studentShowOrganName","educationShowOrganName","courseFeeShowOrganName","memberFeeShowOrganName","freeFeeShowOrganName","replacementShowOrganName",
|
|
|
+ "organCostPrice", "id", "sn", "brand", "name",
|
|
|
"complementGoodsIdList == null || complementGoodsIdList == '' ? '否':'是'",
|
|
|
"type.desc", "goodsCategoryName", "specification", "stockCount", "taxStockCount", "stockType.msg", "marketPrice",
|
|
|
- "discountPrice", "groupPurchasePrice", "brief", "desc", "status.msg"}, rows);
|
|
|
+ "discountPrice", "groupPurchasePrice", "brief", "desc", "status.msg","childId","childName","childOrganCostPrice","childSn"}, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attac:wq" +
|
|
|
"hment;filename=goods-" + DateUtil.getDate(new Date()) + ".xls");
|
|
@@ -1037,7 +1038,7 @@ public class ExportController extends BaseController {
|
|
|
public void queryPage(SporadicChargeInfoQueryInfo queryInfo, HttpServletResponse response) throws IOException {
|
|
|
queryInfo.setPage(1);
|
|
|
queryInfo.setRows(49999);
|
|
|
- queryInfo.setIsExport(true);
|
|
|
+ queryInfo.setExport(true);
|
|
|
queryInfo.setOrganId(organizationService.getEmployeeOrgan(queryInfo.getOrganId()));
|
|
|
List<SporadicChargeInfo> rows = sporadicChargeInfoService.queryDetailPage(queryInfo).getRows();
|
|
|
// for (SporadicChargeInfo row : rows) {
|
|
@@ -1363,7 +1364,7 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
|
|
|
|
String[] header = {"分部", "上课日期", "学生编号", "课程编号", "学员是否到课", "课程班名称", "老师", "教材内容", "发音", "节奏",
|
|
|
- "乐理", "曲目", "评价备注", "回访日期(布置训练)", "完成app双向沟通", "学员评分", "是否布置训练", "是否提交训练", "是否回复训练", "教务老师", "教务评价"};
|
|
|
+ "小组", "曲目", "评价备注", "回访日期(布置训练)", "完成app双向沟通", "学员评分", "是否布置训练", "是否提交训练", "是否回复训练", "教务老师", "教务评价"};
|
|
|
String[] body = {"organName", "classDateStr", "studentId", "id", "attendanceStr", "courseName",
|
|
|
"teacherName", "teachingMaterial", "pronunciationStr", "tempoStr", "musicTheoryStr", "song",
|
|
|
"memo", "createTimeStr", "hasLiaison", "studentReview", "assignHomeworkStr", "handHomeworkStr", "homeWorkReplied", "eduTeacherName", "courseReview"};
|
|
@@ -1727,7 +1728,7 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- String[] header = {"分部", "上课日期", "课程编号", "课程班名称", "老师", "教材内容", "发音", "节奏", "乐理",
|
|
|
+ String[] header = {"分部", "上课日期", "课程编号", "课程班名称", "老师", "教材内容", "发音", "节奏", "小组",
|
|
|
"曲目", "评价备注", "回访日期(布置训练)", "是否布置训练", "是否提交训练", "教务老师", "教务评价"};
|
|
|
String[] body = {"organName", "classDateStr", "id", "courseName", "teacherName", "teachingMaterial",
|
|
|
"pronunciationStr", "tempoStr", "musicTheoryStr", "song", "memo", "createTimeStr", "assignHomeworkStr",
|
|
@@ -1778,7 +1779,7 @@ public class ExportController extends BaseController {
|
|
|
for (DegreeRegistration row : pageList.getRows()) {
|
|
|
// row.setActivityTag(map.get(row.getLevel()));
|
|
|
// if (row.getType() == DegreeTypeEnum.THEORY) {
|
|
|
-// row.setSubject("乐理");
|
|
|
+// row.setSubject("小组");
|
|
|
// }
|
|
|
row.setGender("1".equals(row.getGender()) ? "男" : "女");
|
|
|
row.setLevel(map.get(row.getLevel()));
|
|
@@ -2287,9 +2288,9 @@ public class ExportController extends BaseController {
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
|
String[] header = {"老师编号", "老师名称", "所属分部", "老师状态", "专业技能", "联系电话", "工作类型",
|
|
|
- "员工状态", "已开小课", "试听课安排", "开放网管课", "转正日期", "离职日期"};
|
|
|
+ "已开小课", "试听课安排", "开放网管课", "转正日期", "离职日期"};
|
|
|
String[] body = {"id", "realName", "organName", "lockFlag == 0?'正常':lockFlag == 1?'冻结':'锁定'", "splitSubjectName", "phone", "jobNature.msg",
|
|
|
- "isProbationPeriod.msg", "vipNum", "demoNum", "isSupportExtraPracticeLesson?'是':'否'", "formalStaffDate", "demissionDate"};
|
|
|
+ "vipNum", "demoNum", "isSupportExtraPracticeLesson?'是':'否'", "formalStaffDate", "demissionDate"};
|
|
|
HSSFWorkbook workbook = POIUtil.exportExcel(header, body, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attachment;filename=teacherPage-" + DateUtil.getDate(new Date()) + ".xls");
|
|
@@ -2825,11 +2826,11 @@ public class ExportController extends BaseController {
|
|
|
}
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
try {
|
|
|
- HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "学员姓名", "学员编号", "老师姓名", "老师编号",
|
|
|
- "课程组编号", "课程编号", "课程名称", "课程组类型", "课程类型", "上课时间","签到时间", "签退时间", "考勤状态","来源"}, new String[]{
|
|
|
- "courseSchedule.organization.name", "username", "userId", "courseSchedule.teacherName", "teacherId", "musicGroupId", "courseScheduleId",
|
|
|
+ HSSFWorkbook workbook = POIUtil.exportExcel(new String[]{"分部", "学员姓名", "学员编号", "专业", "老师姓名", "老师编号",
|
|
|
+ "课程组编号","课程组名称", "课程编号", "课程名称", "课程组类型", "课程类型", "上课时间","签到时间", "签退时间", "考勤状态","是否达标","来源"}, new String[]{
|
|
|
+ "courseSchedule.organization.name", "username", "userId","subjectName", "courseSchedule.teacherName", "teacherId", "musicGroupId", "musicGroupName", "courseScheduleId",
|
|
|
"courseSchedule.name", "groupType.desc", "courseSchedule.type.msg", "classTimeStr", "signInTime",
|
|
|
- "signOutTime", "status.msg","joinCourseType.msg"}, rows);
|
|
|
+ "signOutTime", "status.msg","qualifiedFlag == null || qualifiedFlag == 0? '未达标' : '已达标'","joinCourseType.msg"}, rows);
|
|
|
response.setContentType("application/octet-stream");
|
|
|
response.setHeader("Content-Disposition", "attac:wq" +
|
|
|
"hment;filename=courseAttendance-" + DateUtil.getDate(new Date()) + ".xls");
|