Commit ce1367ef by 阳浪

门户搜素接口

parent 1e236f2d
......@@ -276,6 +276,9 @@ public class TrainingProjectServiceImpl extends ServiceImpl<TrainingProjectMappe
if (!CollectionUtils.isEmpty(trainingProject.getDetailsImage())) {
TrainingProjectDetailsImage saveImg = new TrainingProjectDetailsImage();
Integer sort = trainingProjectDetailsImageMapper.selectMaxSort(trainingProject.getId());
if(sort==null){
sort = 1;
}
for(TrainingProjectDetailsImageVO item : trainingProject.getDetailsImage()){
if(item.getId() == null){
item.setId(idGenerator.generate());
......
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