|
@@ -157,17 +157,24 @@ public class ActTaskController {
|
|
|
tv.setTableId(actBusiness.getTableId());
|
|
|
tv.setTableName(actBusiness.getTableName());
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
// 关联额外信息
|
|
|
TbTableInfoPractice tbTableInfoPractice = tbTableInfoPracticeService.getById(actBusiness.getTableId());
|
|
|
if (tbTableInfoPractice != null && oConvertUtils.isNotEmpty(tbTableInfoPractice.getExtraInfo())){
|
|
|
tv.setDescription(tbTableInfoPractice.getExtraInfo());
|
|
|
}else{
|
|
|
- QueryWrapper<TbTableInfoPractice> practiceQueryWrapper = new QueryWrapper<>();
|
|
|
- practiceQueryWrapper.eq("business_table_id", actBusiness.getTableId());
|
|
|
- practiceQueryWrapper.and(i-> i.eq("is_initial","1").or().eq("is_initial",null).or().eq("is_initial",""));
|
|
|
- tbTableInfoPractice = tbTableInfoPracticeService.getOne(practiceQueryWrapper);
|
|
|
- if (tbTableInfoPractice != null && oConvertUtils.isNotEmpty(tbTableInfoPractice.getExtraInfo())){
|
|
|
- tv.setDescription(tbTableInfoPractice.getExtraInfo());
|
|
|
+ try {
|
|
|
+
|
|
|
+ QueryWrapper<TbTableInfoPractice> practiceQueryWrapper = new QueryWrapper<>();
|
|
|
+ practiceQueryWrapper.eq("business_table_id", actBusiness.getTableId());
|
|
|
+ practiceQueryWrapper.and(i-> i.eq("is_initial","1").or().eq("is_initial",null).or().eq("is_initial",""));
|
|
|
+ tbTableInfoPractice = tbTableInfoPracticeService.getOne(practiceQueryWrapper);
|
|
|
+ if (tbTableInfoPractice != null && oConvertUtils.isNotEmpty(tbTableInfoPractice.getExtraInfo())){
|
|
|
+ tv.setDescription(tbTableInfoPractice.getExtraInfo());
|
|
|
+ }
|
|
|
+ }catch (Exception ee){
|
|
|
+ System.out.println("业务信息获取错误"+ee.getMessage());
|
|
|
}
|
|
|
}
|
|
|
if (tv.getDescription() == null){
|
|
@@ -784,11 +791,16 @@ public class ActTaskController {
|
|
|
if (tbTableInfoPractice != null && oConvertUtils.isNotEmpty(tbTableInfoPractice.getExtraInfo())){
|
|
|
htv.setDescription(tbTableInfoPractice.getExtraInfo());
|
|
|
}else{
|
|
|
- QueryWrapper<TbTableInfoPractice> practiceQueryWrapper = new QueryWrapper<>();
|
|
|
- practiceQueryWrapper.eq("business_table_id", actBusiness.getTableId());
|
|
|
- practiceQueryWrapper.and(i-> i.eq("is_initial","1").or().eq("is_initial",null).or().eq("is_initial",""));
|
|
|
+ try {
|
|
|
|
|
|
- tbTableInfoPractice = tbTableInfoPracticeService.getOne(practiceQueryWrapper);
|
|
|
+ QueryWrapper<TbTableInfoPractice> practiceQueryWrapper = new QueryWrapper<>();
|
|
|
+ practiceQueryWrapper.eq("business_table_id", actBusiness.getTableId());
|
|
|
+ practiceQueryWrapper.and(i-> i.eq("is_initial","1").or().eq("is_initial",null).or().eq("is_initial",""));
|
|
|
+
|
|
|
+ tbTableInfoPractice = tbTableInfoPracticeService.getOne(practiceQueryWrapper);
|
|
|
+ }catch (Exception ee){
|
|
|
+ System.out.println("业务信息获取错误"+ee.getMessage());
|
|
|
+ }
|
|
|
if (tbTableInfoPractice != null && oConvertUtils.isNotEmpty(tbTableInfoPractice.getExtraInfo())){
|
|
|
htv.setDescription(tbTableInfoPractice.getExtraInfo());
|
|
|
}
|