给零售增加找零字段
This commit is contained in:
@@ -10,7 +10,7 @@ Target Server Type : MYSQL
|
|||||||
Target Server Version : 50704
|
Target Server Version : 50704
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 2021-12-09 00:41:43
|
Date: 2021-12-12 23:29:17
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SET FOREIGN_KEY_CHECKS=0;
|
SET FOREIGN_KEY_CHECKS=0;
|
||||||
@@ -150,6 +150,7 @@ CREATE TABLE `jsh_depot_head` (
|
|||||||
`creator` bigint(20) DEFAULT NULL COMMENT '操作员',
|
`creator` bigint(20) DEFAULT NULL COMMENT '操作员',
|
||||||
`account_id` bigint(20) DEFAULT NULL COMMENT '账户id',
|
`account_id` bigint(20) DEFAULT NULL COMMENT '账户id',
|
||||||
`change_amount` decimal(24,6) DEFAULT NULL COMMENT '变动金额(收款/付款)',
|
`change_amount` decimal(24,6) DEFAULT NULL COMMENT '变动金额(收款/付款)',
|
||||||
|
`back_amount` decimal(24,6) DEFAULT NULL COMMENT '找零金额',
|
||||||
`total_price` decimal(24,6) DEFAULT NULL COMMENT '合计金额',
|
`total_price` decimal(24,6) DEFAULT NULL COMMENT '合计金额',
|
||||||
`pay_type` varchar(50) DEFAULT NULL COMMENT '付款类型(现金、记账等)',
|
`pay_type` varchar(50) DEFAULT NULL COMMENT '付款类型(现金、记账等)',
|
||||||
`bill_type` varchar(50) DEFAULT NULL COMMENT '单据类型',
|
`bill_type` varchar(50) DEFAULT NULL COMMENT '单据类型',
|
||||||
@@ -174,22 +175,22 @@ CREATE TABLE `jsh_depot_head` (
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of jsh_depot_head
|
-- Records of jsh_depot_head
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('258', '其它', '采购订单', 'CGDD00000000630', 'CGDD00000000630', '2021-06-02 00:21:54', '2021-06-02 00:21:44', '57', '63', null, null, '-110.000000', '现付', null, null, null, null, null, null, null, null, null, null, '2', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('258', '其它', '采购订单', 'CGDD00000000630', 'CGDD00000000630', '2021-06-02 00:21:54', '2021-06-02 00:21:44', '57', '63', null, null, null, '-110.000000', '现付', null, null, null, null, null, null, null, null, null, null, '2', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('259', '入库', '采购', 'CGRK00000000631', 'CGRK00000000631', '2021-06-02 00:22:23', '2021-06-02 00:22:05', '57', '63', '17', '-110.000000', '-110.000000', '现付', null, null, null, null, '', '', '0.000000', '0.000000', '110.000000', '0.000000', '0', 'CGDD00000000630', '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('259', '入库', '采购', 'CGRK00000000631', 'CGRK00000000631', '2021-06-02 00:22:23', '2021-06-02 00:22:05', '57', '63', '17', '-110.000000', null, '-110.000000', '现付', null, null, null, null, '', '', '0.000000', '0.000000', '110.000000', '0.000000', '0', 'CGDD00000000630', '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('260', '出库', '采购退货', 'CGTH00000000632', 'CGTH00000000632', '2021-06-02 00:22:35', '2021-06-02 00:22:26', '57', '63', '17', '22.000000', '22.000000', '现付', null, null, null, null, null, null, '0.000000', '0.000000', '22.000000', '0.000000', '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('260', '出库', '采购退货', 'CGTH00000000632', 'CGTH00000000632', '2021-06-02 00:22:35', '2021-06-02 00:22:26', '57', '63', '17', '22.000000', null, '22.000000', '现付', null, null, null, null, null, null, '0.000000', '0.000000', '22.000000', '0.000000', '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('261', '其它', '销售订单', 'XSDD00000000633', 'XSDD00000000633', '2021-06-02 00:22:48', '2021-06-02 00:22:39', '58', '63', null, null, '44.000000', '现付', null, null, null, '', null, null, null, null, null, null, '2', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('261', '其它', '销售订单', 'XSDD00000000633', 'XSDD00000000633', '2021-06-02 00:22:48', '2021-06-02 00:22:39', '58', '63', null, null, null, '44.000000', '现付', null, null, null, '', null, null, null, null, null, null, '2', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('262', '出库', '销售', 'XSCK00000000634', 'XSCK00000000634', '2021-06-02 00:23:03', '2021-06-02 00:22:54', '58', '63', '17', '44.000000', '44.000000', '现付', null, null, null, '', '', '', '0.000000', '0.000000', '44.000000', '0.000000', '0', 'XSDD00000000633', '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('262', '出库', '销售', 'XSCK00000000634', 'XSCK00000000634', '2021-06-02 00:23:03', '2021-06-02 00:22:54', '58', '63', '17', '44.000000', null, '44.000000', '现付', null, null, null, '', '', '', '0.000000', '0.000000', '44.000000', '0.000000', '0', 'XSDD00000000633', '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('263', '入库', '销售退货', 'XSTH00000000635', 'XSTH00000000635', '2021-06-02 00:23:12', '2021-06-02 00:23:05', '71', '63', '17', '-22.000000', '-22.000000', '现付', null, null, null, '', '', '', '0.000000', '0.000000', '22.000000', '0.000000', '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('263', '入库', '销售退货', 'XSTH00000000635', 'XSTH00000000635', '2021-06-02 00:23:12', '2021-06-02 00:23:05', '71', '63', '17', '-22.000000', null, '-22.000000', '现付', null, null, null, '', '', '', '0.000000', '0.000000', '22.000000', '0.000000', '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('264', '出库', '零售', 'LSCK00000000636', 'LSCK00000000636', '2021-06-02 00:23:21', '2021-06-02 00:23:14', '60', '63', '17', '22.000000', '22.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('264', '出库', '零售', 'LSCK00000000636', 'LSCK00000000636', '2021-06-02 00:23:21', '2021-06-02 00:23:14', '60', '63', '17', '22.000000', null, '22.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('265', '入库', '零售退货', 'LSTH00000000637', 'LSTH00000000637', '2021-06-02 00:23:29', '2021-06-02 00:23:23', '60', '63', '17', '-22.000000', '-22.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('265', '入库', '零售退货', 'LSTH00000000637', 'LSTH00000000637', '2021-06-02 00:23:29', '2021-06-02 00:23:23', '60', '63', '17', '-22.000000', null, '-22.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('266', '入库', '其它', 'QTRK00000000638', 'QTRK00000000638', '2021-06-02 00:23:48', '2021-06-02 00:23:36', '57', '63', null, null, '55.000000', '现付', null, null, null, null, null, null, null, null, null, null, '1', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('266', '入库', '其它', 'QTRK00000000638', 'QTRK00000000638', '2021-06-02 00:23:48', '2021-06-02 00:23:36', '57', '63', null, null, null, '55.000000', '现付', null, null, null, null, null, null, null, null, null, null, '1', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('267', '出库', '其它', 'QTCK00000000639', 'QTCK00000000639', '2021-06-02 00:23:59', '2021-06-02 00:23:50', '58', '63', null, null, '30.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('267', '出库', '其它', 'QTCK00000000639', 'QTCK00000000639', '2021-06-02 00:23:59', '2021-06-02 00:23:50', '58', '63', null, null, null, '30.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('268', '出库', '调拨', 'DBCK00000000640', 'DBCK00000000640', '2021-06-02 00:24:09', '2021-06-02 00:24:00', null, '63', null, null, '11.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('268', '出库', '调拨', 'DBCK00000000640', 'DBCK00000000640', '2021-06-02 00:24:09', '2021-06-02 00:24:00', null, '63', null, null, null, '11.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('269', '其它', '组装单', 'ZZD00000000641', 'ZZD00000000641', '2021-06-02 00:24:29', '2021-06-02 00:24:11', null, '63', null, null, '0.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('269', '其它', '组装单', 'ZZD00000000641', 'ZZD00000000641', '2021-06-02 00:24:29', '2021-06-02 00:24:11', null, '63', null, null, null, '0.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('270', '其它', '拆卸单', 'CXD00000000642', 'CXD00000000642', '2021-06-02 00:24:45', '2021-06-02 00:24:32', null, '63', null, null, '0.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('270', '其它', '拆卸单', 'CXD00000000642', 'CXD00000000642', '2021-06-02 00:24:45', '2021-06-02 00:24:32', null, '63', null, null, null, '0.000000', '现付', null, null, null, null, null, null, null, null, null, null, '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('271', '入库', '采购', 'CGRK00000000651', 'CGRK00000000651', '2021-07-06 23:45:20', '2021-07-06 23:44:45', '57', '63', '17', '-20.000000', '-80.000000', '现付', null, null, null, null, '', '', '0.000000', '0.000000', '80.000000', '0.000000', '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('271', '入库', '采购', 'CGRK00000000651', 'CGRK00000000651', '2021-07-06 23:45:20', '2021-07-06 23:44:45', '57', '63', '17', '-20.000000', null, '-80.000000', '现付', null, null, null, null, '', '', '0.000000', '0.000000', '80.000000', '0.000000', '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('272', '出库', '销售', 'XSCK00000000652', 'XSCK00000000652', '2021-07-06 23:46:07', '2021-07-06 23:45:24', '58', '63', '17', '8.000000', '28.000000', '现付', null, null, null, '', '', '', '0.000000', '0.000000', '28.000000', '0.000000', '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('272', '出库', '销售', 'XSCK00000000652', 'XSCK00000000652', '2021-07-06 23:46:07', '2021-07-06 23:45:24', '58', '63', '17', '8.000000', null, '28.000000', '现付', null, null, null, '', '', '', '0.000000', '0.000000', '28.000000', '0.000000', '0', null, '63', '0');
|
||||||
INSERT INTO `jsh_depot_head` VALUES ('273', '入库', '采购', 'CGRK00000000658', 'CGRK00000000658', '2021-07-28 00:58:12', '2021-07-28 00:58:02', '57', '63', '17', '-60.000000', '-60.000000', '现付', null, null, null, null, '', '', '0.000000', '0.000000', '60.000000', '0.000000', '0', null, '63', '0');
|
INSERT INTO `jsh_depot_head` VALUES ('273', '入库', '采购', 'CGRK00000000658', 'CGRK00000000658', '2021-07-28 00:58:12', '2021-07-28 00:58:02', '57', '63', '17', '-60.000000', null, '-60.000000', '现付', null, null, null, null, '', '', '0.000000', '0.000000', '60.000000', '0.000000', '0', null, '63', '0');
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Table structure for jsh_depot_item
|
-- Table structure for jsh_depot_item
|
||||||
|
|||||||
@@ -1323,3 +1323,10 @@ insert into `jsh_function`(`number`, `name`, `parent_number`, `url`, `component`
|
|||||||
insert into `jsh_platform_config`(`platform_key`, `platform_key_info`, `platform_value`)
|
insert into `jsh_platform_config`(`platform_key`, `platform_key_info`, `platform_value`)
|
||||||
values ('register_flag', '注册启用标记', '1');
|
values ('register_flag', '注册启用标记', '1');
|
||||||
update jsh_msg set status='2' where id=2;
|
update jsh_msg set status='2' where id=2;
|
||||||
|
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
-- 时间 2021年12月12日
|
||||||
|
-- by jishenghua
|
||||||
|
-- 给单据表增加找零字段backAmount
|
||||||
|
-- --------------------------------------------------------
|
||||||
|
alter table jsh_depot_head add back_amount decimal(24,6) DEFAULT NULL COMMENT '找零金额' after change_amount;
|
||||||
@@ -26,6 +26,8 @@ public class DepotHead {
|
|||||||
|
|
||||||
private BigDecimal changeAmount;
|
private BigDecimal changeAmount;
|
||||||
|
|
||||||
|
private BigDecimal backAmount;
|
||||||
|
|
||||||
private BigDecimal totalPrice;
|
private BigDecimal totalPrice;
|
||||||
|
|
||||||
private String payType;
|
private String payType;
|
||||||
@@ -146,6 +148,14 @@ public class DepotHead {
|
|||||||
this.changeAmount = changeAmount;
|
this.changeAmount = changeAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public BigDecimal getBackAmount() {
|
||||||
|
return backAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBackAmount(BigDecimal backAmount) {
|
||||||
|
this.backAmount = backAmount;
|
||||||
|
}
|
||||||
|
|
||||||
public BigDecimal getTotalPrice() {
|
public BigDecimal getTotalPrice() {
|
||||||
return totalPrice;
|
return totalPrice;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -806,6 +806,66 @@ public class DepotHeadExample {
|
|||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountIsNull() {
|
||||||
|
addCriterion("back_amount is null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountIsNotNull() {
|
||||||
|
addCriterion("back_amount is not null");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("back_amount =", value, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountNotEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("back_amount <>", value, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountGreaterThan(BigDecimal value) {
|
||||||
|
addCriterion("back_amount >", value, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountGreaterThanOrEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("back_amount >=", value, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountLessThan(BigDecimal value) {
|
||||||
|
addCriterion("back_amount <", value, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountLessThanOrEqualTo(BigDecimal value) {
|
||||||
|
addCriterion("back_amount <=", value, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountIn(List<BigDecimal> values) {
|
||||||
|
addCriterion("back_amount in", values, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountNotIn(List<BigDecimal> values) {
|
||||||
|
addCriterion("back_amount not in", values, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountBetween(BigDecimal value1, BigDecimal value2) {
|
||||||
|
addCriterion("back_amount between", value1, value2, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Criteria andBackAmountNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||||
|
addCriterion("back_amount not between", value1, value2, "backAmount");
|
||||||
|
return (Criteria) this;
|
||||||
|
}
|
||||||
|
|
||||||
public Criteria andTotalPriceIsNull() {
|
public Criteria andTotalPriceIsNull() {
|
||||||
addCriterion("total_price is null");
|
addCriterion("total_price is null");
|
||||||
return (Criteria) this;
|
return (Criteria) this;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
<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" />
|
||||||
|
<result column="back_amount" jdbcType="DECIMAL" property="backAmount" />
|
||||||
<result column="total_price" jdbcType="DECIMAL" property="totalPrice" />
|
<result column="total_price" jdbcType="DECIMAL" property="totalPrice" />
|
||||||
<result column="pay_type" jdbcType="VARCHAR" property="payType" />
|
<result column="pay_type" jdbcType="VARCHAR" property="payType" />
|
||||||
<result column="bill_type" jdbcType="VARCHAR" property="billType" />
|
<result column="bill_type" jdbcType="VARCHAR" property="billType" />
|
||||||
@@ -90,9 +91,9 @@
|
|||||||
</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, creator,
|
id, type, sub_type, default_number, number, create_time, oper_time, organ_id, creator,
|
||||||
account_id, change_amount, total_price, pay_type, bill_type, remark, file_name, sales_man,
|
account_id, change_amount, back_amount, total_price, pay_type, bill_type, remark,
|
||||||
account_id_list, account_money_list, discount, discount_money, discount_last_money,
|
file_name, sales_man, account_id_list, account_money_list, discount, discount_money,
|
||||||
other_money, status, link_number, tenant_id, delete_flag
|
discount_last_money, other_money, status, link_number, 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
|
||||||
@@ -128,23 +129,23 @@
|
|||||||
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, creator,
|
oper_time, organ_id, creator,
|
||||||
account_id, change_amount, total_price,
|
account_id, change_amount, back_amount,
|
||||||
pay_type, bill_type, remark,
|
total_price, pay_type, bill_type,
|
||||||
file_name, sales_man, account_id_list,
|
remark, file_name, sales_man,
|
||||||
account_money_list, discount, discount_money,
|
account_id_list, account_money_list, discount,
|
||||||
discount_last_money, other_money, status,
|
discount_money, discount_last_money, other_money,
|
||||||
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}, #{creator,jdbcType=BIGINT},
|
#{operTime,jdbcType=TIMESTAMP}, #{organId,jdbcType=BIGINT}, #{creator,jdbcType=BIGINT},
|
||||||
#{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL}, #{totalPrice,jdbcType=DECIMAL},
|
#{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL}, #{backAmount,jdbcType=DECIMAL},
|
||||||
#{payType,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
|
#{totalPrice,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR},
|
||||||
#{fileName,jdbcType=VARCHAR}, #{salesMan,jdbcType=VARCHAR}, #{accountIdList,jdbcType=VARCHAR},
|
#{remark,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{salesMan,jdbcType=VARCHAR},
|
||||||
#{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL}, #{discountMoney,jdbcType=DECIMAL},
|
#{accountIdList,jdbcType=VARCHAR}, #{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL},
|
||||||
#{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
|
#{discountMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL},
|
||||||
#{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
|
||||||
@@ -182,6 +183,9 @@
|
|||||||
<if test="changeAmount != null">
|
<if test="changeAmount != null">
|
||||||
change_amount,
|
change_amount,
|
||||||
</if>
|
</if>
|
||||||
|
<if test="backAmount != null">
|
||||||
|
back_amount,
|
||||||
|
</if>
|
||||||
<if test="totalPrice != null">
|
<if test="totalPrice != null">
|
||||||
total_price,
|
total_price,
|
||||||
</if>
|
</if>
|
||||||
@@ -265,6 +269,9 @@
|
|||||||
<if test="changeAmount != null">
|
<if test="changeAmount != null">
|
||||||
#{changeAmount,jdbcType=DECIMAL},
|
#{changeAmount,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="backAmount != null">
|
||||||
|
#{backAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="totalPrice != null">
|
<if test="totalPrice != null">
|
||||||
#{totalPrice,jdbcType=DECIMAL},
|
#{totalPrice,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
@@ -357,6 +364,9 @@
|
|||||||
<if test="record.changeAmount != null">
|
<if test="record.changeAmount != null">
|
||||||
change_amount = #{record.changeAmount,jdbcType=DECIMAL},
|
change_amount = #{record.changeAmount,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="record.backAmount != null">
|
||||||
|
back_amount = #{record.backAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="record.totalPrice != null">
|
<if test="record.totalPrice != null">
|
||||||
total_price = #{record.totalPrice,jdbcType=DECIMAL},
|
total_price = #{record.totalPrice,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
@@ -423,6 +433,7 @@
|
|||||||
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},
|
||||||
|
back_amount = #{record.backAmount,jdbcType=DECIMAL},
|
||||||
total_price = #{record.totalPrice,jdbcType=DECIMAL},
|
total_price = #{record.totalPrice,jdbcType=DECIMAL},
|
||||||
pay_type = #{record.payType,jdbcType=VARCHAR},
|
pay_type = #{record.payType,jdbcType=VARCHAR},
|
||||||
bill_type = #{record.billType,jdbcType=VARCHAR},
|
bill_type = #{record.billType,jdbcType=VARCHAR},
|
||||||
@@ -476,6 +487,9 @@
|
|||||||
<if test="changeAmount != null">
|
<if test="changeAmount != null">
|
||||||
change_amount = #{changeAmount,jdbcType=DECIMAL},
|
change_amount = #{changeAmount,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
|
<if test="backAmount != null">
|
||||||
|
back_amount = #{backAmount,jdbcType=DECIMAL},
|
||||||
|
</if>
|
||||||
<if test="totalPrice != null">
|
<if test="totalPrice != null">
|
||||||
total_price = #{totalPrice,jdbcType=DECIMAL},
|
total_price = #{totalPrice,jdbcType=DECIMAL},
|
||||||
</if>
|
</if>
|
||||||
@@ -539,6 +553,7 @@
|
|||||||
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},
|
||||||
|
back_amount = #{backAmount,jdbcType=DECIMAL},
|
||||||
total_price = #{totalPrice,jdbcType=DECIMAL},
|
total_price = #{totalPrice,jdbcType=DECIMAL},
|
||||||
pay_type = #{payType,jdbcType=VARCHAR},
|
pay_type = #{payType,jdbcType=VARCHAR},
|
||||||
bill_type = #{billType,jdbcType=VARCHAR},
|
bill_type = #{billType,jdbcType=VARCHAR},
|
||||||
|
|||||||
Reference in New Issue
Block a user