|
@@ -19,6 +19,8 @@ import com.xjrsoft.module.ledger.vo.WfSubscriptionListInfoVo;
|
|
|
import com.xjrsoft.module.ledger.vo.WfSubscriptionListVo;
|
|
import com.xjrsoft.module.ledger.vo.WfSubscriptionListVo;
|
|
|
import com.xjrsoft.module.ledger.vo.WfSubscriptionPageVo;
|
|
import com.xjrsoft.module.ledger.vo.WfSubscriptionPageVo;
|
|
|
import com.xjrsoft.module.ledger.vo.WorkflowRecordVo;
|
|
import com.xjrsoft.module.ledger.vo.WorkflowRecordVo;
|
|
|
|
|
+import com.xjrsoft.module.student.entity.BaseStudentAssessmentItem;
|
|
|
|
|
+import com.xjrsoft.module.student.vo.BaseStudentAssessmentItemPageVo;
|
|
|
import com.xjrsoft.module.system.entity.File;
|
|
import com.xjrsoft.module.system.entity.File;
|
|
|
import com.xjrsoft.module.system.service.IFileService;
|
|
import com.xjrsoft.module.system.service.IFileService;
|
|
|
import com.xjrsoft.module.textbook.entity.WfTextbookRecede;
|
|
import com.xjrsoft.module.textbook.entity.WfTextbookRecede;
|
|
@@ -207,18 +209,16 @@ public class WfSubscriptionServiceImpl extends MPJBaseServiceImpl<WfSubscription
|
|
|
//获取当前内存中的最大编号
|
|
//获取当前内存中的最大编号
|
|
|
LambdaQueryWrapper<WfSubscription> wfSubscriptionLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<WfSubscription> wfSubscriptionLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
wfSubscriptionLambdaQueryWrapper
|
|
wfSubscriptionLambdaQueryWrapper
|
|
|
- .select(WfSubscription::getNumber)
|
|
|
|
|
|
|
+ .select(WfSubscription.class, x -> VoToColumnUtil.fieldsToColumns(WfSubscription.class).contains(x.getProperty()))
|
|
|
.orderByDesc(WfSubscription::getNumber)
|
|
.orderByDesc(WfSubscription::getNumber)
|
|
|
.last("limit 1");
|
|
.last("limit 1");
|
|
|
WfSubscription wfSubscriptionMax = this.getOne(wfSubscriptionLambdaQueryWrapper);
|
|
WfSubscription wfSubscriptionMax = this.getOne(wfSubscriptionLambdaQueryWrapper);
|
|
|
if(wfSubscriptionMax != null){
|
|
if(wfSubscriptionMax != null){
|
|
|
String number = wfSubscriptionMax.getNumber();
|
|
String number = wfSubscriptionMax.getNumber();
|
|
|
String ysarStr = "";
|
|
String ysarStr = "";
|
|
|
- String lastThreeChars = "";
|
|
|
|
|
if(number != null && number.length() >= 3) {
|
|
if(number != null && number.length() >= 3) {
|
|
|
number = number.trim();
|
|
number = number.trim();
|
|
|
ysarStr = number.substring(0, number.length() - 3);
|
|
ysarStr = number.substring(0, number.length() - 3);
|
|
|
- lastThreeChars = number.substring(number.length() - 3);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Date shenQingRiQi = wfSubscription.getShenQingRiQi4752();
|
|
Date shenQingRiQi = wfSubscription.getShenQingRiQi4752();
|
|
@@ -229,11 +229,11 @@ public class WfSubscriptionServiceImpl extends MPJBaseServiceImpl<WfSubscription
|
|
|
WfSubscription wfSubscriptionNew = new WfSubscription();
|
|
WfSubscription wfSubscriptionNew = new WfSubscription();
|
|
|
|
|
|
|
|
if(year.equals(ysarStr)){
|
|
if(year.equals(ysarStr)){
|
|
|
- int num = Integer.parseInt(lastThreeChars);
|
|
|
|
|
|
|
+ int num = Integer.parseInt(number);
|
|
|
num = num + 1;
|
|
num = num + 1;
|
|
|
- wfSubscriptionNew.setNumber(ysarStr+num);
|
|
|
|
|
|
|
+ wfSubscriptionNew.setNumber(String.valueOf(num));
|
|
|
}else {
|
|
}else {
|
|
|
- wfSubscriptionNew.setNumber(ysarStr+"001");
|
|
|
|
|
|
|
+ wfSubscriptionNew.setNumber(year+"001");
|
|
|
}
|
|
}
|
|
|
wfSubscriptionNew.setId(wfSubscription.getId());
|
|
wfSubscriptionNew.setId(wfSubscription.getId());
|
|
|
wfSubscriptionNew.setStatus(1);
|
|
wfSubscriptionNew.setStatus(1);
|
|
@@ -245,7 +245,7 @@ public class WfSubscriptionServiceImpl extends MPJBaseServiceImpl<WfSubscription
|
|
|
|
|
|
|
|
String year = String.valueOf(localDate.getYear());
|
|
String year = String.valueOf(localDate.getYear());
|
|
|
WfSubscription wfSubscriptionNew = new WfSubscription();
|
|
WfSubscription wfSubscriptionNew = new WfSubscription();
|
|
|
- wfSubscriptionNew.setNumber(year+"001");
|
|
|
|
|
|
|
+ wfSubscriptionNew.setNumber(year + "001");
|
|
|
wfSubscriptionNew.setId(wfSubscription.getId());
|
|
wfSubscriptionNew.setId(wfSubscription.getId());
|
|
|
wfSubscriptionNew.setStatus(1);
|
|
wfSubscriptionNew.setStatus(1);
|
|
|
|
|
|