Commit 734d542a authored by 李洪明's avatar 李洪明

修改长传数据

parent 87e7b154
......@@ -5,7 +5,7 @@ import lombok.Data;
@Data
public class MaterialInfo {
private String cargoname;
private String cargoquantity;
private Number cargoquantity;
private String entryexitflownumber;
private String unit;
}
......@@ -104,7 +104,7 @@ public class TransportDateService {
MaterialInfo materialInfo = new MaterialInfo();
materialInfo.setCargoname(transportDate.getTransportName());
materialInfo.setUnit("T");
materialInfo.setCargoquantity(transportDate.getTransportVolume().toString());
materialInfo.setCargoquantity(transportDate.getTransportVolume());
if (Objects.equals(transportDate.getInOut(), 1)) {
InAndOutDateUrl record = inAndOutDateUrlMapper.getLastInRecord(transportDate.getNumberPlate(), transportDate.getInoutTime());
if (Objects.nonNull(record)) {
......
......@@ -106,7 +106,7 @@ public class TestController {
MaterialInfo materialInfo = new MaterialInfo();
materialInfo.setCargoname(transportDate.getTransportName());
materialInfo.setUnit("T");
materialInfo.setCargoquantity(transportDate.getTransportVolume().toString());
materialInfo.setCargoquantity(transportDate.getTransportVolume());
// 进出厂流水号
String timeStr = Objects.requireNonNull(DateUtils.format(DateUtils.toDate(transportDate.getInoutTime()), DateUtils.DATE_FORMAT_MIN)).substring(0, DateUtils.DATE_FORMAT_MIN.length());
String rsn = COMPANY_CODE + timeStr + transportDate.getInOut();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment