|
|
@ -1,43 +1,25 @@
|
|
|
|
package com.ibeetl.jlw.service;
|
|
|
|
package com.ibeetl.jlw.service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.*;
|
|
|
|
|
|
|
|
import java.text.DateFormat;
|
|
|
|
|
|
|
|
import java.text.DecimalFormat;
|
|
|
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.jlw.util.ToolUtils;
|
|
|
|
import cn.jlw.util.ToolUtils;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
|
|
import com.ibeetl.admin.core.service.CoreBaseService;
|
|
|
|
import com.ibeetl.admin.core.util.TimeTool;
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonResult;
|
|
|
|
import com.ibeetl.admin.core.web.JsonReturnCode;
|
|
|
|
import com.ibeetl.admin.core.web.JsonReturnCode;
|
|
|
|
import com.ibeetl.jlw.dao.StudentAccountTradingRecordSheetDao;
|
|
|
|
import com.ibeetl.jlw.dao.StudentAccountTradingRecordSheetDao;
|
|
|
|
import com.ibeetl.jlw.entity.StudentAccountTradingRecordSheet;
|
|
|
|
import com.ibeetl.jlw.entity.StudentAccountTradingRecordSheet;
|
|
|
|
import com.ibeetl.jlw.web.query.StudentAccountTradingRecordSheetQuery;
|
|
|
|
import com.ibeetl.jlw.web.query.StudentAccountTradingRecordSheetQuery;
|
|
|
|
import com.ibeetl.jlw.entity.FileEntity;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.ibeetl.admin.core.service.CoreBaseService;
|
|
|
|
|
|
|
|
import com.ibeetl.admin.core.util.PlatformException;
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
|
|
|
|
|
|
|
import org.apache.poi.ss.usermodel.Cell;
|
|
|
|
|
|
|
|
import org.apache.poi.ss.usermodel.Row;
|
|
|
|
|
|
|
|
import org.apache.poi.ss.usermodel.Sheet;
|
|
|
|
|
|
|
|
import org.apache.poi.ss.usermodel.Workbook;
|
|
|
|
|
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
|
|
|
|
|
|
|
import org.beetl.sql.core.engine.PageQuery;
|
|
|
|
|
|
|
|
import org.beetl.sql.core.SqlId;
|
|
|
|
import org.beetl.sql.core.SqlId;
|
|
|
|
|
|
|
|
import org.beetl.sql.core.engine.PageQuery;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import static com.ibeetl.admin.core.util.ExcelUtil.getCellFormatValue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 资产账户转账记录 Service
|
|
|
|
* 资产账户转账记录 Service
|
|
|
@ -49,7 +31,8 @@ import static com.ibeetl.admin.core.util.ExcelUtil.getCellFormatValue;
|
|
|
|
@Validated
|
|
|
|
@Validated
|
|
|
|
public class StudentAccountTradingRecordSheetService extends CoreBaseService<StudentAccountTradingRecordSheet> {
|
|
|
|
public class StudentAccountTradingRecordSheetService extends CoreBaseService<StudentAccountTradingRecordSheet> {
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired private StudentAccountTradingRecordSheetDao studentAccountTradingRecordSheetDao;
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private StudentAccountTradingRecordSheetDao studentAccountTradingRecordSheetDao;
|
|
|
|
|
|
|
|
|
|
|
|
public PageQuery<StudentAccountTradingRecordSheet> queryByCondition(PageQuery query) {
|
|
|
|
public PageQuery<StudentAccountTradingRecordSheet> queryByCondition(PageQuery query) {
|
|
|
|
PageQuery ret = studentAccountTradingRecordSheetDao.queryByCondition(query);
|
|
|
|
PageQuery ret = studentAccountTradingRecordSheetDao.queryByCondition(query);
|
|
|
@ -90,7 +73,8 @@ public class StudentAccountTradingRecordSheetService extends CoreBaseService<Stu
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
studentAccountTradingRecordSheetList.add(JSONObject.parseObject(studentAccountTradingRecordSheetQuery.getStudentAccountTradingRecordSheetJsonStr(), StudentAccountTradingRecordSheet.class));
|
|
|
|
studentAccountTradingRecordSheetList.add(JSONObject.parseObject(studentAccountTradingRecordSheetQuery.getStudentAccountTradingRecordSheetJsonStr(), StudentAccountTradingRecordSheet.class));
|
|
|
|
} catch (Exception e1) {}
|
|
|
|
} catch (Exception e1) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ToolUtils.deleteNullList(studentAccountTradingRecordSheetList);
|
|
|
|
ToolUtils.deleteNullList(studentAccountTradingRecordSheetList);
|
|
|
|
if (null != studentAccountTradingRecordSheetList && studentAccountTradingRecordSheetList.size() > 0) {
|
|
|
|
if (null != studentAccountTradingRecordSheetList && studentAccountTradingRecordSheetList.size() > 0) {
|
|
|
|