|
@@ -131,14 +131,10 @@ public class QcQuestionFacade extends QcQuestionInfoServiceImpl {
|
|
|
* @param param
|
|
|
*/
|
|
|
public void saveQuestionEntry(List<QuesCasesEntryVO> quesCasesEntryVOList, CommonParam param) {
|
|
|
- if (ListUtil.isEmpty(quesCasesEntryVOList)) {
|
|
|
- return ;
|
|
|
- }
|
|
|
-
|
|
|
Date now = param.getNow();
|
|
|
String person = param.getPerson();
|
|
|
|
|
|
- //先删除原明细
|
|
|
+ //先删除原明细, 不能先判断本次更新是否有值
|
|
|
qcQuestionEntryFacade.update(new QcQuestionEntry(),
|
|
|
new UpdateWrapper<QcQuestionEntry>()
|
|
|
.eq("question_id", param.getQcQuestionInfo().getId())
|
|
@@ -147,6 +143,10 @@ public class QcQuestionFacade extends QcQuestionInfoServiceImpl {
|
|
|
.set("modifier", person)
|
|
|
.set("is_deleted", IsDeleteEnum.Y.getKey()));
|
|
|
|
|
|
+ if (ListUtil.isEmpty(quesCasesEntryVOList)) {
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+
|
|
|
//再插入新明细
|
|
|
List<QcQuestionEntry> qcQuestionEntryList = new ArrayList<>();
|
|
|
int i = 1;
|