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

Commit 5e76394f authored by 胡佳晨's avatar 胡佳晨

Merge branch 'dev' into test

parents ed201ee6 05f4b446
...@@ -149,12 +149,18 @@ ...@@ -149,12 +149,18 @@
"isExclusive": parseInt($("input[name^='isExclusive']:checked").val()) "isExclusive": parseInt($("input[name^='isExclusive']:checked").val())
} }
if ($.validate.form()) { if ($.validate.form()) {
var canSubmit = 1;
$("#ticket-table").find('.content-tr').each(function (i, tr) { $("#ticket-table").find('.content-tr').each(function (i, tr) {
$(tr).find('td').each(function (y, td) { $(tr).find('td').each(function (y, td) {
var inputName = $(td).find("input").attr("name"); var inputName = $(td).find("input").attr("name");
var inputValue = $(td).find("input").val(); var inputValue = $(td).find("input").val();
if (inputName == "priceDiscountMember") {//过滤修改列 if (inputName == "priceDiscountMember") {//过滤修改列
performanceMemberAuditParam["ticketMemberAudit[" + i + "].priceDiscountMember"] = parseFloat(inputValue); performanceMemberAuditParam["ticketMemberAudit[" + i + "].priceDiscountMember"] = parseFloat(inputValue);
if (parseFloat($("td[name^='price']").text()) - parseFloat(inputValue) <= 0) {
canSubmit = 0;
}
} }
if (inputName == "memberLimitCount") {//过滤修改列 if (inputName == "memberLimitCount") {//过滤修改列
performanceMemberAuditParam["ticketMemberAudit[" + i + "].memberLimitCount"] = parseInt(inputValue); performanceMemberAuditParam["ticketMemberAudit[" + i + "].memberLimitCount"] = parseInt(inputValue);
...@@ -168,9 +174,13 @@ ...@@ -168,9 +174,13 @@
}); });
}); });
$.operate.post(prefix + "/memberInfo/submit", performanceMemberAuditParam, function (res) { if (canSubmit == 1) {
location.reload(); $.operate.post(prefix + "/memberInfo/submit", performanceMemberAuditParam, function (res) {
}); location.reload();
});
} else {
alert("会员优惠后不能小于0")
}
} }
} }
...@@ -193,4 +203,4 @@ ...@@ -193,4 +203,4 @@
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -153,6 +153,21 @@ public class KylinOrderTickets implements Serializable { ...@@ -153,6 +153,21 @@ public class KylinOrderTickets implements Serializable {
*/ */
private String expressAddress; private String expressAddress;
/**
* 城市
*/
private String city;
/**
* 区县
*/
private String county;
/**
* 省份
*/
private String province;
/** /**
* 收货人联系方式 * 收货人联系方式
*/ */
......
...@@ -9,9 +9,9 @@ eureka: ...@@ -9,9 +9,9 @@ eureka:
spring: spring:
cloud: cloud:
config: config:
# uri: http://127.0.0.1:7002/support-config # uri: http://39.106.122.201:7002/support-config
profile: ${liquidnet.cloudConfig.profile} profile: ${liquidnet.cloudConfig.profile}
name: ${spring.application.name} #默认为spring.application.name name: ${spring.application.name} #默认为spring.application.name
discovery: discovery:
enabled: true enabled: true
service-id: liquidnet-support-config service-id: liquidnet-support-config
\ No newline at end of file
...@@ -373,6 +373,9 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -373,6 +373,9 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
orderTickets.setExpressContacts(addressesVo.getName()); orderTickets.setExpressContacts(addressesVo.getName());
orderTickets.setExpressAddress(addressesVo.getProvince() + addressesVo.getCity() + addressesVo.getCounty() + addressesVo.getAddress()); orderTickets.setExpressAddress(addressesVo.getProvince() + addressesVo.getCity() + addressesVo.getCounty() + addressesVo.getAddress());
orderTickets.setExpressPhone(addressesVo.getPhone()); orderTickets.setExpressPhone(addressesVo.getPhone());
orderTickets.setCity(addressesVo.getCity());
orderTickets.setProvince(addressesVo.getProvince());
orderTickets.setCounty(addressesVo.getCounty());
orderTickets.setGetTicketType("express"); orderTickets.setGetTicketType("express");
currentTime = System.currentTimeMillis() - currentTime; currentTime = System.currentTimeMillis() - currentTime;
log.debug("feign 获取入场人 -> time:" + (currentTime) + "毫秒"); log.debug("feign 获取入场人 -> time:" + (currentTime) + "毫秒");
...@@ -380,6 +383,9 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -380,6 +383,9 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
orderTickets.setExpressContacts(""); orderTickets.setExpressContacts("");
orderTickets.setExpressAddress(""); orderTickets.setExpressAddress("");
orderTickets.setExpressPhone(""); orderTickets.setExpressPhone("");
orderTickets.setCity("");
orderTickets.setProvince("");
orderTickets.setCounty("");
orderTickets.setGetTicketType("electronic"); orderTickets.setGetTicketType("electronic");
} }
orderTickets.setCouponType("no"); orderTickets.setCouponType("no");
......
...@@ -18,10 +18,10 @@ liquidnet: ...@@ -18,10 +18,10 @@ liquidnet:
username: admin username: admin
password: admin password: admin
config: config:
# location: /Users/color/company_project/java/liquidnet-bus-v1-1/liquidnet-bus-config/liquidnet-config # location: /Users/color/company_project/java/liquidnet-bus-v1-1/liquidnet-bus-config/liquidnet-config
location: /app/support-config location: /app/support-config
# end-dev-这里是配置信息基本值 # end-dev-这里是配置信息基本值
spring: spring:
profiles: profiles:
include: support-config include: support-config
\ No newline at end of file
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