|
@@ -11,6 +11,7 @@ import com.sooka.sponest.data.housingconstruction.domain.CenterdataTHousingconst
|
|
|
import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionAttachMapper;
|
|
|
import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionSafetyinspectionrecordsMapper;
|
|
|
import com.sooka.sponest.data.housingconstruction.mapper.CenterdataTHousingconstructionSafetyinspectionrecordsdetailMapper;
|
|
|
+import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionAttachService;
|
|
|
import com.sooka.sponest.data.housingconstruction.service.ICenterdataTHousingconstructionSafetyinspectionrecordsService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -37,6 +38,9 @@ public class CenterdataTHousingconstructionSafetyinspectionrecordsServiceImpl im
|
|
|
@Autowired
|
|
|
private CenterdataTHousingconstructionAttachMapper attachMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ICenterdataTHousingconstructionAttachService attachService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 查询住建-安全检查记录列表
|
|
@@ -136,7 +140,7 @@ public class CenterdataTHousingconstructionSafetyinspectionrecordsServiceImpl im
|
|
|
//设置创建信息
|
|
|
attach.setCreateTime(nowDate);
|
|
|
});
|
|
|
- attachMapper.insertAttachByList(attachList);
|
|
|
+ attachService.addAttach(attachList);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -220,7 +224,7 @@ public class CenterdataTHousingconstructionSafetyinspectionrecordsServiceImpl im
|
|
|
attach.setCreateTime(nowDate);
|
|
|
});
|
|
|
//写入新附件
|
|
|
- attachMapper.insertAttachByList(attachList);
|
|
|
+ attachService.addAttach(attachList);
|
|
|
}
|
|
|
}
|
|
|
|