|
@@ -6,6 +6,7 @@ import com.example.demo.service.IRenovationPartsService;
|
|
|
import com.example.demo.vo.response.ResponseRenovationParts;
|
|
|
import com.example.demo.vo.response.ResponseRenovationPartsDetail;
|
|
|
import com.example.demo.vo.response.ResponseRenovationPartsType;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -17,6 +18,7 @@ import java.util.List;
|
|
|
* Created by Hb_zzZ on 2020/8/11.
|
|
|
*/
|
|
|
@Service
|
|
|
+@Slf4j
|
|
|
@Transactional
|
|
|
public class RenovationPartsServiceImpl extends BaseServiceImpl<RenovationPartsEntity, Long> implements IRenovationPartsService {
|
|
|
|
|
@@ -55,10 +57,11 @@ public class RenovationPartsServiceImpl extends BaseServiceImpl<RenovationPartsE
|
|
|
keys = new ArrayList<>();
|
|
|
for(ResponseRenovationPartsType type : typeList){
|
|
|
keys.add(type.getKeyWord());
|
|
|
- List<ResponseRenovationPartsDetail> detailList = renovationPartsDetailMapper.findDetailByTypeId(type.getId(), null);
|
|
|
+ List<ResponseRenovationPartsDetail> detailList = renovationPartsDetailMapper.findDetailByTypeId(type.getId(), null, null);
|
|
|
type.setChildrens(detailList);
|
|
|
|
|
|
for (ResponseRenovationPartsDetail responseRenovationPartsDetail : detailList) {
|
|
|
+// log.info("出现报错-{}", responseRenovationPartsDetail.getId());
|
|
|
responseRenovationPartsDetail.setEditing(renovationPartsAttachingMapper.findAttachinByDetailId(responseRenovationPartsDetail.getId()));
|
|
|
responseRenovationPartsDetail.setSize(renovationPartsSizeMapper.findSizeByDetailId(responseRenovationPartsDetail.getId()));
|
|
|
}
|