国内管道气采购
This commit is contained in:
@ -69,6 +69,13 @@ public class LngContractPurPngPointSales implements Serializable {
|
|||||||
@ApiModelProperty("交割点编码")
|
@ApiModelProperty("交割点编码")
|
||||||
private String pointDelyCode;
|
private String pointDelyCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 交割点编码
|
||||||
|
*/
|
||||||
|
@ApiModelProperty("交割点名称")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String pointDelyName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -94,8 +94,9 @@ public class ContractPurPngServiceImpl extends MPJBaseServiceImpl<LngContractPur
|
|||||||
pp.setLngContractPurPngPointSalesList(list);
|
pp.setLngContractPurPngPointSalesList(list);
|
||||||
List<String> names = Lists.newArrayList();
|
List<String> names = Lists.newArrayList();
|
||||||
for(LngContractPurPngPointSales ps:list) {
|
for(LngContractPurPngPointSales ps:list) {
|
||||||
String delyNames = lngContractPurPngPointMapper.getLngStationPngNameByCode(ps.getPointDelyCode());
|
String delyName = lngContractPurPngPointMapper.getLngStationPngNameByCode(ps.getPointDelyCode());
|
||||||
names.add(delyNames);
|
ps.setPointDelyName(delyName);
|
||||||
|
names.add(delyName);
|
||||||
}
|
}
|
||||||
if(CollectionUtil.isNotEmpty(names)) {
|
if(CollectionUtil.isNotEmpty(names)) {
|
||||||
pp.setPointDelyName(names.stream().collect(Collectors.joining(",")));
|
pp.setPointDelyName(names.stream().collect(Collectors.joining(",")));
|
||||||
|
|||||||
Reference in New Issue
Block a user