转换为单据

scpwxyy
zane 7 months ago
parent d3a6477aec
commit 47c6daa1ac

@ -1456,7 +1456,7 @@ public class CtqyyClient extends CommonHttpClient {
/**
*
*
* @param udiwmsBasicSkPrescribeRequest
* @return
*/
@ -1506,7 +1506,7 @@ public class CtqyyClient extends CommonHttpClient {
}
/**
*
*
* @param udiwmsBasicSkPrescribeRequest
* @return
*/
@ -1521,7 +1521,6 @@ public class CtqyyClient extends CommonHttpClient {
VYpzsPresInfo presInfoEntity = value.get(0);
IoCollectOrder ioCollectOrder = new IoCollectOrder();
ioCollectOrder.setBillNo(presInfoEntity.getPRESCRIBE_NUMBER());
ioCollectOrder.setBusType(udiwmsBasicSkPrescribeRequest.getDocumentTypeCode());
ioCollectOrder.setFromType("HIS系统");
ioCollectOrder.setFromCorp(presInfoEntity.getSICK_ID());
ioCollectOrder.setWorkPlaceCode(Long.valueOf(udiwmsBasicSkPrescribeRequest.getWorkPlaceCode()));
@ -1531,33 +1530,27 @@ public class CtqyyClient extends CommonHttpClient {
ioCollectOrder.setCreateUser(udiwmsBasicSkPrescribeRequest.getCreateUser());
ioCollectOrder.setBackupOrderRemark1(presInfoEntity.getSTOOUT_NO());
ioCollectOrder.setUpdateTime(new Date());
ioCollectOrder.setOrderCirType(udiwmsBasicSkPrescribeRequest.getOrderCirType());
ioCollectOrder.setSplitStatus(0);
ioCollectOrder.setTagStatus(0);
List<CollectOrderBizResponse> detailList = new ArrayList<>();
List<IoCollectOrderBiz> bizList = new ArrayList<>();
value.forEach(entity ->
{
CollectOrderBizResponse collectOrderBizResponse = new CollectOrderBizResponse();
BasicUdirelEntity basicUdirel = new BasicUdirelEntity();
basicUdirel.setMainId(entity.getPHYSIC_CODE());
UdiRelevanceResponse udiRelevanceResponse = basicUdirelDao.selectOneUdi(basicUdirel);
if (udiRelevanceResponse != null) {
collectOrderBizResponse.setRelId(udiRelevanceResponse.getId());
collectOrderBizResponse.setYbbm(udiRelevanceResponse.getYbbm());
collectOrderBizResponse.setPayFeeCode(udiRelevanceResponse.getPayFeeCode());
collectOrderBizResponse.setNameCode(udiRelevanceResponse.getNameCode());
IoCollectOrderBiz collectOrderBiz = new IoCollectOrderBiz();
BasicUdirelEntity basicUdirelEntity = basicUdirelDao.selectOne(new LambdaQueryWrapper<BasicUdirelEntity>().eq(BasicUdirelEntity::getMainId, entity.getPHYSIC_CODE()));
if (basicUdirelEntity != null) {
collectOrderBiz.setRelId(basicUdirelEntity.getId());
}
collectOrderBizResponse.setThrCode(entity.getPHYSIC_CODE());
collectOrderBizResponse.setCpmctymc(entity.getPHYSIC_NAME());
collectOrderBizResponse.setGgxh(entity.getPACK_SPEC());
collectOrderBizResponse.setBatchNo("");
collectOrderBizResponse.setCount(Integer.parseInt(entity.getLAY_PHYSIC_QUANTITY()));
collectOrderBizResponse.setMeasureUnit(entity.getPHYSIC_UNIT());
collectOrderBizResponse.setTagStatus(1);
collectOrderBizResponse.setUnTagCount(0);
detailList.add(collectOrderBizResponse);
collectOrderBiz.setThrCode(entity.getPHYSIC_CODE());
collectOrderBiz.setCpmctymc(entity.getPHYSIC_NAME());
collectOrderBiz.setGgxh(entity.getPACK_SPEC());
collectOrderBiz.setBatchNo("");
collectOrderBiz.setCount(Integer.parseInt(entity.getLAY_PHYSIC_QUANTITY()));
collectOrderBiz.setMeasureUnit(entity.getPHYSIC_UNIT());
collectOrderBiz.setTagStatus(1);
collectOrderBiz.setUnTagCount(0);
bizList.add(collectOrderBiz);
});
ioCollectOrder.setCollectOrderBizResponseList(detailList);
ioCollectOrder.setBizList(bizList);
ioCollectOrders.add(ioCollectOrder);
});
PageSimpleResponse<IoCollectOrder> pageSimpleResponse = new PageSimpleResponse<>();

@ -192,5 +192,8 @@ public class IoCollectOrder implements Serializable {
@TableField(exist = false)
private List<CollectOrderBizResponse> collectOrderBizResponseList;
@TableField(exist = false)
private List<IoCollectOrderBiz> bizList;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,181 @@
package com.glxp.mipsdl.entity.inout;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
/**
*
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "io_collect_order_biz")
public class IoCollectOrderBiz implements Serializable {
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
*
*/
@TableField(value = "orderIdFk")
private String orderIdFk;
/**
* ID
*/
@TableField(value = "relId")
private Long relId;
/**
*
*/
@TableField(value = "thrCode")
private String thrCode;
/**
*
*/
@TableField(value = "ybbm")
private String ybbm;
/**
*
*/
@TableField(value = "payFeeCode")
private String payFeeCode;
/**
*
*/
@TableField(value = "cpmctymc")
private String cpmctymc;
/**
*
*/
@TableField(value = "nameCode")
private String nameCode;
/**
*
*/
@TableField(value = "ggxh")
private String ggxh;
/**
*
*/
@TableField(value = "batchNo")
private String batchNo;
/**
*
*/
@TableField(value = "productDate")
private String productDate;
/**
*
*/
@TableField(value = "expireDate")
private String expireDate;
/**
*
*/
@TableField(value = "`count`")
private Integer count;
/**
*
*/
@TableField(value = "actCount")
private Integer actCount;
/**
*
*/
@TableField(value = "scanCount")
private Integer scanCount;
/**
*
*/
@TableField(value = "scanActCount")
private Integer scanActCount;
/**
*
*/
@TableField(value = "measureUnit")
private String measureUnit;
/**
* 1:23
*/
@TableField(value = "tagStatus")
private Integer tagStatus;
/**
*
*/
@TableField(value = "tagMsg")
private String tagMsg;
/**
*
*/
@TableField(value = "remark")
private String remark;
/**
*
*/
@TableField(value = "createTime")
private Date createTime;
/**
*
*/
@TableField(value = "updateTime")
private Date updateTime;
/**
*
*/
@TableField(value = "unTagCount")
private Integer unTagCount;
/**
*
*/
@TableField(value = "autoResCount")
private Integer autoResCount;
/**
*
*/
@TableField(value = "replaceCode")
private String replaceCode;
/**
* 123:
*/
@TableField(value = "autoTagStatus")
private Integer autoTagStatus;
private static final long serialVersionUID = 1L;
}

@ -113,13 +113,5 @@ public class UdiwmsBasicSkPrescribeRequest extends ListPageRequest {
private String addr;
private String stooutNo;
/**
* 1:; 2:使
*/
private Integer orderCirType;
//单据编码
private String documentTypeCode;
}

Loading…
Cancel
Save