Authored by tanling

需改文案

... ... @@ -71,19 +71,19 @@ public class TradeBillsController {
@RequestMapping(value = "/manualStopTransfer")
public ApiResponse manualStopTransfer() {
billsTradeService.manualStopTransfer();
return new ApiResponse.ApiResponseBuilder().code(200).message("手动关闭打款").build();
return new ApiResponse.ApiResponseBuilder().code(200).message("关闭打款").build();
}
@RequestMapping(value = "/manualStartUpTransfer")
public ApiResponse manualStartUpTransfer() {
billsTradeService.manualStartUpTransfer();
return new ApiResponse.ApiResponseBuilder().code(200).message("手动开启打款").build();
return new ApiResponse.ApiResponseBuilder().code(200).message("开启打款").build();
}
@RequestMapping(value = "/getTransferSwitchOff")
public ApiResponse getTransferSwitchOff() {
boolean flag = billsTradeService.getTransferSwitchOff();
return new ApiResponse.ApiResponseBuilder().code(200).data(flag ? "开关【关闭】" : "开关【打开】").message("手动开启打款").build();
return new ApiResponse.ApiResponseBuilder().code(200).data(flag ? "开关【关闭】" : "开关【打开】").message("开启打款").build();
}
... ...
... ... @@ -18,12 +18,12 @@ public interface ITradeBillsService {
boolean getTransferSwitchOff();
/**
* 手动开启打款
* 开启打款
*/
void manualStartUpTransfer();
/**
* 手动关闭打款
* 关闭打款
*/
void manualStopTransfer();
... ...
... ... @@ -258,14 +258,14 @@ public class TradeBillsServiceImpl implements ITradeBillsService {
}
/**
* 手动关闭打款
* 关闭打款
*/
public void manualStopTransfer(){
zkConfigWriter.setConfig("ufo.order.pay.isStop.transfer", "true");
}
/**
* 手动开启打款
* 开启打款
*/
public void manualStartUpTransfer(){
zkConfigWriter.setConfig("ufo.order.pay.isStop.transfer", "false");
... ...
... ... @@ -9,13 +9,13 @@
<div region="north" style="height:230px;">
<script>
document.write(addHead('打款管理', '停止手动打款'));
document.write(addHead('打款管理', '停止打款'));
</script>
<div style="padding:20px;">
<label id="transferSwitch"></label>
<a id="manualStopTransfer" class="btn-success">手动停止打款</a>
<a id="manualStartUpTransfer" class="btn-success">手动开启打款</a>
<a id="manualStopTransfer" class="btn-success">停止打款</a>
<a id="manualStartUpTransfer" class="btn-success">开启打款</a>
</div>
</div>
... ... @@ -42,7 +42,7 @@ $(function() {
if(result.code == 200) {
window.self.$.messager.show({
title : "提示",
msg : "手动关闭打款!"
msg : "关闭打款!"
});
setTransferSwitchOff();
... ... @@ -66,7 +66,7 @@ $(function() {
if(result.code == 200) {
window.self.$.messager.show({
title : "提示",
msg : "手动开启打款!"
msg : "开启打款!"
});
}
... ...