去除单据多余的字段

This commit is contained in:
季圣华
2021-07-22 22:58:42 +08:00
parent 955fd58542
commit dd73a0d1e1
19 changed files with 191 additions and 1194 deletions

View File

@@ -191,7 +191,6 @@ public class DepotItemController {
item.put("taxUnitPrice", diEx.getTaxUnitPrice()); item.put("taxUnitPrice", diEx.getTaxUnitPrice());
item.put("allPrice", diEx.getAllPrice()); item.put("allPrice", diEx.getAllPrice());
item.put("remark", diEx.getRemark()); item.put("remark", diEx.getRemark());
item.put("img", diEx.getImg());
item.put("depotId", diEx.getDepotId() == null ? "" : diEx.getDepotId()); item.put("depotId", diEx.getDepotId() == null ? "" : diEx.getDepotId());
item.put("depotName", diEx.getDepotId() == null ? "" : diEx.getDepotName()); item.put("depotName", diEx.getDepotId() == null ? "" : diEx.getDepotName());
item.put("anotherDepotId", diEx.getAnotherDepotId() == null ? "" : diEx.getAnotherDepotId()); item.put("anotherDepotId", diEx.getAnotherDepotId() == null ? "" : diEx.getAnotherDepotId());

View File

@@ -49,7 +49,6 @@ public class OrganizationController {
if (null != dataList) { if (null != dataList) {
for (Organization org : dataList) { for (Organization org : dataList) {
outer.put("id", org.getId()); outer.put("id", org.getId());
outer.put("orgFullName", org.getOrgFullName());
outer.put("orgAbr", org.getOrgAbr()); outer.put("orgAbr", org.getOrgAbr());
outer.put("parentId", org.getParentId()); outer.put("parentId", org.getParentId());
List<Organization> dataParentList = organizationService.findByParentId(org.getParentId()); List<Organization> dataParentList = organizationService.findByParentId(org.getParentId());

View File

@@ -20,8 +20,6 @@ public class DepotHead {
private Long organId; private Long organId;
private Long handsPersonId;
private Long creator; private Long creator;
private Long accountId; private Long accountId;
@@ -52,12 +50,6 @@ public class DepotHead {
private BigDecimal otherMoney; private BigDecimal otherMoney;
private String otherMoneyList;
private String otherMoneyItem;
private Integer accountDay;
private String status; private String status;
private String linkNumber; private String linkNumber;
@@ -130,14 +122,6 @@ public class DepotHead {
this.organId = organId; this.organId = organId;
} }
public Long getHandsPersonId() {
return handsPersonId;
}
public void setHandsPersonId(Long handsPersonId) {
this.handsPersonId = handsPersonId;
}
public Long getCreator() { public Long getCreator() {
return creator; return creator;
} }
@@ -258,30 +242,6 @@ public class DepotHead {
this.otherMoney = otherMoney; this.otherMoney = otherMoney;
} }
public String getOtherMoneyList() {
return otherMoneyList;
}
public void setOtherMoneyList(String otherMoneyList) {
this.otherMoneyList = otherMoneyList == null ? null : otherMoneyList.trim();
}
public String getOtherMoneyItem() {
return otherMoneyItem;
}
public void setOtherMoneyItem(String otherMoneyItem) {
this.otherMoneyItem = otherMoneyItem == null ? null : otherMoneyItem.trim();
}
public Integer getAccountDay() {
return accountDay;
}
public void setAccountDay(Integer accountDay) {
this.accountDay = accountDay;
}
public String getStatus() { public String getStatus() {
return status; return status;
} }

View File

@@ -626,66 +626,6 @@ public class DepotHeadExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andHandsPersonIdIsNull() {
addCriterion("hands_person_id is null");
return (Criteria) this;
}
public Criteria andHandsPersonIdIsNotNull() {
addCriterion("hands_person_id is not null");
return (Criteria) this;
}
public Criteria andHandsPersonIdEqualTo(Long value) {
addCriterion("hands_person_id =", value, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdNotEqualTo(Long value) {
addCriterion("hands_person_id <>", value, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdGreaterThan(Long value) {
addCriterion("hands_person_id >", value, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdGreaterThanOrEqualTo(Long value) {
addCriterion("hands_person_id >=", value, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdLessThan(Long value) {
addCriterion("hands_person_id <", value, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdLessThanOrEqualTo(Long value) {
addCriterion("hands_person_id <=", value, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdIn(List<Long> values) {
addCriterion("hands_person_id in", values, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdNotIn(List<Long> values) {
addCriterion("hands_person_id not in", values, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdBetween(Long value1, Long value2) {
addCriterion("hands_person_id between", value1, value2, "handsPersonId");
return (Criteria) this;
}
public Criteria andHandsPersonIdNotBetween(Long value1, Long value2) {
addCriterion("hands_person_id not between", value1, value2, "handsPersonId");
return (Criteria) this;
}
public Criteria andCreatorIsNull() { public Criteria andCreatorIsNull() {
addCriterion("creator is null"); addCriterion("creator is null");
return (Criteria) this; return (Criteria) this;
@@ -1656,206 +1596,6 @@ public class DepotHeadExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andOtherMoneyListIsNull() {
addCriterion("other_money_list is null");
return (Criteria) this;
}
public Criteria andOtherMoneyListIsNotNull() {
addCriterion("other_money_list is not null");
return (Criteria) this;
}
public Criteria andOtherMoneyListEqualTo(String value) {
addCriterion("other_money_list =", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListNotEqualTo(String value) {
addCriterion("other_money_list <>", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListGreaterThan(String value) {
addCriterion("other_money_list >", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListGreaterThanOrEqualTo(String value) {
addCriterion("other_money_list >=", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListLessThan(String value) {
addCriterion("other_money_list <", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListLessThanOrEqualTo(String value) {
addCriterion("other_money_list <=", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListLike(String value) {
addCriterion("other_money_list like", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListNotLike(String value) {
addCriterion("other_money_list not like", value, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListIn(List<String> values) {
addCriterion("other_money_list in", values, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListNotIn(List<String> values) {
addCriterion("other_money_list not in", values, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListBetween(String value1, String value2) {
addCriterion("other_money_list between", value1, value2, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyListNotBetween(String value1, String value2) {
addCriterion("other_money_list not between", value1, value2, "otherMoneyList");
return (Criteria) this;
}
public Criteria andOtherMoneyItemIsNull() {
addCriterion("other_money_item is null");
return (Criteria) this;
}
public Criteria andOtherMoneyItemIsNotNull() {
addCriterion("other_money_item is not null");
return (Criteria) this;
}
public Criteria andOtherMoneyItemEqualTo(String value) {
addCriterion("other_money_item =", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemNotEqualTo(String value) {
addCriterion("other_money_item <>", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemGreaterThan(String value) {
addCriterion("other_money_item >", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemGreaterThanOrEqualTo(String value) {
addCriterion("other_money_item >=", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemLessThan(String value) {
addCriterion("other_money_item <", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemLessThanOrEqualTo(String value) {
addCriterion("other_money_item <=", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemLike(String value) {
addCriterion("other_money_item like", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemNotLike(String value) {
addCriterion("other_money_item not like", value, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemIn(List<String> values) {
addCriterion("other_money_item in", values, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemNotIn(List<String> values) {
addCriterion("other_money_item not in", values, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemBetween(String value1, String value2) {
addCriterion("other_money_item between", value1, value2, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andOtherMoneyItemNotBetween(String value1, String value2) {
addCriterion("other_money_item not between", value1, value2, "otherMoneyItem");
return (Criteria) this;
}
public Criteria andAccountDayIsNull() {
addCriterion("account_day is null");
return (Criteria) this;
}
public Criteria andAccountDayIsNotNull() {
addCriterion("account_day is not null");
return (Criteria) this;
}
public Criteria andAccountDayEqualTo(Integer value) {
addCriterion("account_day =", value, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayNotEqualTo(Integer value) {
addCriterion("account_day <>", value, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayGreaterThan(Integer value) {
addCriterion("account_day >", value, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayGreaterThanOrEqualTo(Integer value) {
addCriterion("account_day >=", value, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayLessThan(Integer value) {
addCriterion("account_day <", value, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayLessThanOrEqualTo(Integer value) {
addCriterion("account_day <=", value, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayIn(List<Integer> values) {
addCriterion("account_day in", values, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayNotIn(List<Integer> values) {
addCriterion("account_day not in", values, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayBetween(Integer value1, Integer value2) {
addCriterion("account_day between", value1, value2, "accountDay");
return (Criteria) this;
}
public Criteria andAccountDayNotBetween(Integer value1, Integer value2) {
addCriterion("account_day not between", value1, value2, "accountDay");
return (Criteria) this;
}
public Criteria andStatusIsNull() { public Criteria andStatusIsNull() {
addCriterion("status is null"); addCriterion("status is null");
return (Criteria) this; return (Criteria) this;

View File

@@ -25,10 +25,6 @@ public class DepotItem {
private String remark; private String remark;
private String img;
private BigDecimal incidentals;
private Long depotId; private Long depotId;
private Long anotherDepotId; private Long anotherDepotId;
@@ -39,16 +35,6 @@ public class DepotItem {
private BigDecimal taxLastMoney; private BigDecimal taxLastMoney;
private String otherField1;
private String otherField2;
private String otherField3;
private String otherField4;
private String otherField5;
private String materialType; private String materialType;
private Long tenantId; private Long tenantId;
@@ -143,22 +129,6 @@ public class DepotItem {
this.remark = remark == null ? null : remark.trim(); this.remark = remark == null ? null : remark.trim();
} }
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img == null ? null : img.trim();
}
public BigDecimal getIncidentals() {
return incidentals;
}
public void setIncidentals(BigDecimal incidentals) {
this.incidentals = incidentals;
}
public Long getDepotId() { public Long getDepotId() {
return depotId; return depotId;
} }
@@ -199,46 +169,6 @@ public class DepotItem {
this.taxLastMoney = taxLastMoney; this.taxLastMoney = taxLastMoney;
} }
public String getOtherField1() {
return otherField1;
}
public void setOtherField1(String otherField1) {
this.otherField1 = otherField1 == null ? null : otherField1.trim();
}
public String getOtherField2() {
return otherField2;
}
public void setOtherField2(String otherField2) {
this.otherField2 = otherField2 == null ? null : otherField2.trim();
}
public String getOtherField3() {
return otherField3;
}
public void setOtherField3(String otherField3) {
this.otherField3 = otherField3 == null ? null : otherField3.trim();
}
public String getOtherField4() {
return otherField4;
}
public void setOtherField4(String otherField4) {
this.otherField4 = otherField4 == null ? null : otherField4.trim();
}
public String getOtherField5() {
return otherField5;
}
public void setOtherField5(String otherField5) {
this.otherField5 = otherField5 == null ? null : otherField5.trim();
}
public String getMaterialType() { public String getMaterialType() {
return materialType; return materialType;
} }

View File

@@ -785,136 +785,6 @@ public class DepotItemExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andImgIsNull() {
addCriterion("img is null");
return (Criteria) this;
}
public Criteria andImgIsNotNull() {
addCriterion("img is not null");
return (Criteria) this;
}
public Criteria andImgEqualTo(String value) {
addCriterion("img =", value, "img");
return (Criteria) this;
}
public Criteria andImgNotEqualTo(String value) {
addCriterion("img <>", value, "img");
return (Criteria) this;
}
public Criteria andImgGreaterThan(String value) {
addCriterion("img >", value, "img");
return (Criteria) this;
}
public Criteria andImgGreaterThanOrEqualTo(String value) {
addCriterion("img >=", value, "img");
return (Criteria) this;
}
public Criteria andImgLessThan(String value) {
addCriterion("img <", value, "img");
return (Criteria) this;
}
public Criteria andImgLessThanOrEqualTo(String value) {
addCriterion("img <=", value, "img");
return (Criteria) this;
}
public Criteria andImgLike(String value) {
addCriterion("img like", value, "img");
return (Criteria) this;
}
public Criteria andImgNotLike(String value) {
addCriterion("img not like", value, "img");
return (Criteria) this;
}
public Criteria andImgIn(List<String> values) {
addCriterion("img in", values, "img");
return (Criteria) this;
}
public Criteria andImgNotIn(List<String> values) {
addCriterion("img not in", values, "img");
return (Criteria) this;
}
public Criteria andImgBetween(String value1, String value2) {
addCriterion("img between", value1, value2, "img");
return (Criteria) this;
}
public Criteria andImgNotBetween(String value1, String value2) {
addCriterion("img not between", value1, value2, "img");
return (Criteria) this;
}
public Criteria andIncidentalsIsNull() {
addCriterion("incidentals is null");
return (Criteria) this;
}
public Criteria andIncidentalsIsNotNull() {
addCriterion("incidentals is not null");
return (Criteria) this;
}
public Criteria andIncidentalsEqualTo(BigDecimal value) {
addCriterion("incidentals =", value, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsNotEqualTo(BigDecimal value) {
addCriterion("incidentals <>", value, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsGreaterThan(BigDecimal value) {
addCriterion("incidentals >", value, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("incidentals >=", value, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsLessThan(BigDecimal value) {
addCriterion("incidentals <", value, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsLessThanOrEqualTo(BigDecimal value) {
addCriterion("incidentals <=", value, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsIn(List<BigDecimal> values) {
addCriterion("incidentals in", values, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsNotIn(List<BigDecimal> values) {
addCriterion("incidentals not in", values, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("incidentals between", value1, value2, "incidentals");
return (Criteria) this;
}
public Criteria andIncidentalsNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("incidentals not between", value1, value2, "incidentals");
return (Criteria) this;
}
public Criteria andDepotIdIsNull() { public Criteria andDepotIdIsNull() {
addCriterion("depot_id is null"); addCriterion("depot_id is null");
return (Criteria) this; return (Criteria) this;
@@ -1215,356 +1085,6 @@ public class DepotItemExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andOtherField1IsNull() {
addCriterion("other_field1 is null");
return (Criteria) this;
}
public Criteria andOtherField1IsNotNull() {
addCriterion("other_field1 is not null");
return (Criteria) this;
}
public Criteria andOtherField1EqualTo(String value) {
addCriterion("other_field1 =", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1NotEqualTo(String value) {
addCriterion("other_field1 <>", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1GreaterThan(String value) {
addCriterion("other_field1 >", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1GreaterThanOrEqualTo(String value) {
addCriterion("other_field1 >=", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1LessThan(String value) {
addCriterion("other_field1 <", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1LessThanOrEqualTo(String value) {
addCriterion("other_field1 <=", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1Like(String value) {
addCriterion("other_field1 like", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1NotLike(String value) {
addCriterion("other_field1 not like", value, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1In(List<String> values) {
addCriterion("other_field1 in", values, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1NotIn(List<String> values) {
addCriterion("other_field1 not in", values, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1Between(String value1, String value2) {
addCriterion("other_field1 between", value1, value2, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField1NotBetween(String value1, String value2) {
addCriterion("other_field1 not between", value1, value2, "otherField1");
return (Criteria) this;
}
public Criteria andOtherField2IsNull() {
addCriterion("other_field2 is null");
return (Criteria) this;
}
public Criteria andOtherField2IsNotNull() {
addCriterion("other_field2 is not null");
return (Criteria) this;
}
public Criteria andOtherField2EqualTo(String value) {
addCriterion("other_field2 =", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2NotEqualTo(String value) {
addCriterion("other_field2 <>", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2GreaterThan(String value) {
addCriterion("other_field2 >", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2GreaterThanOrEqualTo(String value) {
addCriterion("other_field2 >=", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2LessThan(String value) {
addCriterion("other_field2 <", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2LessThanOrEqualTo(String value) {
addCriterion("other_field2 <=", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2Like(String value) {
addCriterion("other_field2 like", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2NotLike(String value) {
addCriterion("other_field2 not like", value, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2In(List<String> values) {
addCriterion("other_field2 in", values, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2NotIn(List<String> values) {
addCriterion("other_field2 not in", values, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2Between(String value1, String value2) {
addCriterion("other_field2 between", value1, value2, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField2NotBetween(String value1, String value2) {
addCriterion("other_field2 not between", value1, value2, "otherField2");
return (Criteria) this;
}
public Criteria andOtherField3IsNull() {
addCriterion("other_field3 is null");
return (Criteria) this;
}
public Criteria andOtherField3IsNotNull() {
addCriterion("other_field3 is not null");
return (Criteria) this;
}
public Criteria andOtherField3EqualTo(String value) {
addCriterion("other_field3 =", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3NotEqualTo(String value) {
addCriterion("other_field3 <>", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3GreaterThan(String value) {
addCriterion("other_field3 >", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3GreaterThanOrEqualTo(String value) {
addCriterion("other_field3 >=", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3LessThan(String value) {
addCriterion("other_field3 <", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3LessThanOrEqualTo(String value) {
addCriterion("other_field3 <=", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3Like(String value) {
addCriterion("other_field3 like", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3NotLike(String value) {
addCriterion("other_field3 not like", value, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3In(List<String> values) {
addCriterion("other_field3 in", values, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3NotIn(List<String> values) {
addCriterion("other_field3 not in", values, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3Between(String value1, String value2) {
addCriterion("other_field3 between", value1, value2, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField3NotBetween(String value1, String value2) {
addCriterion("other_field3 not between", value1, value2, "otherField3");
return (Criteria) this;
}
public Criteria andOtherField4IsNull() {
addCriterion("other_field4 is null");
return (Criteria) this;
}
public Criteria andOtherField4IsNotNull() {
addCriterion("other_field4 is not null");
return (Criteria) this;
}
public Criteria andOtherField4EqualTo(String value) {
addCriterion("other_field4 =", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4NotEqualTo(String value) {
addCriterion("other_field4 <>", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4GreaterThan(String value) {
addCriterion("other_field4 >", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4GreaterThanOrEqualTo(String value) {
addCriterion("other_field4 >=", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4LessThan(String value) {
addCriterion("other_field4 <", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4LessThanOrEqualTo(String value) {
addCriterion("other_field4 <=", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4Like(String value) {
addCriterion("other_field4 like", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4NotLike(String value) {
addCriterion("other_field4 not like", value, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4In(List<String> values) {
addCriterion("other_field4 in", values, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4NotIn(List<String> values) {
addCriterion("other_field4 not in", values, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4Between(String value1, String value2) {
addCriterion("other_field4 between", value1, value2, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField4NotBetween(String value1, String value2) {
addCriterion("other_field4 not between", value1, value2, "otherField4");
return (Criteria) this;
}
public Criteria andOtherField5IsNull() {
addCriterion("other_field5 is null");
return (Criteria) this;
}
public Criteria andOtherField5IsNotNull() {
addCriterion("other_field5 is not null");
return (Criteria) this;
}
public Criteria andOtherField5EqualTo(String value) {
addCriterion("other_field5 =", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5NotEqualTo(String value) {
addCriterion("other_field5 <>", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5GreaterThan(String value) {
addCriterion("other_field5 >", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5GreaterThanOrEqualTo(String value) {
addCriterion("other_field5 >=", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5LessThan(String value) {
addCriterion("other_field5 <", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5LessThanOrEqualTo(String value) {
addCriterion("other_field5 <=", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5Like(String value) {
addCriterion("other_field5 like", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5NotLike(String value) {
addCriterion("other_field5 not like", value, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5In(List<String> values) {
addCriterion("other_field5 in", values, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5NotIn(List<String> values) {
addCriterion("other_field5 not in", values, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5Between(String value1, String value2) {
addCriterion("other_field5 between", value1, value2, "otherField5");
return (Criteria) this;
}
public Criteria andOtherField5NotBetween(String value1, String value2) {
addCriterion("other_field5 not between", value1, value2, "otherField5");
return (Criteria) this;
}
public Criteria andMaterialTypeIsNull() { public Criteria andMaterialTypeIsNull() {
addCriterion("material_type is null"); addCriterion("material_type is null");
return (Criteria) this; return (Criteria) this;

View File

@@ -12,6 +12,8 @@ public class MaterialExtend {
private String commodityUnit; private String commodityUnit;
private String sku;
private BigDecimal purchaseDecimal; private BigDecimal purchaseDecimal;
private BigDecimal commodityDecimal; private BigDecimal commodityDecimal;
@@ -66,6 +68,14 @@ public class MaterialExtend {
this.commodityUnit = commodityUnit == null ? null : commodityUnit.trim(); this.commodityUnit = commodityUnit == null ? null : commodityUnit.trim();
} }
public String getSku() {
return sku;
}
public void setSku(String sku) {
this.sku = sku == null ? null : sku.trim();
}
public BigDecimal getPurchaseDecimal() { public BigDecimal getPurchaseDecimal() {
return purchaseDecimal; return purchaseDecimal;
} }

View File

@@ -366,6 +366,76 @@ public class MaterialExtendExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSkuIsNull() {
addCriterion("sku is null");
return (Criteria) this;
}
public Criteria andSkuIsNotNull() {
addCriterion("sku is not null");
return (Criteria) this;
}
public Criteria andSkuEqualTo(String value) {
addCriterion("sku =", value, "sku");
return (Criteria) this;
}
public Criteria andSkuNotEqualTo(String value) {
addCriterion("sku <>", value, "sku");
return (Criteria) this;
}
public Criteria andSkuGreaterThan(String value) {
addCriterion("sku >", value, "sku");
return (Criteria) this;
}
public Criteria andSkuGreaterThanOrEqualTo(String value) {
addCriterion("sku >=", value, "sku");
return (Criteria) this;
}
public Criteria andSkuLessThan(String value) {
addCriterion("sku <", value, "sku");
return (Criteria) this;
}
public Criteria andSkuLessThanOrEqualTo(String value) {
addCriterion("sku <=", value, "sku");
return (Criteria) this;
}
public Criteria andSkuLike(String value) {
addCriterion("sku like", value, "sku");
return (Criteria) this;
}
public Criteria andSkuNotLike(String value) {
addCriterion("sku not like", value, "sku");
return (Criteria) this;
}
public Criteria andSkuIn(List<String> values) {
addCriterion("sku in", values, "sku");
return (Criteria) this;
}
public Criteria andSkuNotIn(List<String> values) {
addCriterion("sku not in", values, "sku");
return (Criteria) this;
}
public Criteria andSkuBetween(String value1, String value2) {
addCriterion("sku between", value1, value2, "sku");
return (Criteria) this;
}
public Criteria andSkuNotBetween(String value1, String value2) {
addCriterion("sku not between", value1, value2, "sku");
return (Criteria) this;
}
public Criteria andPurchaseDecimalIsNull() { public Criteria andPurchaseDecimalIsNull() {
addCriterion("purchase_decimal is null"); addCriterion("purchase_decimal is null");
return (Criteria) this; return (Criteria) this;

View File

@@ -7,8 +7,6 @@ public class Organization {
private String orgNo; private String orgNo;
private String orgFullName;
private String orgAbr; private String orgAbr;
private Long parentId; private Long parentId;
@@ -41,14 +39,6 @@ public class Organization {
this.orgNo = orgNo == null ? null : orgNo.trim(); this.orgNo = orgNo == null ? null : orgNo.trim();
} }
public String getOrgFullName() {
return orgFullName;
}
public void setOrgFullName(String orgFullName) {
this.orgFullName = orgFullName == null ? null : orgFullName.trim();
}
public String getOrgAbr() { public String getOrgAbr() {
return orgAbr; return orgAbr;
} }

View File

@@ -235,76 +235,6 @@ public class OrganizationExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andOrgFullNameIsNull() {
addCriterion("org_full_name is null");
return (Criteria) this;
}
public Criteria andOrgFullNameIsNotNull() {
addCriterion("org_full_name is not null");
return (Criteria) this;
}
public Criteria andOrgFullNameEqualTo(String value) {
addCriterion("org_full_name =", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameNotEqualTo(String value) {
addCriterion("org_full_name <>", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameGreaterThan(String value) {
addCriterion("org_full_name >", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameGreaterThanOrEqualTo(String value) {
addCriterion("org_full_name >=", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameLessThan(String value) {
addCriterion("org_full_name <", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameLessThanOrEqualTo(String value) {
addCriterion("org_full_name <=", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameLike(String value) {
addCriterion("org_full_name like", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameNotLike(String value) {
addCriterion("org_full_name not like", value, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameIn(List<String> values) {
addCriterion("org_full_name in", values, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameNotIn(List<String> values) {
addCriterion("org_full_name not in", values, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameBetween(String value1, String value2) {
addCriterion("org_full_name between", value1, value2, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgFullNameNotBetween(String value1, String value2) {
addCriterion("org_full_name not between", value1, value2, "orgFullName");
return (Criteria) this;
}
public Criteria andOrgAbrIsNull() { public Criteria andOrgAbrIsNull() {
addCriterion("org_abr is null"); addCriterion("org_abr is null");
return (Criteria) this; return (Criteria) this;

View File

@@ -582,14 +582,6 @@ public class DepotHeadService {
String accountmoneylistStr = dh.getAccountMoneyList().replace("[", "").replace("]", "").replaceAll("\"", ""); String accountmoneylistStr = dh.getAccountMoneyList().replace("[", "").replace("]", "").replaceAll("\"", "");
dh.setAccountMoneyList(accountmoneylistStr); dh.setAccountMoneyList(accountmoneylistStr);
} }
if(dh.getOtherMoneyList() != null) {
String otherMoneyListStr = dh.getOtherMoneyList().replace("[", "").replace("]", "").replaceAll("\"", "");
dh.setOtherMoneyList(otherMoneyListStr);
}
if(dh.getOtherMoneyItem() != null) {
String otherMoneyItemStr = dh.getOtherMoneyItem().replace("[", "").replace("]", "").replaceAll("\"", "");
dh.setOtherMoneyItem(otherMoneyItemStr);
}
if(dh.getChangeAmount() != null) { if(dh.getChangeAmount() != null) {
dh.setChangeAmount(dh.getChangeAmount().abs()); dh.setChangeAmount(dh.getChangeAmount().abs());
} }

View File

@@ -17,7 +17,9 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
@Service @Service
public class MaterialAttributeService { public class MaterialAttributeService {
@@ -56,9 +58,28 @@ public class MaterialAttributeService {
public List<MaterialAttribute> select(String attributeField, int offset, int rows) public List<MaterialAttribute> select(String attributeField, int offset, int rows)
throws Exception{ throws Exception{
String[] arr = {"color","size","brand","other1","other2"};
Map<String, String> map = new HashMap<>();
map.put("color", "颜色");
map.put("size", "尺寸");
map.put("brand", "品牌");
map.put("other1", "自定义1");
map.put("other2", "自定义2");
List<MaterialAttribute> list = new ArrayList<>(); List<MaterialAttribute> list = new ArrayList<>();
try{ try{
list= materialAttributeMapperEx.selectByConditionMaterialAttribute(attributeField, offset, rows); List<MaterialAttribute> maList = materialAttributeMapperEx.selectByConditionMaterialAttribute(attributeField, offset, rows);
for(String field: arr) {
MaterialAttribute materialAttribute = new MaterialAttribute();
materialAttribute.setAttributeField(field);
materialAttribute.setAttributeName(map.get(field));
for(MaterialAttribute ma: maList) {
if(field.equals(ma.getAttributeField())){
materialAttribute.setAttributeName(ma.getAttributeName());
materialAttribute.setAttributeValue(ma.getAttributeValue());
}
}
list.add(materialAttribute);
}
}catch(Exception e){ }catch(Exception e){
JshException.readFail(logger, e); JshException.readFail(logger, e);
} }

View File

@@ -63,6 +63,6 @@ public class OrganizationComponent implements ICommonQuery {
@Override @Override
public int checkIsNameExist(Long id, String name)throws Exception { public int checkIsNameExist(Long id, String name)throws Exception {
return 0; return organizationService.checkIsNameExist(id, name);
} }
} }

View File

@@ -73,7 +73,7 @@ public class OrganizationService {
try{ try{
result=organizationMapper.insertSelective(organization); result=organizationMapper.insertSelective(organization);
logService.insertLog("机构", logService.insertLog("机构",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(organization.getOrgFullName()).toString(),request); new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(organization.getOrgAbr()).toString(),request);
}catch(Exception e){ }catch(Exception e){
JshException.writeFail(logger, e); JshException.writeFail(logger, e);
} }
@@ -87,7 +87,7 @@ public class OrganizationService {
try{ try{
result=organizationMapper.updateByPrimaryKeySelective(organization); result=organizationMapper.updateByPrimaryKeySelective(organization);
logService.insertLog("机构", logService.insertLog("机构",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(organization.getOrgFullName()).toString(), request); new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(organization.getOrgAbr()).toString(), request);
}catch(Exception e){ }catch(Exception e){
JshException.writeFail(logger, e); JshException.writeFail(logger, e);
} }
@@ -110,7 +110,7 @@ public class OrganizationService {
sb.append(BusinessConstants.LOG_OPERATION_TYPE_DELETE); sb.append(BusinessConstants.LOG_OPERATION_TYPE_DELETE);
List<Organization> list = getOrganizationListByIds(ids); List<Organization> list = getOrganizationListByIds(ids);
for(Organization organization: list){ for(Organization organization: list){
sb.append("[").append(organization.getOrgFullName()).append("]"); sb.append("[").append(organization.getOrgAbr()).append("]");
} }
logService.insertLog("机构", sb.toString(), logService.insertLog("机构", sb.toString(),
((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest());
@@ -126,10 +126,22 @@ public class OrganizationService {
return result; return result;
} }
public int checkIsNameExist(Long id, String name)throws Exception {
OrganizationExample example = new OrganizationExample();
example.createCriteria().andIdNotEqualTo(id).andOrgAbrEqualTo(name).andDeleteFlagNotEqualTo(BusinessConstants.DELETE_FLAG_DELETED);
List<Organization> list=null;
try{
list= organizationMapper.selectByExample(example);
}catch(Exception e){
JshException.readFail(logger, e);
}
return list==null?0:list.size();
}
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
public int addOrganization(Organization org) throws Exception{ public int addOrganization(Organization org) throws Exception{
logService.insertLog("机构", logService.insertLog("机构",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(org.getOrgFullName()).toString(), new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_ADD).append(org.getOrgAbr()).toString(),
((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest());
//新增时间 //新增时间
Date date=new Date(); Date date=new Date();
@@ -160,7 +172,7 @@ public class OrganizationService {
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
public int editOrganization(Organization org)throws Exception { public int editOrganization(Organization org)throws Exception {
logService.insertLog("机构", logService.insertLog("机构",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(org.getOrgFullName()).toString(), new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(org.getOrgAbr()).toString(),
((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()); ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest());
//修改时间 //修改时间
org.setUpdateTime(new Date()); org.setUpdateTime(new Date());

View File

@@ -10,7 +10,6 @@
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="oper_time" jdbcType="TIMESTAMP" property="operTime" /> <result column="oper_time" jdbcType="TIMESTAMP" property="operTime" />
<result column="organ_id" jdbcType="BIGINT" property="organId" /> <result column="organ_id" jdbcType="BIGINT" property="organId" />
<result column="hands_person_id" jdbcType="BIGINT" property="handsPersonId" />
<result column="creator" jdbcType="BIGINT" property="creator" /> <result column="creator" jdbcType="BIGINT" property="creator" />
<result column="account_id" jdbcType="BIGINT" property="accountId" /> <result column="account_id" jdbcType="BIGINT" property="accountId" />
<result column="change_amount" jdbcType="DECIMAL" property="changeAmount" /> <result column="change_amount" jdbcType="DECIMAL" property="changeAmount" />
@@ -26,9 +25,6 @@
<result column="discount_money" jdbcType="DECIMAL" property="discountMoney" /> <result column="discount_money" jdbcType="DECIMAL" property="discountMoney" />
<result column="discount_last_money" jdbcType="DECIMAL" property="discountLastMoney" /> <result column="discount_last_money" jdbcType="DECIMAL" property="discountLastMoney" />
<result column="other_money" jdbcType="DECIMAL" property="otherMoney" /> <result column="other_money" jdbcType="DECIMAL" property="otherMoney" />
<result column="other_money_list" jdbcType="VARCHAR" property="otherMoneyList" />
<result column="other_money_item" jdbcType="VARCHAR" property="otherMoneyItem" />
<result column="account_day" jdbcType="INTEGER" property="accountDay" />
<result column="status" jdbcType="VARCHAR" property="status" /> <result column="status" jdbcType="VARCHAR" property="status" />
<result column="link_number" jdbcType="VARCHAR" property="linkNumber" /> <result column="link_number" jdbcType="VARCHAR" property="linkNumber" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> <result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
@@ -93,11 +89,10 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, type, sub_type, default_number, number, create_time, oper_time, organ_id, hands_person_id, id, type, sub_type, default_number, number, create_time, oper_time, organ_id, creator,
creator, account_id, change_amount, total_price, pay_type, bill_type, remark, file_name, account_id, change_amount, total_price, pay_type, bill_type, remark, file_name, sales_man,
sales_man, account_id_list, account_money_list, discount, discount_money, discount_last_money, account_id_list, account_money_list, discount, discount_money, discount_last_money,
other_money, other_money_list, other_money_item, account_day, status, link_number, other_money, status, link_number, tenant_id, delete_flag
tenant_id, delete_flag
</sql> </sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotHeadExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotHeadExample" resultMap="BaseResultMap">
select select
@@ -132,26 +127,24 @@
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.DepotHead"> <insert id="insert" parameterType="com.jsh.erp.datasource.entities.DepotHead">
insert into jsh_depot_head (id, type, sub_type, insert into jsh_depot_head (id, type, sub_type,
default_number, number, create_time, default_number, number, create_time,
oper_time, organ_id, hands_person_id, oper_time, organ_id, creator,
creator, account_id, change_amount, account_id, change_amount, total_price,
total_price, pay_type, bill_type, pay_type, bill_type, remark,
remark, file_name, sales_man, file_name, sales_man, account_id_list,
account_id_list, account_money_list, discount, account_money_list, discount, discount_money,
discount_money, discount_last_money, other_money, discount_last_money, other_money, status,
other_money_list, other_money_item, account_day, link_number, tenant_id, delete_flag
status, link_number, tenant_id, )
delete_flag)
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{subType,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{subType,jdbcType=VARCHAR},
#{defaultNumber,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{defaultNumber,jdbcType=VARCHAR}, #{number,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{operTime,jdbcType=TIMESTAMP}, #{organId,jdbcType=BIGINT}, #{handsPersonId,jdbcType=BIGINT}, #{operTime,jdbcType=TIMESTAMP}, #{organId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT},
#{creator,jdbcType=BIGINT}, #{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL}, #{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL}, #{totalPrice,jdbcType=DECIMAL},
#{totalPrice,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR}, #{payType,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{salesMan,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{salesMan,jdbcType=VARCHAR}, #{accountIdList,jdbcType=VARCHAR},
#{accountIdList,jdbcType=VARCHAR}, #{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL}, #{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL}, #{discountMoney,jdbcType=DECIMAL},
#{discountMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
#{otherMoneyList,jdbcType=VARCHAR}, #{otherMoneyItem,jdbcType=VARCHAR}, #{accountDay,jdbcType=INTEGER}, #{linkNumber,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}
#{status,jdbcType=VARCHAR}, #{linkNumber,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT}, )
#{deleteFlag,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotHead"> <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotHead">
insert into jsh_depot_head insert into jsh_depot_head
@@ -180,9 +173,6 @@
<if test="organId != null"> <if test="organId != null">
organ_id, organ_id,
</if> </if>
<if test="handsPersonId != null">
hands_person_id,
</if>
<if test="creator != null"> <if test="creator != null">
creator, creator,
</if> </if>
@@ -228,15 +218,6 @@
<if test="otherMoney != null"> <if test="otherMoney != null">
other_money, other_money,
</if> </if>
<if test="otherMoneyList != null">
other_money_list,
</if>
<if test="otherMoneyItem != null">
other_money_item,
</if>
<if test="accountDay != null">
account_day,
</if>
<if test="status != null"> <if test="status != null">
status, status,
</if> </if>
@@ -275,9 +256,6 @@
<if test="organId != null"> <if test="organId != null">
#{organId,jdbcType=BIGINT}, #{organId,jdbcType=BIGINT},
</if> </if>
<if test="handsPersonId != null">
#{handsPersonId,jdbcType=BIGINT},
</if>
<if test="creator != null"> <if test="creator != null">
#{creator,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT},
</if> </if>
@@ -323,15 +301,6 @@
<if test="otherMoney != null"> <if test="otherMoney != null">
#{otherMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL},
</if> </if>
<if test="otherMoneyList != null">
#{otherMoneyList,jdbcType=VARCHAR},
</if>
<if test="otherMoneyItem != null">
#{otherMoneyItem,jdbcType=VARCHAR},
</if>
<if test="accountDay != null">
#{accountDay,jdbcType=INTEGER},
</if>
<if test="status != null"> <if test="status != null">
#{status,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR},
</if> </if>
@@ -379,9 +348,6 @@
<if test="record.organId != null"> <if test="record.organId != null">
organ_id = #{record.organId,jdbcType=BIGINT}, organ_id = #{record.organId,jdbcType=BIGINT},
</if> </if>
<if test="record.handsPersonId != null">
hands_person_id = #{record.handsPersonId,jdbcType=BIGINT},
</if>
<if test="record.creator != null"> <if test="record.creator != null">
creator = #{record.creator,jdbcType=BIGINT}, creator = #{record.creator,jdbcType=BIGINT},
</if> </if>
@@ -427,15 +393,6 @@
<if test="record.otherMoney != null"> <if test="record.otherMoney != null">
other_money = #{record.otherMoney,jdbcType=DECIMAL}, other_money = #{record.otherMoney,jdbcType=DECIMAL},
</if> </if>
<if test="record.otherMoneyList != null">
other_money_list = #{record.otherMoneyList,jdbcType=VARCHAR},
</if>
<if test="record.otherMoneyItem != null">
other_money_item = #{record.otherMoneyItem,jdbcType=VARCHAR},
</if>
<if test="record.accountDay != null">
account_day = #{record.accountDay,jdbcType=INTEGER},
</if>
<if test="record.status != null"> <if test="record.status != null">
status = #{record.status,jdbcType=VARCHAR}, status = #{record.status,jdbcType=VARCHAR},
</if> </if>
@@ -463,7 +420,6 @@
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
oper_time = #{record.operTime,jdbcType=TIMESTAMP}, oper_time = #{record.operTime,jdbcType=TIMESTAMP},
organ_id = #{record.organId,jdbcType=BIGINT}, organ_id = #{record.organId,jdbcType=BIGINT},
hands_person_id = #{record.handsPersonId,jdbcType=BIGINT},
creator = #{record.creator,jdbcType=BIGINT}, creator = #{record.creator,jdbcType=BIGINT},
account_id = #{record.accountId,jdbcType=BIGINT}, account_id = #{record.accountId,jdbcType=BIGINT},
change_amount = #{record.changeAmount,jdbcType=DECIMAL}, change_amount = #{record.changeAmount,jdbcType=DECIMAL},
@@ -479,9 +435,6 @@
discount_money = #{record.discountMoney,jdbcType=DECIMAL}, discount_money = #{record.discountMoney,jdbcType=DECIMAL},
discount_last_money = #{record.discountLastMoney,jdbcType=DECIMAL}, discount_last_money = #{record.discountLastMoney,jdbcType=DECIMAL},
other_money = #{record.otherMoney,jdbcType=DECIMAL}, other_money = #{record.otherMoney,jdbcType=DECIMAL},
other_money_list = #{record.otherMoneyList,jdbcType=VARCHAR},
other_money_item = #{record.otherMoneyItem,jdbcType=VARCHAR},
account_day = #{record.accountDay,jdbcType=INTEGER},
status = #{record.status,jdbcType=VARCHAR}, status = #{record.status,jdbcType=VARCHAR},
link_number = #{record.linkNumber,jdbcType=VARCHAR}, link_number = #{record.linkNumber,jdbcType=VARCHAR},
tenant_id = #{record.tenantId,jdbcType=BIGINT}, tenant_id = #{record.tenantId,jdbcType=BIGINT},
@@ -514,9 +467,6 @@
<if test="organId != null"> <if test="organId != null">
organ_id = #{organId,jdbcType=BIGINT}, organ_id = #{organId,jdbcType=BIGINT},
</if> </if>
<if test="handsPersonId != null">
hands_person_id = #{handsPersonId,jdbcType=BIGINT},
</if>
<if test="creator != null"> <if test="creator != null">
creator = #{creator,jdbcType=BIGINT}, creator = #{creator,jdbcType=BIGINT},
</if> </if>
@@ -562,15 +512,6 @@
<if test="otherMoney != null"> <if test="otherMoney != null">
other_money = #{otherMoney,jdbcType=DECIMAL}, other_money = #{otherMoney,jdbcType=DECIMAL},
</if> </if>
<if test="otherMoneyList != null">
other_money_list = #{otherMoneyList,jdbcType=VARCHAR},
</if>
<if test="otherMoneyItem != null">
other_money_item = #{otherMoneyItem,jdbcType=VARCHAR},
</if>
<if test="accountDay != null">
account_day = #{accountDay,jdbcType=INTEGER},
</if>
<if test="status != null"> <if test="status != null">
status = #{status,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR},
</if> </if>
@@ -595,7 +536,6 @@
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
oper_time = #{operTime,jdbcType=TIMESTAMP}, oper_time = #{operTime,jdbcType=TIMESTAMP},
organ_id = #{organId,jdbcType=BIGINT}, organ_id = #{organId,jdbcType=BIGINT},
hands_person_id = #{handsPersonId,jdbcType=BIGINT},
creator = #{creator,jdbcType=BIGINT}, creator = #{creator,jdbcType=BIGINT},
account_id = #{accountId,jdbcType=BIGINT}, account_id = #{accountId,jdbcType=BIGINT},
change_amount = #{changeAmount,jdbcType=DECIMAL}, change_amount = #{changeAmount,jdbcType=DECIMAL},
@@ -611,9 +551,6 @@
discount_money = #{discountMoney,jdbcType=DECIMAL}, discount_money = #{discountMoney,jdbcType=DECIMAL},
discount_last_money = #{discountLastMoney,jdbcType=DECIMAL}, discount_last_money = #{discountLastMoney,jdbcType=DECIMAL},
other_money = #{otherMoney,jdbcType=DECIMAL}, other_money = #{otherMoney,jdbcType=DECIMAL},
other_money_list = #{otherMoneyList,jdbcType=VARCHAR},
other_money_item = #{otherMoneyItem,jdbcType=VARCHAR},
account_day = #{accountDay,jdbcType=INTEGER},
status = #{status,jdbcType=VARCHAR}, status = #{status,jdbcType=VARCHAR},
link_number = #{linkNumber,jdbcType=VARCHAR}, link_number = #{linkNumber,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT}, tenant_id = #{tenantId,jdbcType=BIGINT},

View File

@@ -13,18 +13,11 @@
<result column="tax_unit_price" jdbcType="DECIMAL" property="taxUnitPrice" /> <result column="tax_unit_price" jdbcType="DECIMAL" property="taxUnitPrice" />
<result column="all_price" jdbcType="DECIMAL" property="allPrice" /> <result column="all_price" jdbcType="DECIMAL" property="allPrice" />
<result column="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="img" jdbcType="VARCHAR" property="img" />
<result column="incidentals" jdbcType="DECIMAL" property="incidentals" />
<result column="depot_id" jdbcType="BIGINT" property="depotId" /> <result column="depot_id" jdbcType="BIGINT" property="depotId" />
<result column="another_depot_id" jdbcType="BIGINT" property="anotherDepotId" /> <result column="another_depot_id" jdbcType="BIGINT" property="anotherDepotId" />
<result column="tax_rate" jdbcType="DECIMAL" property="taxRate" /> <result column="tax_rate" jdbcType="DECIMAL" property="taxRate" />
<result column="tax_money" jdbcType="DECIMAL" property="taxMoney" /> <result column="tax_money" jdbcType="DECIMAL" property="taxMoney" />
<result column="tax_last_money" jdbcType="DECIMAL" property="taxLastMoney" /> <result column="tax_last_money" jdbcType="DECIMAL" property="taxLastMoney" />
<result column="other_field1" jdbcType="VARCHAR" property="otherField1" />
<result column="other_field2" jdbcType="VARCHAR" property="otherField2" />
<result column="other_field3" jdbcType="VARCHAR" property="otherField3" />
<result column="other_field4" jdbcType="VARCHAR" property="otherField4" />
<result column="other_field5" jdbcType="VARCHAR" property="otherField5" />
<result column="material_type" jdbcType="VARCHAR" property="materialType" /> <result column="material_type" jdbcType="VARCHAR" property="materialType" />
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> <result column="tenant_id" jdbcType="BIGINT" property="tenantId" />
<result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" /> <result column="delete_flag" jdbcType="VARCHAR" property="deleteFlag" />
@@ -89,9 +82,8 @@
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, header_id, material_id, material_extend_id, material_unit, oper_number, basic_number, id, header_id, material_id, material_extend_id, material_unit, oper_number, basic_number,
unit_price, tax_unit_price, all_price, remark, img, incidentals, depot_id, another_depot_id, unit_price, tax_unit_price, all_price, remark, depot_id, another_depot_id, tax_rate,
tax_rate, tax_money, tax_last_money, other_field1, other_field2, other_field3, other_field4, tax_money, tax_last_money, material_type, tenant_id, delete_flag
other_field5, material_type, tenant_id, delete_flag
</sql> </sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.DepotItemExample" resultMap="BaseResultMap">
select select
@@ -127,21 +119,17 @@
insert into jsh_depot_item (id, header_id, material_id, insert into jsh_depot_item (id, header_id, material_id,
material_extend_id, material_unit, oper_number, material_extend_id, material_unit, oper_number,
basic_number, unit_price, tax_unit_price, basic_number, unit_price, tax_unit_price,
all_price, remark, img, all_price, remark, depot_id,
incidentals, depot_id, another_depot_id, another_depot_id, tax_rate, tax_money,
tax_rate, tax_money, tax_last_money, tax_last_money, material_type, tenant_id,
other_field1, other_field2, other_field3, delete_flag)
other_field4, other_field5, material_type,
tenant_id, delete_flag)
values (#{id,jdbcType=BIGINT}, #{headerId,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, values (#{id,jdbcType=BIGINT}, #{headerId,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT},
#{materialExtendId,jdbcType=BIGINT}, #{materialUnit,jdbcType=VARCHAR}, #{operNumber,jdbcType=DECIMAL}, #{materialExtendId,jdbcType=BIGINT}, #{materialUnit,jdbcType=VARCHAR}, #{operNumber,jdbcType=DECIMAL},
#{basicNumber,jdbcType=DECIMAL}, #{unitPrice,jdbcType=DECIMAL}, #{taxUnitPrice,jdbcType=DECIMAL}, #{basicNumber,jdbcType=DECIMAL}, #{unitPrice,jdbcType=DECIMAL}, #{taxUnitPrice,jdbcType=DECIMAL},
#{allPrice,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, #{allPrice,jdbcType=DECIMAL}, #{remark,jdbcType=VARCHAR}, #{depotId,jdbcType=BIGINT},
#{incidentals,jdbcType=DECIMAL}, #{depotId,jdbcType=BIGINT}, #{anotherDepotId,jdbcType=BIGINT}, #{anotherDepotId,jdbcType=BIGINT}, #{taxRate,jdbcType=DECIMAL}, #{taxMoney,jdbcType=DECIMAL},
#{taxRate,jdbcType=DECIMAL}, #{taxMoney,jdbcType=DECIMAL}, #{taxLastMoney,jdbcType=DECIMAL}, #{taxLastMoney,jdbcType=DECIMAL}, #{materialType,jdbcType=VARCHAR}, #{tenantId,jdbcType=BIGINT},
#{otherField1,jdbcType=VARCHAR}, #{otherField2,jdbcType=VARCHAR}, #{otherField3,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=VARCHAR})
#{otherField4,jdbcType=VARCHAR}, #{otherField5,jdbcType=VARCHAR}, #{materialType,jdbcType=VARCHAR},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotItem"> <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.DepotItem">
insert into jsh_depot_item insert into jsh_depot_item
@@ -179,12 +167,6 @@
<if test="remark != null"> <if test="remark != null">
remark, remark,
</if> </if>
<if test="img != null">
img,
</if>
<if test="incidentals != null">
incidentals,
</if>
<if test="depotId != null"> <if test="depotId != null">
depot_id, depot_id,
</if> </if>
@@ -200,21 +182,6 @@
<if test="taxLastMoney != null"> <if test="taxLastMoney != null">
tax_last_money, tax_last_money,
</if> </if>
<if test="otherField1 != null">
other_field1,
</if>
<if test="otherField2 != null">
other_field2,
</if>
<if test="otherField3 != null">
other_field3,
</if>
<if test="otherField4 != null">
other_field4,
</if>
<if test="otherField5 != null">
other_field5,
</if>
<if test="materialType != null"> <if test="materialType != null">
material_type, material_type,
</if> </if>
@@ -259,12 +226,6 @@
<if test="remark != null"> <if test="remark != null">
#{remark,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="img != null">
#{img,jdbcType=VARCHAR},
</if>
<if test="incidentals != null">
#{incidentals,jdbcType=DECIMAL},
</if>
<if test="depotId != null"> <if test="depotId != null">
#{depotId,jdbcType=BIGINT}, #{depotId,jdbcType=BIGINT},
</if> </if>
@@ -280,21 +241,6 @@
<if test="taxLastMoney != null"> <if test="taxLastMoney != null">
#{taxLastMoney,jdbcType=DECIMAL}, #{taxLastMoney,jdbcType=DECIMAL},
</if> </if>
<if test="otherField1 != null">
#{otherField1,jdbcType=VARCHAR},
</if>
<if test="otherField2 != null">
#{otherField2,jdbcType=VARCHAR},
</if>
<if test="otherField3 != null">
#{otherField3,jdbcType=VARCHAR},
</if>
<if test="otherField4 != null">
#{otherField4,jdbcType=VARCHAR},
</if>
<if test="otherField5 != null">
#{otherField5,jdbcType=VARCHAR},
</if>
<if test="materialType != null"> <if test="materialType != null">
#{materialType,jdbcType=VARCHAR}, #{materialType,jdbcType=VARCHAR},
</if> </if>
@@ -348,12 +294,6 @@
<if test="record.remark != null"> <if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
</if> </if>
<if test="record.img != null">
img = #{record.img,jdbcType=VARCHAR},
</if>
<if test="record.incidentals != null">
incidentals = #{record.incidentals,jdbcType=DECIMAL},
</if>
<if test="record.depotId != null"> <if test="record.depotId != null">
depot_id = #{record.depotId,jdbcType=BIGINT}, depot_id = #{record.depotId,jdbcType=BIGINT},
</if> </if>
@@ -369,21 +309,6 @@
<if test="record.taxLastMoney != null"> <if test="record.taxLastMoney != null">
tax_last_money = #{record.taxLastMoney,jdbcType=DECIMAL}, tax_last_money = #{record.taxLastMoney,jdbcType=DECIMAL},
</if> </if>
<if test="record.otherField1 != null">
other_field1 = #{record.otherField1,jdbcType=VARCHAR},
</if>
<if test="record.otherField2 != null">
other_field2 = #{record.otherField2,jdbcType=VARCHAR},
</if>
<if test="record.otherField3 != null">
other_field3 = #{record.otherField3,jdbcType=VARCHAR},
</if>
<if test="record.otherField4 != null">
other_field4 = #{record.otherField4,jdbcType=VARCHAR},
</if>
<if test="record.otherField5 != null">
other_field5 = #{record.otherField5,jdbcType=VARCHAR},
</if>
<if test="record.materialType != null"> <if test="record.materialType != null">
material_type = #{record.materialType,jdbcType=VARCHAR}, material_type = #{record.materialType,jdbcType=VARCHAR},
</if> </if>
@@ -411,18 +336,11 @@
tax_unit_price = #{record.taxUnitPrice,jdbcType=DECIMAL}, tax_unit_price = #{record.taxUnitPrice,jdbcType=DECIMAL},
all_price = #{record.allPrice,jdbcType=DECIMAL}, all_price = #{record.allPrice,jdbcType=DECIMAL},
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
img = #{record.img,jdbcType=VARCHAR},
incidentals = #{record.incidentals,jdbcType=DECIMAL},
depot_id = #{record.depotId,jdbcType=BIGINT}, depot_id = #{record.depotId,jdbcType=BIGINT},
another_depot_id = #{record.anotherDepotId,jdbcType=BIGINT}, another_depot_id = #{record.anotherDepotId,jdbcType=BIGINT},
tax_rate = #{record.taxRate,jdbcType=DECIMAL}, tax_rate = #{record.taxRate,jdbcType=DECIMAL},
tax_money = #{record.taxMoney,jdbcType=DECIMAL}, tax_money = #{record.taxMoney,jdbcType=DECIMAL},
tax_last_money = #{record.taxLastMoney,jdbcType=DECIMAL}, tax_last_money = #{record.taxLastMoney,jdbcType=DECIMAL},
other_field1 = #{record.otherField1,jdbcType=VARCHAR},
other_field2 = #{record.otherField2,jdbcType=VARCHAR},
other_field3 = #{record.otherField3,jdbcType=VARCHAR},
other_field4 = #{record.otherField4,jdbcType=VARCHAR},
other_field5 = #{record.otherField5,jdbcType=VARCHAR},
material_type = #{record.materialType,jdbcType=VARCHAR}, material_type = #{record.materialType,jdbcType=VARCHAR},
tenant_id = #{record.tenantId,jdbcType=BIGINT}, tenant_id = #{record.tenantId,jdbcType=BIGINT},
delete_flag = #{record.deleteFlag,jdbcType=VARCHAR} delete_flag = #{record.deleteFlag,jdbcType=VARCHAR}
@@ -463,12 +381,6 @@
<if test="remark != null"> <if test="remark != null">
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="img != null">
img = #{img,jdbcType=VARCHAR},
</if>
<if test="incidentals != null">
incidentals = #{incidentals,jdbcType=DECIMAL},
</if>
<if test="depotId != null"> <if test="depotId != null">
depot_id = #{depotId,jdbcType=BIGINT}, depot_id = #{depotId,jdbcType=BIGINT},
</if> </if>
@@ -484,21 +396,6 @@
<if test="taxLastMoney != null"> <if test="taxLastMoney != null">
tax_last_money = #{taxLastMoney,jdbcType=DECIMAL}, tax_last_money = #{taxLastMoney,jdbcType=DECIMAL},
</if> </if>
<if test="otherField1 != null">
other_field1 = #{otherField1,jdbcType=VARCHAR},
</if>
<if test="otherField2 != null">
other_field2 = #{otherField2,jdbcType=VARCHAR},
</if>
<if test="otherField3 != null">
other_field3 = #{otherField3,jdbcType=VARCHAR},
</if>
<if test="otherField4 != null">
other_field4 = #{otherField4,jdbcType=VARCHAR},
</if>
<if test="otherField5 != null">
other_field5 = #{otherField5,jdbcType=VARCHAR},
</if>
<if test="materialType != null"> <if test="materialType != null">
material_type = #{materialType,jdbcType=VARCHAR}, material_type = #{materialType,jdbcType=VARCHAR},
</if> </if>
@@ -523,18 +420,11 @@
tax_unit_price = #{taxUnitPrice,jdbcType=DECIMAL}, tax_unit_price = #{taxUnitPrice,jdbcType=DECIMAL},
all_price = #{allPrice,jdbcType=DECIMAL}, all_price = #{allPrice,jdbcType=DECIMAL},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
img = #{img,jdbcType=VARCHAR},
incidentals = #{incidentals,jdbcType=DECIMAL},
depot_id = #{depotId,jdbcType=BIGINT}, depot_id = #{depotId,jdbcType=BIGINT},
another_depot_id = #{anotherDepotId,jdbcType=BIGINT}, another_depot_id = #{anotherDepotId,jdbcType=BIGINT},
tax_rate = #{taxRate,jdbcType=DECIMAL}, tax_rate = #{taxRate,jdbcType=DECIMAL},
tax_money = #{taxMoney,jdbcType=DECIMAL}, tax_money = #{taxMoney,jdbcType=DECIMAL},
tax_last_money = #{taxLastMoney,jdbcType=DECIMAL}, tax_last_money = #{taxLastMoney,jdbcType=DECIMAL},
other_field1 = #{otherField1,jdbcType=VARCHAR},
other_field2 = #{otherField2,jdbcType=VARCHAR},
other_field3 = #{otherField3,jdbcType=VARCHAR},
other_field4 = #{otherField4,jdbcType=VARCHAR},
other_field5 = #{otherField5,jdbcType=VARCHAR},
material_type = #{materialType,jdbcType=VARCHAR}, material_type = #{materialType,jdbcType=VARCHAR},
tenant_id = #{tenantId,jdbcType=BIGINT}, tenant_id = #{tenantId,jdbcType=BIGINT},
delete_flag = #{deleteFlag,jdbcType=VARCHAR} delete_flag = #{deleteFlag,jdbcType=VARCHAR}

View File

@@ -6,6 +6,7 @@
<result column="material_id" jdbcType="BIGINT" property="materialId" /> <result column="material_id" jdbcType="BIGINT" property="materialId" />
<result column="bar_code" jdbcType="VARCHAR" property="barCode" /> <result column="bar_code" jdbcType="VARCHAR" property="barCode" />
<result column="commodity_unit" jdbcType="VARCHAR" property="commodityUnit" /> <result column="commodity_unit" jdbcType="VARCHAR" property="commodityUnit" />
<result column="sku" jdbcType="VARCHAR" property="sku" />
<result column="purchase_decimal" jdbcType="DECIMAL" property="purchaseDecimal" /> <result column="purchase_decimal" jdbcType="DECIMAL" property="purchaseDecimal" />
<result column="commodity_decimal" jdbcType="DECIMAL" property="commodityDecimal" /> <result column="commodity_decimal" jdbcType="DECIMAL" property="commodityDecimal" />
<result column="wholesale_decimal" jdbcType="DECIMAL" property="wholesaleDecimal" /> <result column="wholesale_decimal" jdbcType="DECIMAL" property="wholesaleDecimal" />
@@ -77,9 +78,9 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, material_id, bar_code, commodity_unit, purchase_decimal, commodity_decimal, wholesale_decimal, id, material_id, bar_code, commodity_unit, sku, purchase_decimal, commodity_decimal,
low_decimal, default_flag, create_time, create_serial, update_serial, update_time, wholesale_decimal, low_decimal, default_flag, create_time, create_serial, update_serial,
tenant_id, delete_Flag update_time, tenant_id, delete_Flag
</sql> </sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.MaterialExtendExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.MaterialExtendExample" resultMap="BaseResultMap">
select select
@@ -113,17 +114,17 @@
</delete> </delete>
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.MaterialExtend"> <insert id="insert" parameterType="com.jsh.erp.datasource.entities.MaterialExtend">
insert into jsh_material_extend (id, material_id, bar_code, insert into jsh_material_extend (id, material_id, bar_code,
commodity_unit, purchase_decimal, commodity_decimal, commodity_unit, sku, purchase_decimal,
wholesale_decimal, low_decimal, default_flag, commodity_decimal, wholesale_decimal, low_decimal,
create_time, create_serial, update_serial, default_flag, create_time, create_serial,
update_time, tenant_id, delete_Flag update_serial, update_time, tenant_id,
) delete_Flag)
values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{barCode,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{materialId,jdbcType=BIGINT}, #{barCode,jdbcType=VARCHAR},
#{commodityUnit,jdbcType=VARCHAR}, #{purchaseDecimal,jdbcType=DECIMAL}, #{commodityDecimal,jdbcType=DECIMAL}, #{commodityUnit,jdbcType=VARCHAR}, #{sku,jdbcType=VARCHAR}, #{purchaseDecimal,jdbcType=DECIMAL},
#{wholesaleDecimal,jdbcType=DECIMAL}, #{lowDecimal,jdbcType=DECIMAL}, #{defaultFlag,jdbcType=VARCHAR}, #{commodityDecimal,jdbcType=DECIMAL}, #{wholesaleDecimal,jdbcType=DECIMAL}, #{lowDecimal,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP}, #{createSerial,jdbcType=VARCHAR}, #{updateSerial,jdbcType=VARCHAR}, #{defaultFlag,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createSerial,jdbcType=VARCHAR},
#{updateTime,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR} #{updateSerial,jdbcType=VARCHAR}, #{updateTime,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT},
) #{deleteFlag,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.MaterialExtend"> <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.MaterialExtend">
insert into jsh_material_extend insert into jsh_material_extend
@@ -140,6 +141,9 @@
<if test="commodityUnit != null"> <if test="commodityUnit != null">
commodity_unit, commodity_unit,
</if> </if>
<if test="sku != null">
sku,
</if>
<if test="purchaseDecimal != null"> <if test="purchaseDecimal != null">
purchase_decimal, purchase_decimal,
</if> </if>
@@ -187,6 +191,9 @@
<if test="commodityUnit != null"> <if test="commodityUnit != null">
#{commodityUnit,jdbcType=VARCHAR}, #{commodityUnit,jdbcType=VARCHAR},
</if> </if>
<if test="sku != null">
#{sku,jdbcType=VARCHAR},
</if>
<if test="purchaseDecimal != null"> <if test="purchaseDecimal != null">
#{purchaseDecimal,jdbcType=DECIMAL}, #{purchaseDecimal,jdbcType=DECIMAL},
</if> </if>
@@ -243,6 +250,9 @@
<if test="record.commodityUnit != null"> <if test="record.commodityUnit != null">
commodity_unit = #{record.commodityUnit,jdbcType=VARCHAR}, commodity_unit = #{record.commodityUnit,jdbcType=VARCHAR},
</if> </if>
<if test="record.sku != null">
sku = #{record.sku,jdbcType=VARCHAR},
</if>
<if test="record.purchaseDecimal != null"> <if test="record.purchaseDecimal != null">
purchase_decimal = #{record.purchaseDecimal,jdbcType=DECIMAL}, purchase_decimal = #{record.purchaseDecimal,jdbcType=DECIMAL},
</if> </if>
@@ -287,6 +297,7 @@
material_id = #{record.materialId,jdbcType=BIGINT}, material_id = #{record.materialId,jdbcType=BIGINT},
bar_code = #{record.barCode,jdbcType=VARCHAR}, bar_code = #{record.barCode,jdbcType=VARCHAR},
commodity_unit = #{record.commodityUnit,jdbcType=VARCHAR}, commodity_unit = #{record.commodityUnit,jdbcType=VARCHAR},
sku = #{record.sku,jdbcType=VARCHAR},
purchase_decimal = #{record.purchaseDecimal,jdbcType=DECIMAL}, purchase_decimal = #{record.purchaseDecimal,jdbcType=DECIMAL},
commodity_decimal = #{record.commodityDecimal,jdbcType=DECIMAL}, commodity_decimal = #{record.commodityDecimal,jdbcType=DECIMAL},
wholesale_decimal = #{record.wholesaleDecimal,jdbcType=DECIMAL}, wholesale_decimal = #{record.wholesaleDecimal,jdbcType=DECIMAL},
@@ -314,6 +325,9 @@
<if test="commodityUnit != null"> <if test="commodityUnit != null">
commodity_unit = #{commodityUnit,jdbcType=VARCHAR}, commodity_unit = #{commodityUnit,jdbcType=VARCHAR},
</if> </if>
<if test="sku != null">
sku = #{sku,jdbcType=VARCHAR},
</if>
<if test="purchaseDecimal != null"> <if test="purchaseDecimal != null">
purchase_decimal = #{purchaseDecimal,jdbcType=DECIMAL}, purchase_decimal = #{purchaseDecimal,jdbcType=DECIMAL},
</if> </if>
@@ -355,6 +369,7 @@
set material_id = #{materialId,jdbcType=BIGINT}, set material_id = #{materialId,jdbcType=BIGINT},
bar_code = #{barCode,jdbcType=VARCHAR}, bar_code = #{barCode,jdbcType=VARCHAR},
commodity_unit = #{commodityUnit,jdbcType=VARCHAR}, commodity_unit = #{commodityUnit,jdbcType=VARCHAR},
sku = #{sku,jdbcType=VARCHAR},
purchase_decimal = #{purchaseDecimal,jdbcType=DECIMAL}, purchase_decimal = #{purchaseDecimal,jdbcType=DECIMAL},
commodity_decimal = #{commodityDecimal,jdbcType=DECIMAL}, commodity_decimal = #{commodityDecimal,jdbcType=DECIMAL},
wholesale_decimal = #{wholesaleDecimal,jdbcType=DECIMAL}, wholesale_decimal = #{wholesaleDecimal,jdbcType=DECIMAL},

View File

@@ -4,7 +4,6 @@
<resultMap id="BaseResultMap" type="com.jsh.erp.datasource.entities.Organization"> <resultMap id="BaseResultMap" type="com.jsh.erp.datasource.entities.Organization">
<id column="id" jdbcType="BIGINT" property="id" /> <id column="id" jdbcType="BIGINT" property="id" />
<result column="org_no" jdbcType="VARCHAR" property="orgNo" /> <result column="org_no" jdbcType="VARCHAR" property="orgNo" />
<result column="org_full_name" jdbcType="VARCHAR" property="orgFullName" />
<result column="org_abr" jdbcType="VARCHAR" property="orgAbr" /> <result column="org_abr" jdbcType="VARCHAR" property="orgAbr" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> <result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="sort" jdbcType="VARCHAR" property="sort" /> <result column="sort" jdbcType="VARCHAR" property="sort" />
@@ -73,8 +72,8 @@
</where> </where>
</sql> </sql>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, org_no, org_full_name, org_abr, parent_id, sort, remark, create_time, update_time, id, org_no, org_abr, parent_id, sort, remark, create_time, update_time, tenant_id,
tenant_id, delete_flag delete_flag
</sql> </sql>
<select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.OrganizationExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="com.jsh.erp.datasource.entities.OrganizationExample" resultMap="BaseResultMap">
select select
@@ -107,14 +106,14 @@
</if> </if>
</delete> </delete>
<insert id="insert" parameterType="com.jsh.erp.datasource.entities.Organization"> <insert id="insert" parameterType="com.jsh.erp.datasource.entities.Organization">
insert into jsh_organization (id, org_no, org_full_name, insert into jsh_organization (id, org_no, org_abr,
org_abr, parent_id, sort, parent_id, sort, remark,
remark, create_time, update_time, create_time, update_time, tenant_id,
tenant_id, delete_flag) delete_flag)
values (#{id,jdbcType=BIGINT}, #{orgNo,jdbcType=VARCHAR}, #{orgFullName,jdbcType=VARCHAR}, values (#{id,jdbcType=BIGINT}, #{orgNo,jdbcType=VARCHAR}, #{orgAbr,jdbcType=VARCHAR},
#{orgAbr,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT}, #{sort,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT}, #{sort,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{tenantId,jdbcType=BIGINT},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,jdbcType=VARCHAR}) #{deleteFlag,jdbcType=VARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Organization"> <insert id="insertSelective" parameterType="com.jsh.erp.datasource.entities.Organization">
insert into jsh_organization insert into jsh_organization
@@ -125,9 +124,6 @@
<if test="orgNo != null"> <if test="orgNo != null">
org_no, org_no,
</if> </if>
<if test="orgFullName != null">
org_full_name,
</if>
<if test="orgAbr != null"> <if test="orgAbr != null">
org_abr, org_abr,
</if> </if>
@@ -160,9 +156,6 @@
<if test="orgNo != null"> <if test="orgNo != null">
#{orgNo,jdbcType=VARCHAR}, #{orgNo,jdbcType=VARCHAR},
</if> </if>
<if test="orgFullName != null">
#{orgFullName,jdbcType=VARCHAR},
</if>
<if test="orgAbr != null"> <if test="orgAbr != null">
#{orgAbr,jdbcType=VARCHAR}, #{orgAbr,jdbcType=VARCHAR},
</if> </if>
@@ -204,9 +197,6 @@
<if test="record.orgNo != null"> <if test="record.orgNo != null">
org_no = #{record.orgNo,jdbcType=VARCHAR}, org_no = #{record.orgNo,jdbcType=VARCHAR},
</if> </if>
<if test="record.orgFullName != null">
org_full_name = #{record.orgFullName,jdbcType=VARCHAR},
</if>
<if test="record.orgAbr != null"> <if test="record.orgAbr != null">
org_abr = #{record.orgAbr,jdbcType=VARCHAR}, org_abr = #{record.orgAbr,jdbcType=VARCHAR},
</if> </if>
@@ -240,7 +230,6 @@
update jsh_organization update jsh_organization
set id = #{record.id,jdbcType=BIGINT}, set id = #{record.id,jdbcType=BIGINT},
org_no = #{record.orgNo,jdbcType=VARCHAR}, org_no = #{record.orgNo,jdbcType=VARCHAR},
org_full_name = #{record.orgFullName,jdbcType=VARCHAR},
org_abr = #{record.orgAbr,jdbcType=VARCHAR}, org_abr = #{record.orgAbr,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=BIGINT}, parent_id = #{record.parentId,jdbcType=BIGINT},
sort = #{record.sort,jdbcType=VARCHAR}, sort = #{record.sort,jdbcType=VARCHAR},
@@ -259,9 +248,6 @@
<if test="orgNo != null"> <if test="orgNo != null">
org_no = #{orgNo,jdbcType=VARCHAR}, org_no = #{orgNo,jdbcType=VARCHAR},
</if> </if>
<if test="orgFullName != null">
org_full_name = #{orgFullName,jdbcType=VARCHAR},
</if>
<if test="orgAbr != null"> <if test="orgAbr != null">
org_abr = #{orgAbr,jdbcType=VARCHAR}, org_abr = #{orgAbr,jdbcType=VARCHAR},
</if> </if>
@@ -292,7 +278,6 @@
<update id="updateByPrimaryKey" parameterType="com.jsh.erp.datasource.entities.Organization"> <update id="updateByPrimaryKey" parameterType="com.jsh.erp.datasource.entities.Organization">
update jsh_organization update jsh_organization
set org_no = #{orgNo,jdbcType=VARCHAR}, set org_no = #{orgNo,jdbcType=VARCHAR},
org_full_name = #{orgFullName,jdbcType=VARCHAR},
org_abr = #{orgAbr,jdbcType=VARCHAR}, org_abr = #{orgAbr,jdbcType=VARCHAR},
parent_id = #{parentId,jdbcType=BIGINT}, parent_id = #{parentId,jdbcType=BIGINT},
sort = #{sort,jdbcType=VARCHAR}, sort = #{sort,jdbcType=VARCHAR},

View File

@@ -52,13 +52,11 @@
<insert id="addOrganization" parameterType="com.jsh.erp.datasource.entities.Organization" <insert id="addOrganization" parameterType="com.jsh.erp.datasource.entities.Organization"
useGeneratedKeys="true" keyProperty="id" keyColumn="id"> useGeneratedKeys="true" keyProperty="id" keyColumn="id">
insert into jsh_organization insert into jsh_organization
(org_no, org_full_name, (org_no, org_abr, delete_flag,
org_abr, delete_flag,
parent_id, sort, remark, parent_id, sort, remark,
create_time, update_time) create_time, update_time)
values values
(#{orgNo,jdbcType=VARCHAR}, #{orgFullName,jdbcType=VARCHAR}, (#{orgNo,jdbcType=VARCHAR}, #{orgAbr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=CHAR},
#{orgAbr,jdbcType=VARCHAR}, #{deleteFlag,jdbcType=CHAR},
#{parentId,jdbcType=BIGINT}, #{sort,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT}, #{sort,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert> </insert>
@@ -74,8 +72,7 @@
<update id="editOrganization"> <update id="editOrganization">
update jsh_organization update jsh_organization
set update_time=#{updateTime}, set update_time=#{updateTime},
org_no = #{orgNo},org_full_name = #{orgFullName}, org_no = #{orgNo},org_abr = #{orgAbr},
org_abr = #{orgAbr},
delete_flag = #{deleteFlag},parent_id = #{parentId}, delete_flag = #{deleteFlag},parent_id = #{parentId},
sort = #{sort},remark = #{remark} sort = #{sort},remark = #{remark}
where id =#{id} where id =#{id}