This commit is contained in:
van
2026-04-03 00:34:07 +08:00
parent 72d5856838
commit c841990b49
14 changed files with 634 additions and 22 deletions

View File

@@ -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);
}
}