瀏覽代碼

Api-scan-add-info-tbcode

new-feature
Viet.LeQ2 1 年之前
父節點
當前提交
a2cd392eac
共有 3 個檔案被更改,包括 24 行新增0 行删除
  1. 二進制
      build/libs/smart-farm-0.0.1-SNAPSHOT.war
  2. +22
    -0
      src/main/java/vn/azteam/tpf/service/dto/TBCodeDetailsAndActivityDTO.java
  3. +2
    -0
      src/main/java/vn/azteam/tpf/service/impl/TBCodeDetailsImpl.java

二進制
build/libs/smart-farm-0.0.1-SNAPSHOT.war 查看文件


+ 22
- 0
src/main/java/vn/azteam/tpf/service/dto/TBCodeDetailsAndActivityDTO.java 查看文件

package vn.azteam.tpf.service.dto; package vn.azteam.tpf.service.dto;


import vn.azteam.tpf.domain.TBCode;

import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;




private TBCodeDetailsDTO tbCodeDetailsDTO; private TBCodeDetailsDTO tbCodeDetailsDTO;


private String tbCodeValue;

private String tbCodeDescription;

private TBCropDTO tbCropDTO; private TBCropDTO tbCropDTO;
// Use for web only // Use for web only
private ActivityTimelineDTO activityTimeline; private ActivityTimelineDTO activityTimeline;
public void setDescription(String description) { public void setDescription(String description) {
this.description = description; this.description = description;
} }

public String getTbCodeValue() {
return tbCodeValue;
}

public void setTbCodeValue(String tbCodeValue) {
this.tbCodeValue = tbCodeValue;
}

public String getTbCodeDescription() {
return tbCodeDescription;
}

public void setTbCodeDescription(String tbCodeDescription) {
this.tbCodeDescription = tbCodeDescription;
}
} }

+ 2
- 0
src/main/java/vn/azteam/tpf/service/impl/TBCodeDetailsImpl.java 查看文件

TBCodeDetailsAndActivityDTO tbCodeDetailsAndActivityDTO = this.getCodeDetailDTOResponseEntity(tbCropMapper.toDto(tbCodeDetailsOptional.get().getTbCode().getTbCrop()), Pageable.unpaged(), true); TBCodeDetailsAndActivityDTO tbCodeDetailsAndActivityDTO = this.getCodeDetailDTOResponseEntity(tbCropMapper.toDto(tbCodeDetailsOptional.get().getTbCode().getTbCrop()), Pageable.unpaged(), true);
tbCodeDetailsAndActivityDTO.setTbCodeDetailsDTO(tBCodeDetailsMapper.toDto(tbCodeDetails)); tbCodeDetailsAndActivityDTO.setTbCodeDetailsDTO(tBCodeDetailsMapper.toDto(tbCodeDetails));
tbCodeDetailsAndActivityDTO.setDescription(tbCode.getDescription()); tbCodeDetailsAndActivityDTO.setDescription(tbCode.getDescription());
tbCodeDetailsAndActivityDTO.setTbCodeValue(tbCode.getCode());
tbCodeDetailsAndActivityDTO.setTbCodeDescription(tbCode.getDescription());
return tbCodeDetailsAndActivityDTO; return tbCodeDetailsAndActivityDTO;
} else { } else {
throw new BadRequestAlertException("Scan code not found", "tb code details with code:", code); throw new BadRequestAlertException("Scan code not found", "tb code details with code:", code);

Loading…
取消
儲存