Commit 0bb674db authored by jsh's avatar jsh
Browse files

给单据主表增加单据类型字段

parent 0ffe35a4
This diff is collapsed.
...@@ -1038,4 +1038,11 @@ CREATE TABLE `jsh_platform_config` ( ...@@ -1038,4 +1038,11 @@ CREATE TABLE `jsh_platform_config` (
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='平台参数'; ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='平台参数';
INSERT INTO `jsh_platform_config` VALUES ('1', 'platform_name', '平台名称', '华夏ERP'); INSERT INTO `jsh_platform_config` VALUES ('1', 'platform_name', '平台名称', '华夏ERP');
INSERT INTO `jsh_platform_config` VALUES ('2', 'activation_code', '激活码', null); INSERT INTO `jsh_platform_config` VALUES ('2', 'activation_code', '激活码', null);
\ No newline at end of file
-- --------------------------------------------------------
-- 时间 2020年11月24日
-- by jishenghua
-- 给单据主表增加单据类型字段bill_type
-- --------------------------------------------------------
alter table jsh_depot_head add bill_type varchar(50) DEFAULT NULL COMMENT '单据类型' after pay_type;
\ No newline at end of file
...@@ -250,7 +250,7 @@ ...@@ -250,7 +250,7 @@
} }
$("#bill .AccountIdShow").text(accountIdShow); $("#bill .AccountIdShow").text(accountIdShow);
} }
$("#bill .OrganIdShow").text(data.organName); $("#bill .OrganIdShow").text(data.organName==null ? "":data.organName);
$("#bill .OperTimeShow").text(data.operTimeStr); $("#bill .OperTimeShow").text(data.operTimeStr);
$("#bill .NumberShow").text(data.number); $("#bill .NumberShow").text(data.number);
$("#bill .LinkNumberShow").text(data.linkNumber? data.linkNumber : ""); $("#bill .LinkNumberShow").text(data.linkNumber? data.linkNumber : "");
......
...@@ -121,9 +121,13 @@ ...@@ -121,9 +121,13 @@
<td style="padding:5px;width:140px;"> <td style="padding:5px;width:140px;">
<span id="NumberShow"></span> <span id="NumberShow"></span>
</td> </td>
<td style="width:70px;"></td> <td style="width:70px;">关联单号:</td>
<td style="padding:5px;width:140px;"></td> <td style="padding:5px;width:140px;">
<td style="width:100px;"></td> <span id="LinkNumberShow"></span>
</td>
<td style="width:100px;">
<span id="billTypeShow"></span>
</td>
</tr> </tr>
<tr> <tr>
<td colspan="9" style="width: 1130px;"> <td colspan="9" style="width: 1130px;">
...@@ -423,6 +427,7 @@ ...@@ -423,6 +427,7 @@
$("#DebtShow").text(debt); $("#DebtShow").text(debt);
$("#AccountDayShow").text(res.accountDay); //结算天数 $("#AccountDayShow").text(res.accountDay); //结算天数
$("#LinkNumberShow").text(res.linkNumber); //关联订单号 $("#LinkNumberShow").text(res.linkNumber); //关联订单号
$("#billTypeShow").text(res.billType); //单据类型
var otherMoney = res.otherMoney?res.otherMoney:0; var otherMoney = res.otherMoney?res.otherMoney:0;
if(otherMoney!=0 && res.otherMoneyList && res.otherMoneyItem){ if(otherMoney!=0 && res.otherMoneyList && res.otherMoneyItem){
var itemArr = res.otherMoneyList.split(","); //支出项目id列表 var itemArr = res.otherMoneyList.split(","); //支出项目id列表
...@@ -700,11 +705,6 @@ ...@@ -700,11 +705,6 @@
return; return;
} }
} }
//输入框提示
if(!$('#OrganId').combobox('getValue')){
$.messager.alert('提示','请选择往来单位!','warning');
return;
}
//进行明细的校验 //进行明细的校验
if(depotHeadID ==0) { if(depotHeadID ==0) {
//新增模式下 //新增模式下
......
...@@ -115,9 +115,13 @@ ...@@ -115,9 +115,13 @@
<td style="padding:5px;width:140px;"> <td style="padding:5px;width:140px;">
<span id="NumberShow"></span> <span id="NumberShow"></span>
</td> </td>
<td style="width:70px;"></td> <td style="width:70px;">关联单号:</td>
<td style="padding:5px;width:140px;"></td> <td style="padding:5px;width:140px;">
<td style="width:100px;"></td> <span id="LinkNumberShow"></span>
</td>
<td style="width:100px;">
<span id="billTypeShow"></span>
</td>
</tr> </tr>
<tr> <tr>
<td colspan="9" style="width: 1130px;"> <td colspan="9" style="width: 1130px;">
...@@ -416,6 +420,7 @@ ...@@ -416,6 +420,7 @@
$("#DebtShow").text(debt); $("#DebtShow").text(debt);
$("#AccountDayShow").text(res.accountDay); //结算天数 $("#AccountDayShow").text(res.accountDay); //结算天数
$("#LinkNumberShow").text(res.linkNumber); //关联订单号 $("#LinkNumberShow").text(res.linkNumber); //关联订单号
$("#billTypeShow").text(res.billType); //单据类型
var otherMoney = res.otherMoney?res.otherMoney:0; var otherMoney = res.otherMoney?res.otherMoney:0;
if(otherMoney!=0 && res.otherMoneyList && res.otherMoneyItem){ if(otherMoney!=0 && res.otherMoneyList && res.otherMoneyItem){
var itemArr = res.otherMoneyList.split(","); //支出项目id列表 var itemArr = res.otherMoneyList.split(","); //支出项目id列表
...@@ -693,11 +698,6 @@ ...@@ -693,11 +698,6 @@
return; return;
} }
} }
//输入框提示
if(!$('#OrganId').combobox('getValue')){
$.messager.alert('提示','请选择往来单位!','warning');
return;
}
//进行明细的校验 //进行明细的校验
if(depotHeadID ==0) { if(depotHeadID ==0) {
//新增模式下 //新增模式下
......
...@@ -32,6 +32,8 @@ public class DepotHead { ...@@ -32,6 +32,8 @@ public class DepotHead {
private String payType; private String payType;
private String billType;
private String remark; private String remark;
private String salesMan; private String salesMan;
...@@ -174,6 +176,14 @@ public class DepotHead { ...@@ -174,6 +176,14 @@ public class DepotHead {
this.payType = payType == null ? null : payType.trim(); this.payType = payType == null ? null : payType.trim();
} }
public String getBillType() {
return billType;
}
public void setBillType(String billType) {
this.billType = billType == null ? null : billType.trim();
}
public String getRemark() { public String getRemark() {
return remark; return remark;
} }
......
...@@ -996,6 +996,76 @@ public class DepotHeadExample { ...@@ -996,6 +996,76 @@ public class DepotHeadExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andBillTypeIsNull() {
addCriterion("bill_type is null");
return (Criteria) this;
}
public Criteria andBillTypeIsNotNull() {
addCriterion("bill_type is not null");
return (Criteria) this;
}
public Criteria andBillTypeEqualTo(String value) {
addCriterion("bill_type =", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeNotEqualTo(String value) {
addCriterion("bill_type <>", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeGreaterThan(String value) {
addCriterion("bill_type >", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeGreaterThanOrEqualTo(String value) {
addCriterion("bill_type >=", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeLessThan(String value) {
addCriterion("bill_type <", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeLessThanOrEqualTo(String value) {
addCriterion("bill_type <=", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeLike(String value) {
addCriterion("bill_type like", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeNotLike(String value) {
addCriterion("bill_type not like", value, "billType");
return (Criteria) this;
}
public Criteria andBillTypeIn(List<String> values) {
addCriterion("bill_type in", values, "billType");
return (Criteria) this;
}
public Criteria andBillTypeNotIn(List<String> values) {
addCriterion("bill_type not in", values, "billType");
return (Criteria) this;
}
public Criteria andBillTypeBetween(String value1, String value2) {
addCriterion("bill_type between", value1, value2, "billType");
return (Criteria) this;
}
public Criteria andBillTypeNotBetween(String value1, String value2) {
addCriterion("bill_type not between", value1, value2, "billType");
return (Criteria) this;
}
public Criteria andRemarkIsNull() { public Criteria andRemarkIsNull() {
addCriterion("remark is null"); addCriterion("remark is null");
return (Criteria) this; return (Criteria) this;
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<result column="change_amount" jdbcType="DECIMAL" property="changeAmount" /> <result column="change_amount" jdbcType="DECIMAL" property="changeAmount" />
<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="remark" jdbcType="VARCHAR" property="remark" /> <result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="sales_man" jdbcType="VARCHAR" property="salesMan" /> <result column="sales_man" jdbcType="VARCHAR" property="salesMan" />
<result column="account_id_list" jdbcType="VARCHAR" property="accountIdList" /> <result column="account_id_list" jdbcType="VARCHAR" property="accountIdList" />
...@@ -92,9 +93,10 @@ ...@@ -92,9 +93,10 @@
</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, hands_person_id,
creator, account_id, change_amount, total_price, pay_type, remark, sales_man, account_id_list, creator, account_id, change_amount, total_price, pay_type, bill_type, remark, sales_man,
account_money_list, discount, discount_money, discount_last_money, other_money, other_money_list, account_id_list, account_money_list, discount, discount_money, discount_last_money,
other_money_item, account_day, status, link_number, tenant_id, delete_flag other_money, other_money_list, other_money_item, account_day, 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
...@@ -131,22 +133,24 @@ ...@@ -131,22 +133,24 @@
default_number, number, create_time, default_number, number, create_time,
oper_time, organ_id, hands_person_id, oper_time, organ_id, hands_person_id,
creator, account_id, change_amount, creator, account_id, change_amount,
total_price, pay_type, remark, total_price, pay_type, bill_type,
sales_man, account_id_list, account_money_list, remark, sales_man, account_id_list,
discount, discount_money, discount_last_money, account_money_list, discount, discount_money,
other_money, other_money_list, other_money_item, discount_last_money, other_money, other_money_list,
account_day, status, link_number, other_money_item, account_day, status,
tenant_id, delete_flag) 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}, #{handsPersonId,jdbcType=BIGINT},
#{creator,jdbcType=BIGINT}, #{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL}, #{creator,jdbcType=BIGINT}, #{accountId,jdbcType=BIGINT}, #{changeAmount,jdbcType=DECIMAL},
#{totalPrice,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{totalPrice,jdbcType=DECIMAL}, #{payType,jdbcType=VARCHAR}, #{billType,jdbcType=VARCHAR},
#{salesMan,jdbcType=VARCHAR}, #{accountIdList,jdbcType=VARCHAR}, #{accountMoneyList,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{salesMan,jdbcType=VARCHAR}, #{accountIdList,jdbcType=VARCHAR},
#{discount,jdbcType=DECIMAL}, #{discountMoney,jdbcType=DECIMAL}, #{discountLastMoney,jdbcType=DECIMAL}, #{accountMoneyList,jdbcType=VARCHAR}, #{discount,jdbcType=DECIMAL}, #{discountMoney,jdbcType=DECIMAL},
#{otherMoney,jdbcType=DECIMAL}, #{otherMoneyList,jdbcType=VARCHAR}, #{otherMoneyItem,jdbcType=VARCHAR}, #{discountLastMoney,jdbcType=DECIMAL}, #{otherMoney,jdbcType=DECIMAL}, #{otherMoneyList,jdbcType=VARCHAR},
#{accountDay,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, #{linkNumber,jdbcType=VARCHAR}, #{otherMoneyItem,jdbcType=VARCHAR}, #{accountDay,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR},
#{tenantId,jdbcType=BIGINT}, #{deleteFlag,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
...@@ -193,6 +197,9 @@ ...@@ -193,6 +197,9 @@
<if test="payType != null"> <if test="payType != null">
pay_type, pay_type,
</if> </if>
<if test="billType != null">
bill_type,
</if>
<if test="remark != null"> <if test="remark != null">
remark, remark,
</if> </if>
...@@ -282,6 +289,9 @@ ...@@ -282,6 +289,9 @@
<if test="payType != null"> <if test="payType != null">
#{payType,jdbcType=VARCHAR}, #{payType,jdbcType=VARCHAR},
</if> </if>
<if test="billType != null">
#{billType,jdbcType=VARCHAR},
</if>
<if test="remark != null"> <if test="remark != null">
#{remark,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR},
</if> </if>
...@@ -380,6 +390,9 @@ ...@@ -380,6 +390,9 @@
<if test="record.payType != null"> <if test="record.payType != null">
pay_type = #{record.payType,jdbcType=VARCHAR}, pay_type = #{record.payType,jdbcType=VARCHAR},
</if> </if>
<if test="record.billType != null">
bill_type = #{record.billType,jdbcType=VARCHAR},
</if>
<if test="record.remark != null"> <if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
</if> </if>
...@@ -446,6 +459,7 @@ ...@@ -446,6 +459,7 @@
change_amount = #{record.changeAmount,jdbcType=DECIMAL}, change_amount = #{record.changeAmount,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},
remark = #{record.remark,jdbcType=VARCHAR}, remark = #{record.remark,jdbcType=VARCHAR},
sales_man = #{record.salesMan,jdbcType=VARCHAR}, sales_man = #{record.salesMan,jdbcType=VARCHAR},
account_id_list = #{record.accountIdList,jdbcType=VARCHAR}, account_id_list = #{record.accountIdList,jdbcType=VARCHAR},
...@@ -507,6 +521,9 @@ ...@@ -507,6 +521,9 @@
<if test="payType != null"> <if test="payType != null">
pay_type = #{payType,jdbcType=VARCHAR}, pay_type = #{payType,jdbcType=VARCHAR},
</if> </if>
<if test="billType != null">
bill_type = #{billType,jdbcType=VARCHAR},
</if>
<if test="remark != null"> <if test="remark != null">
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
</if> </if>
...@@ -570,6 +587,7 @@ ...@@ -570,6 +587,7 @@
change_amount = #{changeAmount,jdbcType=DECIMAL}, change_amount = #{changeAmount,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},
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
sales_man = #{salesMan,jdbcType=VARCHAR}, sales_man = #{salesMan,jdbcType=VARCHAR},
account_id_list = #{accountIdList,jdbcType=VARCHAR}, account_id_list = #{accountIdList,jdbcType=VARCHAR},
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<generatorConfiguration> <generatorConfiguration>
<classPathEntry <classPathEntry
location="E:\maven\maven-repository\mysql\mysql-connector-java\5.1.47\mysql-connector-java-5.1.47.jar"/> location="E:\maven\maven-repository\mysql\mysql-connector-java\5.1.30\mysql-connector-java-5.1.30.jar"/>
<context id="DB2Tables" targetRuntime="MyBatis3" defaultModelType="flat"> <context id="DB2Tables" targetRuntime="MyBatis3" defaultModelType="flat">
<commentGenerator> <commentGenerator>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment