Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiyuanBlog authored Oct 15, 2019
1 parent 01e2bc9 commit 011283b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
if (0>=stock
&&"1".equals(rsrvTxt9)
&&null!=price1&&!price1.equals("")
&&null!=price2&&!price2.equals("")
&&null!=promoDateTo&&!promoDateTo.equals("")
&&null!=promoDateFrom&&!promoDateFrom.equals("")
&&((Long.valueOf(promoDateTo)-Long.valueOf(promoDateFrom))>=7776000000L)) {
return "缺货-长期促销";
} else if (0>=stock
&&"1".equals(rsrvTxt9)
&&null!=price1&&!price1.equals("")
&&null!=price2&&!price2.equals("")
&&null!=promoDateTo&&!promoDateTo.equals("")
&&null!=promoDateFrom&&!promoDateFrom.equals("")
&&((Long.valueOf(promoDateTo)-Long.valueOf(promoDateFrom))<7776000000L)) {
return "缺货-降价";
} else if (0>=stock
&&"1".equals(rsrvTxt9)
&&null!=promoDescription&&!promoDescription.equals("")
&&(-1!=promoDescription.indexOf("多")||-1!=promoDescription.indexOf("满"))) {
return "缺货-多买多省";
} else if ("1".equals(rsrvTxt9)
&&null!=price1&&!price1.equals("")
&&null!=price2&&!price2.equals("")
&&null!=promoDateTo&&!promoDateTo.equals("")
&&null!=promoDateFrom&&!promoDateFrom.equals("")
&&((Long.valueOf(promoDateTo)-Long.valueOf(promoDateFrom))>=7776000000L)) {
return "长期促销";
} else if ("1".equals(rsrvTxt9)
&&null!=price1&&!price1.equals("")
&&null!=price2&&!price2.equals("")
&&null!=promoDateTo&&!promoDateTo.equals("")
&&null!=promoDateFrom&&!promoDateFrom.equals("")
&&((Long.valueOf(promoDateTo)-Long.valueOf(promoDateFrom))<7776000000L)) {
return "降价";
} else if ("1".equals(rsrvTxt9)
&&null!=promoDescription&&!promoDescription.equals("")
&&(-1!=promoDescription.indexOf("多")||-1!=promoDescription.indexOf("满"))) {
return "多买多省";
} else if (0>=stock) {
return "缺货-普通";
} else {
return "普通";
}

0 comments on commit 011283b

Please sign in to comment.