超市接口修改
This commit is contained in:
1 parent
68d2394a7b
commit
d61a22ccd7
3 files changed
+15
-6
No files matched your search
+4
@@ -52,4 +52,8 @@ public class InventoryRecordSaveItemDTO {
|
||||
private Long unitId;
|
||||
|
||||
|
||||
@Schema(description="实际进价")
|
||||
private Integer realPrice;
|
||||
|
||||
|
||||
}
|
||||
+10
-6
@@ -44,16 +44,16 @@ public class InventoryRecordItemVo {
|
||||
* 进价
|
||||
*/
|
||||
@Schema(description="进价")
|
||||
@JsonSerialize(using = MoneySerializer.class) // 分 -> 元
|
||||
@JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
// @JsonSerialize(using = MoneySerializer.class) // 分 -> 元
|
||||
// @JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
private Integer unitPrice;
|
||||
|
||||
/**
|
||||
* 累计总金额
|
||||
*/
|
||||
@Schema(description="累计总金额")
|
||||
@JsonSerialize(using = MoneySerializer.class) // 分 -> 元
|
||||
@JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
// @JsonSerialize(using = MoneySerializer.class) // 分 -> 元
|
||||
// @JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
private Integer totalAmount;
|
||||
|
||||
/**
|
||||
@@ -87,12 +87,16 @@ public class InventoryRecordItemVo {
|
||||
@Schema(description="装数")
|
||||
private Integer packageNum;
|
||||
|
||||
|
||||
@Schema(description="实际进价")
|
||||
private Integer realPrice;
|
||||
|
||||
/**
|
||||
* 进价(分为单位)
|
||||
*/
|
||||
@Schema(description="进价(分为单位)")
|
||||
@JsonSerialize(using = MoneySerializer.class) // 分 -> 元
|
||||
@JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
// @JsonSerialize(using = MoneySerializer.class) // 分 -> 元
|
||||
// @JsonDeserialize(using = MoneyDeserializer.class) // 元 -> 分
|
||||
private Integer purchasePrice;
|
||||
|
||||
@Schema(description = "包装对象集合对象")
|
||||
|
||||
+1
@@ -87,6 +87,7 @@ public class SmErpInventoryRecordsController {
|
||||
wrapper.eq(SmErpInventoryRecordsEntity::getInventoryType, smErpInventoryRecords.getInventoryType());
|
||||
wrapper.eq(StrUtil.isNotBlank(smErpInventoryRecords.getInventoryCode()),SmErpInventoryRecordsEntity::getInventoryCode,smErpInventoryRecords.getInventoryCode());
|
||||
wrapper.eq(null!=smErpInventoryRecords.getInventoryDate(),SmErpInventoryRecordsEntity::getInventoryDate,smErpInventoryRecords.getInventoryDate());
|
||||
wrapper.orderByDesc(SmErpInventoryRecordsEntity::getCreateTime);
|
||||
return R.ok(smErpInventoryRecordsService.pageScope(page, wrapper));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user