记得上下班打卡 | git大法好,push需谨慎

Commit 5fb371d7 authored by Administrator's avatar Administrator 🎨

Merge branch 'pre' into 'master'

Pre

See merge request !144
parents 87b33593 95aade38
...@@ -80,7 +80,8 @@ ...@@ -80,7 +80,8 @@
couType: couType, couType: couType,
bindType: '1,4' bindType: '1,4'
}; };
var jAjax = $.post; var jAjax = $.get;
// var jAjax = (that.ajax.method === "post") ? $.post : $.get;
jAjax(that.ajax.url, params, function(data){ jAjax(that.ajax.url, params, function(data){
return that.render(data.rows); return that.render(data.rows);
}); });
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
bindType: '1,4' bindType: '1,4'
}; };
var jAjax = $.post; var jAjax = $.post;
// var jAjax = (that.ajax.method === "post") ? $.post : $.get;
jAjax(that.ajax.url, params, function(data){ jAjax(that.ajax.url, params, function(data){
return that.render(data.rows); return that.render(data.rows);
}); });
......
...@@ -42,10 +42,10 @@ ...@@ -42,10 +42,10 @@
<script th:src="@{/ruoyi/js/common.js?v=4.6.1}"></script> <script th:src="@{/ruoyi/js/common.js?v=4.6.1}"></script>
<script th:src="@{/ruoyi/js/ry-ui.js?v=4.6.1}"></script> <script th:src="@{/ruoyi/js/ry-ui.js?v=4.6.1}"></script>
<!--远程搜索下拉框--> <!--远程搜索下拉框-->
<script th:src="@{/js/remote-search-performance.js}"></script> <!-- <script th:src="@{/js/remote-search-performance.js}"></script>-->
<!--远程搜索下拉框:积分抽奖配置使用--> <!--远程搜索下拉框:积分抽奖配置使用-->
<script th:src="@{/js/remote-search-coupon-list.js}"></script> <!-- <script th:src="@{/js/remote-search-coupon-list.js}"></script>-->
<script th:src="@{/js/remote-search-coupon.js}"></script> <!-- <script th:src="@{/js/remote-search-coupon.js}"></script>-->
</div> </div>
<!-- ztree树插件 --> <!-- ztree树插件 -->
......
...@@ -530,6 +530,7 @@ ...@@ -530,6 +530,7 @@
<th:block th:include="include :: footer" /> <th:block th:include="include :: footer" />
<th:block th:include="include :: bootstrap-fileinput-js"/> <th:block th:include="include :: bootstrap-fileinput-js"/>
<script th:src="@{/js/remote-search-coupon.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
</div> </div>
<th:block th:include="include :: footer"/> <th:block th:include="include :: footer"/>
<th:block th:include="include :: bootstrap-suggest-js"/> <th:block th:include="include :: bootstrap-suggest-js"/>
<script th:src="@{/js/remote-search-performance.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
var prefix = ctx + "kylin/performances/recommend"; var prefix = ctx + "kylin/performances/recommend";
......
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
</div> </div>
<th:block th:include="include :: footer"/> <th:block th:include="include :: footer"/>
<th:block th:include="include :: bootstrap-suggest-js"/> <th:block th:include="include :: bootstrap-suggest-js"/>
<script th:src="@{/js/remote-search-performance.js}"></script>
<script th:inline="javascript"> <script th:inline="javascript">
var prefix = ctx + "kylin/performances/roadShow"; var prefix = ctx + "kylin/performances/roadShow";
var roadShowId = '[[${roadShowId}]]'.replaceAll("\"", ""); var roadShowId = '[[${roadShowId}]]'.replaceAll("\"", "");
......
...@@ -158,6 +158,8 @@ ...@@ -158,6 +158,8 @@
<th:block th:include="include :: footer"/> <th:block th:include="include :: footer"/>
<script th:src="@{/js/jquery.tmpl.js}"></script> <script th:src="@{/js/jquery.tmpl.js}"></script>
<!--远程搜索下拉框:积分抽奖配置使用-->
<script th:src="@{/js/remote-search-coupon-list.js}"></script>
<th:block th:include="include :: bootstrap-fileinput-js" /> <th:block th:include="include :: bootstrap-fileinput-js" />
<script type="text/javascript"> <script type="text/javascript">
......
...@@ -826,8 +826,10 @@ public class AdamRdmService { ...@@ -826,8 +826,10 @@ public class AdamRdmService {
public String generateMemberUniqueSerialNumber(String mobile) { public String generateMemberUniqueSerialNumber(String mobile) {
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), mobile.substring(7)).substring(2); // String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), mobile.substring(7)).substring(2);
String sn = snT.replace("MS", String.valueOf(now.getLong(ChronoField.MILLI_OF_SECOND))); // String sn = snT.replace("MS", String.valueOf(now.getLong(ChronoField.MILLI_OF_SECOND)));
String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), org.apache.commons.lang3.StringUtils.right(mobile, 4)).substring(2);
String sn = snT.replace("MS", org.apache.commons.lang3.StringUtils.leftPad(String.valueOf(LocalDateTime.now().getLong(ChronoField.MILLI_OF_SECOND)), 3, "0"));
Object o = redisUtil.get(AdamRedisConst.SERIAL_NUMBER_MEMBER.concat(sn)); Object o = redisUtil.get(AdamRedisConst.SERIAL_NUMBER_MEMBER.concat(sn));
while (null != o) { while (null != o) {
String nano = String.valueOf(System.nanoTime()); String nano = String.valueOf(System.nanoTime());
......
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