串联同功能

This commit is contained in:
huangdeliang
2020-10-28 10:28:43 +08:00
parent a51b318a42
commit f095bd8c8c
4 changed files with 24 additions and 3 deletions

View File

@ -95,7 +95,7 @@ public class SysContractController extends BaseController {
public AjaxResult getfile(@PathVariable long id) {
AjaxResult ajax = AjaxResult.success();
SysContract contract = sysContractService.selectSysContractById(id);
if (contract.getPath() != null && !contract.getPath().equals("")) {
if (contract.getStatus() == 1) {
ajax.put("url", contract.getPath());
} else {
Map<String, String> data = new HashMap<>();