16 changed files with 202 additions and 54 deletions
@ -0,0 +1,24 @@
|
||||
package dubbo.dto; |
||||
|
||||
import lombok.Builder; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
|
||||
@Data |
||||
@Builder |
||||
public class IntoStockMaterialDTO implements Serializable { |
||||
|
||||
// 仓库ID
|
||||
private String wareHouseId; |
||||
|
||||
// 物料id
|
||||
private String materialId; |
||||
|
||||
// 入库数量
|
||||
private BigDecimal num; |
||||
|
||||
// 价格传0
|
||||
private BigDecimal price; |
||||
} |
@ -1,13 +1,24 @@
|
||||
package dubbo.service; |
||||
|
||||
import dubbo.dto.BasMaterial; |
||||
import com.alibaba.fastjson.JSONObject; |
||||
import dubbo.dto.IntoStockMaterialDTO; |
||||
|
||||
import java.util.List; |
||||
|
||||
public interface OpenErpService { |
||||
|
||||
// 把实现方法写在这里
|
||||
String hello(); |
||||
//租户列表
|
||||
List<JSONObject> getTenantList(); |
||||
|
||||
List<BasMaterial> list(); |
||||
//材料列表
|
||||
List<JSONObject> getMaterialList(); |
||||
|
||||
//仓库列表
|
||||
List<JSONObject> getWareHouse(); |
||||
|
||||
//入库
|
||||
Boolean intoStock(List<IntoStockMaterialDTO> stkInventoryList); |
||||
|
||||
//出库
|
||||
Boolean outStock(List<JSONObject> stkInventoryList); |
||||
} |
||||
|
@ -0,0 +1,14 @@
|
||||
package cn.iocoder.yudao.module.farm.controller.admin.crop.dto; |
||||
|
||||
import lombok.Data; |
||||
|
||||
/* |
||||
* Erp的MaterialDTO |
||||
*/ |
||||
@Data |
||||
public class ErpMaterialDTO { |
||||
|
||||
private Long id; |
||||
|
||||
private String name ; |
||||
} |
Loading…
Reference in new issue