提交 8c6ce0d4 作者: zhangqiliang

收货管理的导出

父级 6ec85415
......@@ -96,4 +96,8 @@ public class Contants {
public static final String export_tauxiliaryMaterials_field =
"id,materialName,materialCode,specification,measurementUnit,applyQuantity,currentySap,applyStatus,team,logisticOrder,logisticStatus,receivingStatus,recipents,approvedQuantity,applyTime";
public static final String export_receive_title = "序号,安装订单号,产品名称,到货数量,产品批次,物料类别,到货仓库,收货人,收货时间,送货单";
public static final String export_receive_field =
"id,installOrder,materialName,arrivalQuantity,productBatch,materialCategory,arrivalWarehouse,receiver,receivingTime,receivedOrder";
}
package com.starcharge.wios.export.impl;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.starcharge.wios.dao.entity.Receivednote;
import com.starcharge.wios.dao.entity.Reject;
import com.starcharge.wios.dao.mappers.ReceivednoteMapper;
import com.starcharge.wios.dao.mappers.RejectMapper;
import com.starcharge.wios.export.Export;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 收货管理导出
*
* @author xgl
* @version [版本号, 2023年11月17日]
*/
@Service
public class ReceiveExport implements Export<Receivednote> {
@Autowired
private ReceivednoteMapper receivednoteMapper;
@Override
public List<Receivednote> getExportList(String json) throws Exception {
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
Receivednote condition = mapper.readValue(json, Receivednote.class);
List<Receivednote> list = receivednoteMapper.selectReceivedNoteList(condition);
int no = 1;
for (Receivednote vo : list) {
vo.setId(no++);
}
return list;
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论