|
|
@@ -41,6 +41,12 @@ public class QuestService {
|
|
|
private QuestInfoDao questInfoDao;
|
|
|
|
|
|
public ResultContent saveInfo(QuestInfoParam param) {
|
|
|
+ if (StringUtils.isNotEmpty(param.getUuid())) {
|
|
|
+ QuestInfo temp = questInfoDao.findTopByUuid(param.getUuid());
|
|
|
+ if (ObjectUtils.isNotEmpty(temp)) {
|
|
|
+ return ResultContent.buildFail("不能重复提交哦");
|
|
|
+ }
|
|
|
+ }
|
|
|
QuestInfo entity = new QuestInfo();
|
|
|
BeanUtils.copyProperties(param, entity);
|
|
|
questInfoDao.save(entity);
|
|
|
@@ -135,7 +141,7 @@ public class QuestService {
|
|
|
if (tempMap.containsKey("supplementary")) {
|
|
|
if (StringUtils.isNotEmpty(value)) {
|
|
|
value += " 补充: " + tempMap.get("supplementary").toString();
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
value += tempMap.get("supplementary").toString();
|
|
|
}
|
|
|
}
|
|
|
@@ -162,8 +168,7 @@ public class QuestService {
|
|
|
execlParam.setDatas(maps);
|
|
|
List<CommonExeclTd> tds = new ArrayList<>();
|
|
|
for (QuestTitleModel titleModel : titles) {
|
|
|
- tds.add(CommonExeclTd.build(titleModel.getQuestion(),
|
|
|
- titleModel.getQuestionId(), 8));
|
|
|
+ tds.add(CommonExeclTd.build(titleModel.getQuestion(), titleModel.getQuestionId(), 8));
|
|
|
}
|
|
|
tds.add(CommonExeclTd.build("时间", "timeStr"));
|
|
|
execlParam.setTds(tds);
|