给商品增加图片上传功能
This commit is contained in:
@@ -23,6 +23,8 @@ public class Material {
|
||||
|
||||
private String remark;
|
||||
|
||||
private String imgName;
|
||||
|
||||
private Long unitId;
|
||||
|
||||
private Boolean enabled;
|
||||
@@ -119,6 +121,14 @@ public class Material {
|
||||
this.remark = remark == null ? null : remark.trim();
|
||||
}
|
||||
|
||||
public String getImgName() {
|
||||
return imgName;
|
||||
}
|
||||
|
||||
public void setImgName(String imgName) {
|
||||
this.imgName = imgName == null ? null : imgName.trim();
|
||||
}
|
||||
|
||||
public Long getUnitId() {
|
||||
return unitId;
|
||||
}
|
||||
|
||||
@@ -775,6 +775,76 @@ public class MaterialExample {
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameIsNull() {
|
||||
addCriterion("img_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameIsNotNull() {
|
||||
addCriterion("img_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameEqualTo(String value) {
|
||||
addCriterion("img_name =", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameNotEqualTo(String value) {
|
||||
addCriterion("img_name <>", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameGreaterThan(String value) {
|
||||
addCriterion("img_name >", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("img_name >=", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameLessThan(String value) {
|
||||
addCriterion("img_name <", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("img_name <=", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameLike(String value) {
|
||||
addCriterion("img_name like", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameNotLike(String value) {
|
||||
addCriterion("img_name not like", value, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameIn(List<String> values) {
|
||||
addCriterion("img_name in", values, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameNotIn(List<String> values) {
|
||||
addCriterion("img_name not in", values, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameBetween(String value1, String value2) {
|
||||
addCriterion("img_name between", value1, value2, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andImgNameNotBetween(String value1, String value2) {
|
||||
addCriterion("img_name not between", value1, value2, "imgName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUnitIdIsNull() {
|
||||
addCriterion("unit_id is null");
|
||||
return (Criteria) this;
|
||||
|
||||
@@ -18,7 +18,6 @@ import com.jsh.erp.utils.StringUtil;
|
||||
import com.jsh.erp.utils.Tools;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
@@ -50,8 +49,6 @@ public class AccountHeadService {
|
||||
private LogService logService;
|
||||
@Resource
|
||||
private AccountItemMapperEx accountItemMapperEx;
|
||||
@Value(value="${file.path}")
|
||||
private String filePath;
|
||||
|
||||
public AccountHead getAccountHead(long id) throws Exception {
|
||||
AccountHead result=null;
|
||||
|
||||
@@ -257,6 +257,6 @@ public class AccountItemService {
|
||||
}
|
||||
|
||||
public BigDecimal getEachAmountByBillId(Long billId) {
|
||||
return accountItemMapperEx.getEachAmountByBillId(billId);
|
||||
return accountItemMapperEx.getEachAmountByBillId(billId).abs();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user