|
|
@@ -21,6 +21,7 @@ import com.ruoyi.project.system.domain.SysMessage;
|
|
|
import com.ruoyi.project.system.domain.SysUser;
|
|
|
import com.ruoyi.project.system.service.ISysMessageService;
|
|
|
import com.ruoyi.project.system.service.ISysUserService;
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@@ -270,7 +271,7 @@ public class TPssrAboveallController extends BaseController {
|
|
|
tPssrAboveall.setUnit(aboveall.getUnit());
|
|
|
tPssrAboveall.setRegion(aboveall.getRegion());
|
|
|
tPssrAboveall.setId(null);
|
|
|
- tPssrAboveall.setDrivingTime(aboveall.getDrivingTime());
|
|
|
+// tPssrAboveall.setDrivingTime(aboveall.getDrivingTime());
|
|
|
tPssrAboveall.setIncludePublic(aboveall.getIncludePublic());
|
|
|
}
|
|
|
if (tPssrAboveall.getIncludePublic() == 1) {
|
|
|
@@ -591,62 +592,65 @@ public class TPssrAboveallController extends BaseController {
|
|
|
TPssrSubcontent sub = new TPssrSubcontent();
|
|
|
sub.setAboveallId(newData.getId());
|
|
|
sub.setForShort(oldSub.getForShort());
|
|
|
- TPssrSubcontent newSub = tPssrSubcontentService.selectTPssrSubcontentList(sub).get(0);
|
|
|
- switch (oldSub.getForShort()) {
|
|
|
- case "jxxm":
|
|
|
- genJxxm(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "kgfa":
|
|
|
- genKgfa(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "sjbg":
|
|
|
- genSjgb(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "mb":
|
|
|
- genMb(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "sbqjd":
|
|
|
- genSbqjd(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "qm":
|
|
|
- genQm(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "sksgfmzt":
|
|
|
- genSksgfmzt(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "sys":
|
|
|
- genSys(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "dj":
|
|
|
- genDj(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "dqzh":
|
|
|
- genDqzh(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "aqss":
|
|
|
- genAqss(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "jb":
|
|
|
- genJb(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "ybjy":
|
|
|
- genYbjy(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "yblscs":
|
|
|
- genYblscs(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "bjlszqr":
|
|
|
- genBjlszqr(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "djsb":
|
|
|
- genDjsb(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "qtjcy":
|
|
|
- genQtjcy(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
- case "zxfxy":
|
|
|
- genZxfxy(oldSub, newSub, userId);
|
|
|
- break;
|
|
|
+ List<TPssrSubcontent> tPssrSubcontents = tPssrSubcontentService.selectTPssrSubcontentList(sub);
|
|
|
+ if (CollectionUtils.isNotEmpty(tPssrSubcontents)) {
|
|
|
+ TPssrSubcontent newSub = tPssrSubcontents.get(0);
|
|
|
+ switch (oldSub.getForShort()) {
|
|
|
+ case "jxxm":
|
|
|
+ genJxxm(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "kgfa":
|
|
|
+ genKgfa(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "sjbg":
|
|
|
+ genSjgb(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "mb":
|
|
|
+ genMb(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "sbqjd":
|
|
|
+ genSbqjd(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "qm":
|
|
|
+ genQm(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "sksgfmzt":
|
|
|
+ genSksgfmzt(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "sys":
|
|
|
+ genSys(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "dj":
|
|
|
+ genDj(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "dqzh":
|
|
|
+ genDqzh(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "aqss":
|
|
|
+ genAqss(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "jb":
|
|
|
+ genJb(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "ybjy":
|
|
|
+ genYbjy(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "yblscs":
|
|
|
+ genYblscs(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "bjlszqr":
|
|
|
+ genBjlszqr(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "djsb":
|
|
|
+ genDjsb(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "qtjcy":
|
|
|
+ genQtjcy(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ case "zxfxy":
|
|
|
+ genZxfxy(oldSub, newSub, userId);
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// }, "新增模板子表数据").start();
|