fix(material): 修复预算价格错误的问题
This commit is contained in:
@@ -11,6 +11,8 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonNaming;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@@ -28,6 +30,7 @@ import mjkf.xinke.main.model.vo.BudgetCreateRequest;
|
|||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
|
||||||
@TableName(value="BUDGET_ITEM", autoResultMap=true)
|
@TableName(value="BUDGET_ITEM", autoResultMap=true)
|
||||||
@ApiModel(value = "BudgetItem对象", description = "")
|
@ApiModel(value = "BudgetItem对象", description = "")
|
||||||
public class BudgetItem extends Model<BudgetItem> {
|
public class BudgetItem extends Model<BudgetItem> {
|
||||||
@@ -76,7 +79,7 @@ public class BudgetItem extends Model<BudgetItem> {
|
|||||||
public BudgetItem(BudgetCreateRequest.BudgetMaterial item, ArrayList<Map<String, Object>> meta) {
|
public BudgetItem(BudgetCreateRequest.BudgetMaterial item, ArrayList<Map<String, Object>> meta) {
|
||||||
this.meta = meta;
|
this.meta = meta;
|
||||||
this.name = item.getName();
|
this.name = item.getName();
|
||||||
this.quantity = item.getTotalPrice();
|
this.quantity = item.getQuantity();
|
||||||
this.unit = item.getUnit();
|
this.unit = item.getUnit();
|
||||||
this.unitPrice = item.getUnitPrice();
|
this.unitPrice = item.getUnitPrice();
|
||||||
this.totalPrice = item.getTotalPrice();
|
this.totalPrice = item.getTotalPrice();
|
||||||
|
Reference in New Issue
Block a user