日报专用

com.pajk.rhino.api.service.inventory.InventoryService#issue出库接口:

/**
 * 出库
* @see IssueDTO
 * @param issueDTO 出库请求对象
* @return 出库操作结果
*/
CallResult<DepotOrder> issue(IssueDTO issueDTO);

参数结构:
public class IssueDTO implements Serializable {
    private static final long serialVersionUID = 5179703459031041790L;

//仓库
private long depotId;

//出库明细
private List<InventoryDTO> issueList;

//外部单号
private String outerId;

//外部类型
private int outerType;

//操作人
private String operator;

//备注
private String reason;
}
 
public class InventoryDTO implements Serializable {

    private static final long serialVersionUID = -2963306212346025622L;

/**
     * The mandatory goods id to issue or receipt
     */
private Long goodsId;

/**
     * The serial number of card to issue or receipt.
     * It is mandatory for serial-controlled items.
     * It should be null for non-serial-controlled items.
     */
private String sn;

/**
     * Mandatory only for card card.
     */
private Long bizOrderId;

/**
     * Mandatory only for card card.
     */
private Long userId;

    private long inPrice;
}

返回结果的数据结构:
public class CallResult<T extends Serializable> implements Serializable {

    private static final long serialVersionUID = 6484672579930053768L;

    private T model;

    private boolean success = true;

    private int errorCode;

    private String errorMsg;
}
 
public class DepotOrder extends BaseModel {
    private static final long serialVersionUID = 8955232627681495681L;

    private long id;

    private long depotId;

    private long goodsId;

    private String depotName;

    private Integer depotType;

    private String outerId;

    private int outerType;

    private String reason;

    private String startSn;

    private String endSn;

    private int num;

    private int status;

    private String operator;

    private String note;
}



猜你喜欢

转载自hepeng19861212.iteye.com/blog/2423242