1
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
package com.ruoyi.web.controller.jarvis;
|
||||
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
import com.ruoyi.jarvis.domain.WeComShareLinkLogisticsJob;
|
||||
import com.ruoyi.jarvis.service.IWeComShareLinkLogisticsJobService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/jarvis/wecom/shareLinkLogisticsJob")
|
||||
public class WeComShareLinkLogisticsJobController extends BaseController {
|
||||
|
||||
@Resource
|
||||
private IWeComShareLinkLogisticsJobService weComShareLinkLogisticsJobService;
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('jarvis:wecom:shareLinkLog:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(WeComShareLinkLogisticsJob query) {
|
||||
startPage();
|
||||
List<WeComShareLinkLogisticsJob> list = weComShareLinkLogisticsJobService.selectList(query);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('jarvis:wecom:shareLinkLog:list')")
|
||||
@GetMapping("/{jobKey}")
|
||||
public AjaxResult getInfo(@PathVariable("jobKey") String jobKey) {
|
||||
return success(weComShareLinkLogisticsJobService.selectByJobKey(jobKey));
|
||||
}
|
||||
|
||||
@PreAuthorize("@ss.hasPermi('jarvis:wecom:shareLinkLog:import')")
|
||||
@PostMapping("/backfillFromInboundTrace")
|
||||
public AjaxResult backfillFromInboundTrace() {
|
||||
Map<String, Object> r = weComShareLinkLogisticsJobService.backfillImportedFromInboundTrace();
|
||||
return success(r);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user