|
@@ -12,6 +12,7 @@ import com.rongwei.bsentity.vo.QcsMdfFormVo;
|
|
|
import com.rongwei.bsentity.vo.QcsMdfRowVo;
|
|
|
import com.rongwei.bsentity.vo.QcsMdfSectionVo;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
+import com.rongwei.rwcommon.utils.StringUtils;
|
|
|
import com.rongwei.rwcommon.vo.CriteriaQuery;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -95,26 +96,26 @@ public class CommonServiceImpl implements CommonService {
|
|
|
qcsMdfFormVo.setCentersell("1");//集中派发默认是
|
|
|
qcsMdfFormDoList.add(qcsMdfFormVo);
|
|
|
for (QcsMdfSectionVo qcsMdfSectionVo : qcsMdfFormVo.getSections()) {
|
|
|
- if (qcsMdfSectionVo.getFormid() == null) {
|
|
|
+ if (StringUtils.isBlank(qcsMdfSectionVo.getFormid())) {
|
|
|
qcsMdfSectionVo.setFormid(qcsMdfFormVo.getId());
|
|
|
}
|
|
|
qcsMdfSectionDoList.add(qcsMdfSectionVo);
|
|
|
for (QcsMdfRowVo qcsMdfRowVo : qcsMdfSectionVo.getRows()) {
|
|
|
- if (qcsMdfRowVo.getFormid() == null) {
|
|
|
+ if (StringUtils.isBlank(qcsMdfRowVo.getFormid())) {
|
|
|
qcsMdfRowVo.setFormid(qcsMdfFormVo.getId());
|
|
|
}
|
|
|
- if (qcsMdfRowVo.getSectionid() == null) {
|
|
|
+ if (StringUtils.isBlank(qcsMdfRowVo.getSectionid())) {
|
|
|
qcsMdfRowVo.setSectionid(qcsMdfSectionVo.getId());
|
|
|
}
|
|
|
qcsMdfRowDoList.add(qcsMdfRowVo);
|
|
|
for (QcsMdfFileDo qcsMdfFileDo : qcsMdfRowVo.getFiles()) {
|
|
|
- if (qcsMdfFileDo.getFormid() == null) {
|
|
|
+ if (StringUtils.isBlank(qcsMdfFileDo.getFormid())) {
|
|
|
qcsMdfFileDo.setFormid(qcsMdfFormVo.getId());
|
|
|
}
|
|
|
- if (qcsMdfFileDo.getSectionid() == null) {
|
|
|
+ if (StringUtils.isBlank(qcsMdfFileDo.getSectionid())) {
|
|
|
qcsMdfFileDo.setSectionid(qcsMdfSectionVo.getId());
|
|
|
}
|
|
|
- if (qcsMdfFileDo.getRowsid() == null) {
|
|
|
+ if (StringUtils.isBlank(qcsMdfFileDo.getRowsid())) {
|
|
|
qcsMdfFileDo.setRowsid(qcsMdfRowVo.getId());
|
|
|
}
|
|
|
qcsMdfFileDoList.add(qcsMdfFileDo);
|