
15 changed files with 417 additions and 0 deletions
@ -0,0 +1,41 @@ |
|||||
|
package com.yxt.anrui.as.api.asbusrepairinventorybill; |
||||
|
|
||||
|
import com.yxt.anrui.as.api.asbusrepairinventorybilldetail.AsBusrepairInventorybillDetailDto; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AsBusrepairInventorybillDto { |
||||
|
|
||||
|
private String sid; |
||||
|
|
||||
|
private String createBySid; |
||||
|
@ApiModelProperty("来源单sid") |
||||
|
private String sourceBillSid; |
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; |
||||
|
@ApiModelProperty("制单人姓名") |
||||
|
private String createByName; |
||||
|
@ApiModelProperty("业务类型key") |
||||
|
private String busTypeKey; |
||||
|
@ApiModelProperty("业务类型value") |
||||
|
private String busTypeValue; |
||||
|
@ApiModelProperty("库管操作人sid") |
||||
|
private String warehouseManagerSid; |
||||
|
@ApiModelProperty("库管操作人") |
||||
|
private String warehouseManager; |
||||
|
@ApiModelProperty("使用组织sid") |
||||
|
private String useOrgSid; |
||||
|
@ApiModelProperty("创建组织sid") |
||||
|
private String createOrgSid; |
||||
|
|
||||
|
private List<AsBusrepairInventorybillDetailDto> detailList = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.anrui.as.api.asbusrepairinventorybill; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AsBusrepairInventorybillQuery implements Query { |
||||
|
private static final long serialVersionUID = 6148083647218322045L; |
||||
|
|
||||
|
private String userSid; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.anrui.as.api.asbusrepairinventorybill; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AsBusrepairInventorybillVo { |
||||
|
|
||||
|
private String sid; |
||||
|
@ApiModelProperty("单据编号") |
||||
|
private String billNo; |
||||
|
@ApiModelProperty("制单人") |
||||
|
private String createByName; |
||||
|
@ApiModelProperty("业务类型") |
||||
|
private String busTypeValue; |
||||
|
@ApiModelProperty("库管操作人") |
||||
|
private String warehouseManager; |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
package com.yxt.anrui.as.api.asbusrepairinventorybilldetail; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AsBusrepairInventorybillDetailDto { |
||||
|
|
||||
|
@ApiModelProperty("商品库存sid") |
||||
|
private String inventorySid; |
||||
|
@ApiModelProperty("商品sid") |
||||
|
private String goodsSid; |
||||
|
@ApiModelProperty("商品名称") |
||||
|
private String goodsName; |
||||
|
@ApiModelProperty("商品编码") |
||||
|
private String goodsCode; |
||||
|
@ApiModelProperty("规格") |
||||
|
private String specification; |
||||
|
@ApiModelProperty("型号") |
||||
|
private String goodsModel; |
||||
|
@ApiModelProperty("出库前的库存量") |
||||
|
private BigDecimal currentCount; |
||||
|
@ApiModelProperty("计量单位") |
||||
|
private String unit; |
||||
|
@ApiModelProperty("仓库sid") |
||||
|
private String warehouseSid; |
||||
|
@ApiModelProperty("仓库名称") |
||||
|
private String warehouseName; |
||||
|
@ApiModelProperty("货位") |
||||
|
private String warehouseArea; |
||||
|
@ApiModelProperty("需求数量") |
||||
|
private BigDecimal needCount; |
||||
|
@ApiModelProperty("已出库数量") |
||||
|
private BigDecimal outboundCount; |
||||
|
@ApiModelProperty("出/退库数量") |
||||
|
private BigDecimal count; |
||||
|
@ApiModelProperty("销售价(元)") |
||||
|
private BigDecimal price; |
||||
|
@ApiModelProperty("科目sid") |
||||
|
private String subjectSid; |
||||
|
@ApiModelProperty("科目") |
||||
|
private String subject; |
||||
|
@ApiModelProperty("领料人") |
||||
|
private String operUserSid; |
||||
|
@ApiModelProperty("领料人姓名") |
||||
|
private String operName; |
||||
|
} |
@ -1,4 +1,11 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.yxt.anrui.as.biz.asbusrepairinventorybill.AsBusrepairInventorybillMapper"> |
<mapper namespace="com.yxt.anrui.as.biz.asbusrepairinventorybill.AsBusrepairInventorybillMapper"> |
||||
|
<select id="pageList" resultType="com.yxt.anrui.as.api.asbusrepairinventorybill.AsBusrepairInventorybillVo"> |
||||
|
select sid, billNo, createByName, busTypeValue, warehouseManager |
||||
|
from as_busrepair_inventorybill |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
</mapper> |
</mapper> |
@ -1,4 +1,16 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.yxt.anrui.as.biz.asbusrepairinventorybilldetail.AsBusrepairInventorybillDetailMapper"> |
<mapper namespace="com.yxt.anrui.as.biz.asbusrepairinventorybilldetail.AsBusrepairInventorybillDetailMapper"> |
||||
|
<delete id="deleteByMainSid"> |
||||
|
delete |
||||
|
from as_busrepair_inventorybill_detail |
||||
|
where billSid = #{sid} |
||||
|
</delete> |
||||
|
|
||||
|
<select id="selectByMainSid" |
||||
|
resultType="com.yxt.anrui.as.api.asbusrepairinventorybilldetail.AsBusrepairInventorybillDetail"> |
||||
|
select * |
||||
|
from as_busrepair_inventorybill_detail |
||||
|
where billSid = #{sid} |
||||
|
</select> |
||||
</mapper> |
</mapper> |
@ -0,0 +1,22 @@ |
|||||
|
package com.yxt.anrui.as.feign.wms.wmsinventorybill; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.Date; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WmsInventoryBillDetailDto { |
||||
|
|
||||
|
private String inventorySid;//商品库存sid
|
||||
|
private String goodsSid;//商品sid
|
||||
|
private String goodsName;//商品名称
|
||||
|
private String goodsCode;//商品编码(图号)
|
||||
|
private String specification;//规格
|
||||
|
private String goodsModel;//型号
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.anrui.as.feign.wms.wmsinventorybill; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class WmsInventoryBillDto { |
||||
|
|
||||
|
|
||||
|
private String sourceBillSid;//来源单sid
|
||||
|
private String billNo;//单据编号
|
||||
|
private String billType;//单据类型(入库、出库)
|
||||
|
private String createDate;//单据日期
|
||||
|
private String createBySid;//制单人
|
||||
|
private String createByName;//制单人姓名
|
||||
|
private String busTypeKey;//业务类型key(采购入库、维修出入库、销售出入库等)
|
||||
|
private String busTypeValue;//业务类型value(采购入库、维修出入库、销售出入库等)
|
||||
|
private String warehouseManagerSid;//库管操作人sid
|
||||
|
private String warehouseManager;//库管操作人
|
||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
||||
|
private String outTime;//实际出库时间
|
||||
|
private String useOrgSid;//使用组织sid
|
||||
|
private String createOrgSid;//创建组织sid
|
||||
|
private List<WmsInventoryBillDetailDto> wmsInventoryBillDetailDtos = new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,24 @@ |
|||||
|
package com.yxt.anrui.as.feign.wms.wmsinventorybill; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
|
||||
|
/** |
||||
|
* @description: 出入库单据 |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@FeignClient( |
||||
|
contextId = "yxt-wms-WmsInventoryBill", |
||||
|
name = "yxt-wms", |
||||
|
path = "apiadmin/inventory/wmsinventorybill", |
||||
|
fallback = WmsInventoryBillFeignFallback.class) |
||||
|
public interface WmsInventoryBillFeign { |
||||
|
|
||||
|
@ApiOperation("出库") |
||||
|
@PostMapping("/outStorage") |
||||
|
public ResultBean outStorage(@RequestBody WmsInventoryBillDto dto); |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.yxt.anrui.as.feign.wms.wmsinventorybill; |
||||
|
|
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
|
||||
|
/** |
||||
|
* @description: |
||||
|
* @author: dimengzhe |
||||
|
* @date: 2024/3/7 |
||||
|
**/ |
||||
|
@Component |
||||
|
public class WmsInventoryBillFeignFallback implements WmsInventoryBillFeign { |
||||
|
@Override |
||||
|
public ResultBean outStorage(WmsInventoryBillDto dto) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue