|
|
|
@ -6,6 +6,7 @@ import java.util.List;
|
|
|
|
|
import com.ruoyi.common.utils.uuid.Seq;
|
|
|
|
|
import com.ruoyi.system.domain.TdPropertyInfo;
|
|
|
|
|
import com.ruoyi.system.service.ITdPropertyInfoService;
|
|
|
|
|
import com.ruoyi.web.controller.manager.SysAreaManager;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
@ -24,6 +25,8 @@ import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 资产登记Controller
|
|
|
|
|
*
|
|
|
|
@ -41,6 +44,9 @@ public class TdPropertyManagerController extends BaseController
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITdPropertyInfoService tdPropertyInfoService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private SysAreaManager sysAreaManager;
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("system:property:view")
|
|
|
|
|
@GetMapping()
|
|
|
|
|
public String property()
|
|
|
|
@ -71,6 +77,10 @@ public class TdPropertyManagerController extends BaseController
|
|
|
|
|
public AjaxResult export(TdPropertyManager tdPropertyManager)
|
|
|
|
|
{
|
|
|
|
|
List<TdPropertyManager> list = tdPropertyManagerService.selectTdPropertyManagerList(tdPropertyManager);
|
|
|
|
|
list.forEach(tdPropertyManager1 -> {
|
|
|
|
|
tdPropertyManager1.setPart(sysAreaManager.getAreaName(tdPropertyManager1.getPart()));
|
|
|
|
|
tdPropertyManager1.setAreaId(sysAreaManager.getAreaName(tdPropertyManager1.getAreaId()));
|
|
|
|
|
});
|
|
|
|
|
ExcelUtil<TdPropertyManager> util = new ExcelUtil<TdPropertyManager>(TdPropertyManager.class);
|
|
|
|
|
return util.exportExcel(list, "资产登记数据");
|
|
|
|
|
}
|
|
|
|
|