优化下代码
@ -8,7 +8,7 @@ import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
public class RetentionDistributionListDetailDTO extends DisStockListDetailEntity {
private String MaterialName;
private String materialName;
private String materialNumber;
}
@ -191,7 +191,7 @@ public interface TaskQuestMapper extends BaseMapper<TaskQuestEntity> {
List<TaskQueryDataExcel> selectContrastStockInfo(@Param("questNum") String questNum);
QuestDetailEntity findEntityById(@Param("questNum") String questNum,@Param("taskID") Long taskID);
QuestDetailEntity findEntityById(@Param("questNum") String questNum,@Param("taskID") Long taskId);
IPage<QuestDetailVO> findContrastList(IPage<Object> page, @Param("param") QuestDetailDTO questDetailDTO);
@ -194,7 +194,9 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
parcelListInfo.forEach(i -> {
QuestDetailEntity detailEntity = buildQuestDetailEntity(taskQuest, i, user, trayEntityList);
if (detailEntity == null) return;
if (detailEntity == null) {
return;
detailEntityList.add(detailEntity);
});