Commit 6a3a4d08 by 王昆

gsb

parent d955be85
...@@ -136,10 +136,17 @@ class SaasChannelService extends ServiceBase { ...@@ -136,10 +136,17 @@ class SaasChannelService extends ServiceBase {
if(term_end) { if(term_end) {
channel.term_end = term_end; channel.term_end = term_end;
} }
if(term == 1) {
channel.term_end = null;
}
channel.validity = validity; channel.validity = validity;
if(validity_end) { if(validity_end) {
channel.validity_end = validity_end; channel.validity_end = validity_end;
} }
if(validity == 1) {
channel.validity_end = null;
}
if (channel.id) { if (channel.id) {
......
...@@ -167,10 +167,16 @@ class SaasMerchantService extends ServiceBase { ...@@ -167,10 +167,16 @@ class SaasMerchantService extends ServiceBase {
if(term_end) { if(term_end) {
merchant.term_end = term_end; merchant.term_end = term_end;
} }
if(term == 1) {
merchant.term_end = null;
}
merchant.validity = validity; merchant.validity = validity;
if(validity_end) { if(validity_end) {
merchant.validity_end = validity_end; merchant.validity_end = validity_end;
} }
if(validity == 1) {
merchant.validity_end = null;
}
let self = this; let self = this;
if (merchant.id) { if (merchant.id) {
......
Markdown is supported
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