|
|
@@ -23,10 +23,10 @@ import java.util.List;
|
|
|
* Created by Pro1 on 2017/8/4.
|
|
|
*/
|
|
|
@Component
|
|
|
-@TaskMapping(title = "采购", role = Role.SELLER)
|
|
|
+@TaskMapping(title = "采购", role = Role.SELLER, enabled = true)
|
|
|
public class SaleDownTask extends AbstractTask {
|
|
|
|
|
|
- @TaskMapping(title = "从平台下载客户下达到平台的采购订单", fixedDelay = 60000, method = Method.DOWNLOAD)
|
|
|
+ @TaskMapping(title = "从平台下载客户下达到平台的采购订单", fixedDelay = 60000, method = Method.DOWNLOAD, enabled = true)
|
|
|
public void downloadSaleDown() {
|
|
|
List<SaleDown> sales = getForList("/erp/sale", SaleDown.class);
|
|
|
if (!CollectionUtils.isEmpty(sales)) {
|
|
|
@@ -110,7 +110,7 @@ public class SaleDownTask extends AbstractTask {
|
|
|
post("/erp/sale", dataWrap(idStr));
|
|
|
}
|
|
|
|
|
|
- @TaskMapping(title = "下载直接在平台回复采购订单的记录", fixedDelay = 60000, method = Method.DOWNLOAD)
|
|
|
+ @TaskMapping(title = "下载直接在平台回复采购订单的记录", fixedDelay = 60000, method = Method.DOWNLOAD, enabled = true)
|
|
|
public void downloadReply() {
|
|
|
List<SaleReply> replies = getForList("/erp/sale/reply", SaleReply.class);
|
|
|
if (!CollectionUtils.isEmpty(replies)) {
|
|
|
@@ -160,7 +160,7 @@ public class SaleDownTask extends AbstractTask {
|
|
|
post("/erp/sale/reply/back", dataWrap(idStr));
|
|
|
}
|
|
|
|
|
|
- @TaskMapping(title = "上传SaleDown回复记录到平台", fixedDelay = 60000)
|
|
|
+ @TaskMapping(title = "上传SaleDown回复记录到平台", fixedDelay = 60000, enabled = true)
|
|
|
public void uploadSaleReply() {
|
|
|
List<SaleReply> replies = jdbcTemplate.queryForBeanList("select SaleReply.*,SaleDown.sa_customeruu cu_uu from SaleReply left join SaleDown on sr_sacode=sa_code where SR_SENDSTATUS='待上传' and sa_type='purchase' and sa_customeruu is not null",
|
|
|
SaleReply.class);
|
|
|
@@ -173,7 +173,7 @@ public class SaleDownTask extends AbstractTask {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @TaskMapping(title = "从平台下载客户下达到平台的结案、反结案采购订单", fixedDelay = 60000, method = Method.DOWNLOAD)
|
|
|
+ @TaskMapping(title = "从平台下载客户下达到平台的结案、反结案采购订单", fixedDelay = 60000, method = Method.DOWNLOAD, enabled = true)
|
|
|
public void downloadSaleDownEnd() {
|
|
|
List<SaleDownDetailEnd> ends = getForList("/erp/sale/end", SaleDownDetailEnd.class);
|
|
|
if (!CollectionUtils.isEmpty(ends)) {
|