|
@@ -136,6 +136,7 @@ public class QcQuestionFacade extends QcQuestionInfoServiceImpl {
|
|
|
*/
|
|
|
public void saveMapping(List<QuestionMappingWrapper> questionMappings, String person, Date now, Long id) {
|
|
|
List<QcQuestionMapping> saveMapping = new ArrayList<>();
|
|
|
+ int i = 1;
|
|
|
for (QuestionMappingWrapper mapping : questionMappings) {
|
|
|
QcQuestionMapping bean = new QcQuestionMapping();
|
|
|
BeanUtil.copyProperties(mapping, bean);
|
|
@@ -144,6 +145,7 @@ public class QcQuestionFacade extends QcQuestionInfoServiceImpl {
|
|
|
bean.setModifier(person);
|
|
|
bean.setGmtModified(now);
|
|
|
bean.setParentQuestion(id);
|
|
|
+ bean.setOrderNo(i++);
|
|
|
saveMapping.add(bean);
|
|
|
}
|
|
|
qcQuestionMappingService.saveBatch(saveMapping);
|
|
@@ -174,7 +176,7 @@ public class QcQuestionFacade extends QcQuestionInfoServiceImpl {
|
|
|
.eq("hospital_id", qcQuestionInfo.getHospitalId())
|
|
|
.ne("id", qcQuestionInfo.getId() == null ? -1 : qcQuestionInfo.getId()));
|
|
|
if (ListUtil.isNotEmpty(questionInfoList)) { //标签type、tagName唯一
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "系统名称已重复,无法建立");
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR, "系统名称已存在");
|
|
|
}
|
|
|
if (InsertOrUpdateEnum.Insert.getKey() == param.getInsertOrUpdate()) {
|
|
|
qcQuestionInfo.setCreator(param.getPerson()); //创建人
|