Commit c0c8f760 authored by 耿迪迪's avatar 耿迪迪

图纸库

parent a50e99d1
...@@ -14,9 +14,9 @@ import com.zehong.system.domain.baseinfo.TStaff; ...@@ -14,9 +14,9 @@ import com.zehong.system.domain.baseinfo.TStaff;
import com.zehong.system.domain.form.TStaffForm; import com.zehong.system.domain.form.TStaffForm;
import com.zehong.system.domain.vo.TStaffVo; import com.zehong.system.domain.vo.TStaffVo;
import com.zehong.system.domain.vo.UserCourseVo; import com.zehong.system.domain.vo.UserCourseVo;
import com.zehong.system.service.ISysPostService; import com.zehong.system.service.system.ISysPostService;
import com.zehong.system.service.ISysRoleService; import com.zehong.system.service.system.ISysRoleService;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
import com.zehong.system.service.baseinfo.ITStaffService; import com.zehong.system.service.baseinfo.ITStaffService;
import com.zehong.system.service.train.ITTrainCourseService; import com.zehong.system.service.train.ITTrainCourseService;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
......
...@@ -14,8 +14,8 @@ import com.zehong.common.core.domain.AjaxResult; ...@@ -14,8 +14,8 @@ import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.core.page.TableDataInfo; import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.SysLogininfor; import com.zehong.system.domain.system.SysLogininfor;
import com.zehong.system.service.ISysLogininforService; import com.zehong.system.service.system.ISysLogininforService;
/** /**
* 系统访问记录 * 系统访问记录
......
...@@ -14,8 +14,8 @@ import com.zehong.common.core.domain.AjaxResult; ...@@ -14,8 +14,8 @@ import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.core.page.TableDataInfo; import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.SysOperLog; import com.zehong.system.domain.system.SysOperLog;
import com.zehong.system.service.ISysOperLogService; import com.zehong.system.service.system.ISysOperLogService;
/** /**
* 操作日志记录 * 操作日志记录
......
...@@ -20,8 +20,8 @@ import com.zehong.common.core.page.TableDataInfo; ...@@ -20,8 +20,8 @@ import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.core.redis.RedisCache; import com.zehong.common.core.redis.RedisCache;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.SysUserOnline; import com.zehong.system.domain.system.SysUserOnline;
import com.zehong.system.service.ISysUserOnlineService; import com.zehong.system.service.system.ISysUserOnlineService;
/** /**
* 在线用户监控 * 在线用户监控
......
...@@ -21,8 +21,8 @@ import com.zehong.common.core.page.TableDataInfo; ...@@ -21,8 +21,8 @@ import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.SysConfig; import com.zehong.system.domain.system.SysConfig;
import com.zehong.system.service.ISysConfigService; import com.zehong.system.service.system.ISysConfigService;
/** /**
* 参数配置 信息操作处理 * 参数配置 信息操作处理
......
...@@ -22,7 +22,7 @@ import com.zehong.common.core.domain.entity.SysDept; ...@@ -22,7 +22,7 @@ import com.zehong.common.core.domain.entity.SysDept;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.service.ISysDeptService; import com.zehong.system.service.system.ISysDeptService;
/** /**
* 部门信息 * 部门信息
......
...@@ -22,8 +22,8 @@ import com.zehong.common.enums.BusinessType; ...@@ -22,8 +22,8 @@ import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.service.ISysDictDataService; import com.zehong.system.service.system.ISysDictDataService;
import com.zehong.system.service.ISysDictTypeService; import com.zehong.system.service.system.ISysDictTypeService;
/** /**
* 数据字典信息 * 数据字典信息
......
...@@ -21,7 +21,7 @@ import com.zehong.common.core.page.TableDataInfo; ...@@ -21,7 +21,7 @@ import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.service.ISysDictTypeService; import com.zehong.system.service.system.ISysDictTypeService;
/** /**
* 数据字典信息 * 数据字典信息
......
...@@ -19,7 +19,7 @@ import com.zehong.common.utils.ServletUtils; ...@@ -19,7 +19,7 @@ import com.zehong.common.utils.ServletUtils;
import com.zehong.framework.web.service.SysLoginService; import com.zehong.framework.web.service.SysLoginService;
import com.zehong.framework.web.service.SysPermissionService; import com.zehong.framework.web.service.SysPermissionService;
import com.zehong.framework.web.service.TokenService; import com.zehong.framework.web.service.TokenService;
import com.zehong.system.service.ISysMenuService; import com.zehong.system.service.system.ISysMenuService;
/** /**
* 登录验证 * 登录验证
......
...@@ -24,7 +24,7 @@ import com.zehong.common.utils.SecurityUtils; ...@@ -24,7 +24,7 @@ import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.ServletUtils; import com.zehong.common.utils.ServletUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.framework.web.service.TokenService; import com.zehong.framework.web.service.TokenService;
import com.zehong.system.service.ISysMenuService; import com.zehong.system.service.system.ISysMenuService;
/** /**
* 菜单信息 * 菜单信息
......
...@@ -18,8 +18,8 @@ import com.zehong.common.core.domain.AjaxResult; ...@@ -18,8 +18,8 @@ import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.core.page.TableDataInfo; import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.system.domain.SysNotice; import com.zehong.system.domain.system.SysNotice;
import com.zehong.system.service.ISysNoticeService; import com.zehong.system.service.system.ISysNoticeService;
/** /**
* 公告 信息操作处理 * 公告 信息操作处理
......
...@@ -20,8 +20,8 @@ import com.zehong.common.core.page.TableDataInfo; ...@@ -20,8 +20,8 @@ import com.zehong.common.core.page.TableDataInfo;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.system.domain.SysPost; import com.zehong.system.domain.system.SysPost;
import com.zehong.system.service.ISysPostService; import com.zehong.system.service.system.ISysPostService;
/** /**
* 岗位信息操作处理 * 岗位信息操作处理
......
...@@ -23,7 +23,7 @@ import com.zehong.common.utils.ServletUtils; ...@@ -23,7 +23,7 @@ import com.zehong.common.utils.ServletUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.common.utils.file.FileUploadUtils; import com.zehong.common.utils.file.FileUploadUtils;
import com.zehong.framework.web.service.TokenService; import com.zehong.framework.web.service.TokenService;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
/** /**
* 个人信息 业务处理 * 个人信息 业务处理
......
...@@ -26,8 +26,8 @@ import com.zehong.common.utils.StringUtils; ...@@ -26,8 +26,8 @@ import com.zehong.common.utils.StringUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.framework.web.service.SysPermissionService; import com.zehong.framework.web.service.SysPermissionService;
import com.zehong.framework.web.service.TokenService; import com.zehong.framework.web.service.TokenService;
import com.zehong.system.service.ISysRoleService; import com.zehong.system.service.system.ISysRoleService;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
/** /**
* 角色信息 * 角色信息
......
...@@ -17,8 +17,8 @@ import com.zehong.common.annotation.Log; ...@@ -17,8 +17,8 @@ import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController; import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult; import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.enums.BusinessType; import com.zehong.common.enums.BusinessType;
import com.zehong.system.domain.SysSetting; import com.zehong.system.domain.system.SysSetting;
import com.zehong.system.service.ISysSettingService; import com.zehong.system.service.system.ISysSettingService;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.common.core.page.TableDataInfo; import com.zehong.common.core.page.TableDataInfo;
......
...@@ -30,9 +30,9 @@ import com.zehong.common.utils.ServletUtils; ...@@ -30,9 +30,9 @@ import com.zehong.common.utils.ServletUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.common.utils.poi.ExcelUtil; import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.framework.web.service.TokenService; import com.zehong.framework.web.service.TokenService;
import com.zehong.system.service.ISysPostService; import com.zehong.system.service.system.ISysPostService;
import com.zehong.system.service.ISysRoleService; import com.zehong.system.service.system.ISysRoleService;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
/** /**
* 用户信息 * 用户信息
......
package com.zehong.web.controller.track;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zehong.common.annotation.Log;
import com.zehong.common.core.controller.BaseController;
import com.zehong.common.core.domain.AjaxResult;
import com.zehong.common.enums.BusinessType;
import com.zehong.system.domain.track.TProductDrawing;
import com.zehong.system.service.track.ITProductDrawingService;
import com.zehong.common.utils.poi.ExcelUtil;
import com.zehong.common.core.page.TableDataInfo;
/**
* 图纸Controller
*
* @author zehong
* @date 2024-08-21
*/
@RestController
@RequestMapping("/track/drawing")
public class TProductDrawingController extends BaseController
{
@Autowired
private ITProductDrawingService tProductDrawingService;
/**
* 查询图纸列表
*/
//@PreAuthorize("@ss.hasPermi('system:drawing:list')")
@GetMapping("/list")
public TableDataInfo list(TProductDrawing tProductDrawing)
{
startPage();
List<TProductDrawing> list = tProductDrawingService.selectTProductDrawingList(tProductDrawing);
return getDataTable(list);
}
/**
* 导出图纸列表
*/
// @PreAuthorize("@ss.hasPermi('system:drawing:export')")
@Log(title = "图纸", businessType = BusinessType.EXPORT)
@GetMapping("/export")
public AjaxResult export(TProductDrawing tProductDrawing)
{
List<TProductDrawing> list = tProductDrawingService.selectTProductDrawingList(tProductDrawing);
ExcelUtil<TProductDrawing> util = new ExcelUtil<TProductDrawing>(TProductDrawing.class);
return util.exportExcel(list, "图纸数据");
}
/**
* 获取图纸详细信息
*/
//@PreAuthorize("@ss.hasPermi('system:drawing:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return AjaxResult.success(tProductDrawingService.selectTProductDrawingById(id));
}
/**
* 新增图纸
*/
//@PreAuthorize("@ss.hasPermi('system:drawing:add')")
@Log(title = "图纸", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody TProductDrawing tProductDrawing)
{
return toAjax(tProductDrawingService.insertTProductDrawing(tProductDrawing));
}
/**
* 修改图纸
*/
//@PreAuthorize("@ss.hasPermi('system:drawing:edit')")
@Log(title = "图纸", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody TProductDrawing tProductDrawing)
{
return toAjax(tProductDrawingService.updateTProductDrawing(tProductDrawing));
}
/**
* 删除图纸
*/
//@PreAuthorize("@ss.hasPermi('system:drawing:remove')")
@Log(title = "图纸", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(tProductDrawingService.deleteTProductDrawingByIds(ids));
}
}
...@@ -31,7 +31,7 @@ import com.zehong.common.utils.spring.SpringUtils; ...@@ -31,7 +31,7 @@ import com.zehong.common.utils.spring.SpringUtils;
import com.zehong.framework.manager.AsyncManager; import com.zehong.framework.manager.AsyncManager;
import com.zehong.framework.manager.factory.AsyncFactory; import com.zehong.framework.manager.factory.AsyncFactory;
import com.zehong.framework.web.service.TokenService; import com.zehong.framework.web.service.TokenService;
import com.zehong.system.domain.SysOperLog; import com.zehong.system.domain.system.SysOperLog;
/** /**
* 操作日志记录处理 * 操作日志记录处理
......
...@@ -9,10 +9,10 @@ import com.zehong.common.utils.ServletUtils; ...@@ -9,10 +9,10 @@ import com.zehong.common.utils.ServletUtils;
import com.zehong.common.utils.ip.AddressUtils; import com.zehong.common.utils.ip.AddressUtils;
import com.zehong.common.utils.ip.IpUtils; import com.zehong.common.utils.ip.IpUtils;
import com.zehong.common.utils.spring.SpringUtils; import com.zehong.common.utils.spring.SpringUtils;
import com.zehong.system.domain.SysLogininfor; import com.zehong.system.domain.system.SysLogininfor;
import com.zehong.system.domain.SysOperLog; import com.zehong.system.domain.system.SysOperLog;
import com.zehong.system.service.ISysLogininforService; import com.zehong.system.service.system.ISysLogininforService;
import com.zehong.system.service.ISysOperLogService; import com.zehong.system.service.system.ISysOperLogService;
import eu.bitwalker.useragentutils.UserAgent; import eu.bitwalker.useragentutils.UserAgent;
/** /**
......
package com.zehong.framework.systemsetting; package com.zehong.framework.systemsetting;
import com.zehong.system.domain.SysSetting; import com.zehong.system.domain.system.SysSetting;
import com.zehong.system.service.ISysSettingService; import com.zehong.system.service.system.ISysSettingService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner; import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
......
...@@ -21,7 +21,7 @@ import com.zehong.common.utils.ServletUtils; ...@@ -21,7 +21,7 @@ import com.zehong.common.utils.ServletUtils;
import com.zehong.common.utils.ip.IpUtils; import com.zehong.common.utils.ip.IpUtils;
import com.zehong.framework.manager.AsyncManager; import com.zehong.framework.manager.AsyncManager;
import com.zehong.framework.manager.factory.AsyncFactory; import com.zehong.framework.manager.factory.AsyncFactory;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
/** /**
* 登录校验方法 * 登录校验方法
......
...@@ -5,8 +5,8 @@ import java.util.Set; ...@@ -5,8 +5,8 @@ import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import com.zehong.common.core.domain.entity.SysUser; import com.zehong.common.core.domain.entity.SysUser;
import com.zehong.system.service.ISysMenuService; import com.zehong.system.service.system.ISysMenuService;
import com.zehong.system.service.ISysRoleService; import com.zehong.system.service.system.ISysRoleService;
/** /**
* 用户权限处理 * 用户权限处理
......
...@@ -12,7 +12,7 @@ import com.zehong.common.core.domain.model.LoginUser; ...@@ -12,7 +12,7 @@ import com.zehong.common.core.domain.model.LoginUser;
import com.zehong.common.enums.UserStatus; import com.zehong.common.enums.UserStatus;
import com.zehong.common.exception.BaseException; import com.zehong.common.exception.BaseException;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
/** /**
* 用户验证处理 * 用户验证处理
......
...@@ -39,7 +39,7 @@ public class ${ClassName}Controller extends BaseController ...@@ -39,7 +39,7 @@ public class ${ClassName}Controller extends BaseController
/** /**
* 查询${functionName}列表 * 查询${functionName}列表
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") // @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')")
@GetMapping("/list") @GetMapping("/list")
#if($table.crud || $table.sub) #if($table.crud || $table.sub)
public TableDataInfo list(${ClassName} ${className}) public TableDataInfo list(${ClassName} ${className})
...@@ -59,7 +59,7 @@ public class ${ClassName}Controller extends BaseController ...@@ -59,7 +59,7 @@ public class ${ClassName}Controller extends BaseController
/** /**
* 导出${functionName}列表 * 导出${functionName}列表
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
@Log(title = "${functionName}", businessType = BusinessType.EXPORT) @Log(title = "${functionName}", businessType = BusinessType.EXPORT)
@GetMapping("/export") @GetMapping("/export")
public AjaxResult export(${ClassName} ${className}) public AjaxResult export(${ClassName} ${className})
...@@ -72,7 +72,7 @@ public class ${ClassName}Controller extends BaseController ...@@ -72,7 +72,7 @@ public class ${ClassName}Controller extends BaseController
/** /**
* 获取${functionName}详细信息 * 获取${functionName}详细信息
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')")
@GetMapping(value = "/{${pkColumn.javaField}}") @GetMapping(value = "/{${pkColumn.javaField}}")
public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField})
{ {
...@@ -82,7 +82,7 @@ public class ${ClassName}Controller extends BaseController ...@@ -82,7 +82,7 @@ public class ${ClassName}Controller extends BaseController
/** /**
* 新增${functionName} * 新增${functionName}
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')")
@Log(title = "${functionName}", businessType = BusinessType.INSERT) @Log(title = "${functionName}", businessType = BusinessType.INSERT)
@PostMapping @PostMapping
public AjaxResult add(@RequestBody ${ClassName} ${className}) public AjaxResult add(@RequestBody ${ClassName} ${className})
...@@ -93,7 +93,7 @@ public class ${ClassName}Controller extends BaseController ...@@ -93,7 +93,7 @@ public class ${ClassName}Controller extends BaseController
/** /**
* 修改${functionName} * 修改${functionName}
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')")
@Log(title = "${functionName}", businessType = BusinessType.UPDATE) @Log(title = "${functionName}", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody ${ClassName} ${className}) public AjaxResult edit(@RequestBody ${ClassName} ${className})
...@@ -104,7 +104,7 @@ public class ${ClassName}Controller extends BaseController ...@@ -104,7 +104,7 @@ public class ${ClassName}Controller extends BaseController
/** /**
* 删除${functionName} * 删除${functionName}
*/ */
@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
@Log(title = "${functionName}", businessType = BusinessType.DELETE) @Log(title = "${functionName}", businessType = BusinessType.DELETE)
@DeleteMapping("/{${pkColumn.javaField}s}") @DeleteMapping("/{${pkColumn.javaField}s}")
public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s)
......
...@@ -71,6 +71,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service ...@@ -71,6 +71,9 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service
#if($column.javaField == 'createTime') #if($column.javaField == 'createTime')
${className}.setCreateTime(DateUtils.getNowDate()); ${className}.setCreateTime(DateUtils.getNowDate());
#end #end
#if($column.javaField == 'createId')
${className}.setCreateId(SecurityUtils.getLoginUser().getUser().getUserId());
#end
#end #end
#if($table.sub) #if($table.sub)
int rows = ${className}Mapper.insert${ClassName}(${className}); int rows = ${className}Mapper.insert${ClassName}(${className});
......
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="handleAdd" @click="handleAdd"
v-hasPermi="['${moduleName}:${businessName}:add']"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -88,7 +87,6 @@ ...@@ -88,7 +87,6 @@
size="mini" size="mini"
:disabled="single" :disabled="single"
@click="handleUpdate" @click="handleUpdate"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button> >修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -99,7 +97,6 @@ ...@@ -99,7 +97,6 @@
size="mini" size="mini"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
...@@ -110,7 +107,6 @@ ...@@ -110,7 +107,6 @@
size="mini" size="mini"
:loading="exportLoading" :loading="exportLoading"
@click="handleExport" @click="handleExport"
v-hasPermi="['${moduleName}:${businessName}:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
...@@ -147,14 +143,12 @@ ...@@ -147,14 +143,12 @@
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:edit']"
>修改</el-button> >修改</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleDelete(scope.row)" @click="handleDelete(scope.row)"
v-hasPermi="['${moduleName}:${businessName}:remove']"
>删除</el-button> >删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
...@@ -169,7 +163,7 @@ ...@@ -169,7 +163,7 @@
/> />
<!-- 添加或修改${functionName}对话框 --> <!-- 添加或修改${functionName}对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body destroy-on-close :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" label-width="80px">
#foreach($column in $columns) #foreach($column in $columns)
#set($field=$column.javaField) #set($field=$column.javaField)
...@@ -200,7 +194,7 @@ ...@@ -200,7 +194,7 @@
</el-form-item> </el-form-item>
#elseif($column.htmlType == "select" && "" != $dictType) #elseif($column.htmlType == "select" && "" != $dictType)
<el-form-item label="${comment}" prop="${field}"> <el-form-item label="${comment}" prop="${field}">
<el-select v-model="form.${field}" placeholder="请选择${comment}"> <el-select style="width: 100%" v-model="form.${field}" placeholder="请选择${comment}">
<el-option <el-option
v-for="dict in ${field}Options" v-for="dict in ${field}Options"
:key="dict.dictValue" :key="dict.dictValue"
...@@ -212,7 +206,7 @@ ...@@ -212,7 +206,7 @@
</el-form-item> </el-form-item>
#elseif($column.htmlType == "select" && $dictType) #elseif($column.htmlType == "select" && $dictType)
<el-form-item label="${comment}" prop="${field}"> <el-form-item label="${comment}" prop="${field}">
<el-select v-model="form.${field}" placeholder="请选择${comment}"> <el-select style="width: 100%" v-model="form.${field}" placeholder="请选择${comment}">
<el-option label="请选择字典生成" value="" /> <el-option label="请选择字典生成" value="" />
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -252,7 +246,7 @@ ...@@ -252,7 +246,7 @@
</el-form-item> </el-form-item>
#elseif($column.htmlType == "datetime") #elseif($column.htmlType == "datetime")
<el-form-item label="${comment}" prop="${field}"> <el-form-item label="${comment}" prop="${field}">
<el-date-picker clearable size="small" <el-date-picker style="width: 100%" clearable size="small"
v-model="form.${field}" v-model="form.${field}"
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
...@@ -261,7 +255,7 @@ ...@@ -261,7 +255,7 @@
</el-form-item> </el-form-item>
#elseif($column.htmlType == "textarea") #elseif($column.htmlType == "textarea")
<el-form-item label="${comment}" prop="${field}"> <el-form-item label="${comment}" prop="${field}">
<el-input v-model="form.${field}" type="textarea" placeholder="请输入内容" /> <el-input v-model="form.${field}" :autosize="{ minRows: 3 }" type="textarea" placeholder="请输入内容" />
</el-form-item> </el-form-item>
#end #end
#end #end
...@@ -318,7 +312,7 @@ import ImageUpload from '@/components/ImageUpload'; ...@@ -318,7 +312,7 @@ import ImageUpload from '@/components/ImageUpload';
#end #end
#foreach($column in $columns) #foreach($column in $columns)
#if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload") #if($column.insert && !$column.superColumn && !$column.pk && $column.htmlType == "fileUpload")
import FileUpload from '@/components/FileUpload'; import FileUpload from '@/components/DefaultFileUpload';
#break #break
#end #end
#end #end
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size; import javax.validation.constraints.Size;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
......
package com.zehong.system.domain; package com.zehong.system.domain.system;
import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle; import org.apache.commons.lang3.builder.ToStringStyle;
......
package com.zehong.system.domain.track;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;
/**
* 图纸对象 t_product_drawing
*
* @author zehong
* @date 2024-08-21
*/
public class TProductDrawing extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long id;
/** 图纸名称 */
@Excel(name = "图纸名称")
private String title;
/** 图纸编号 */
@Excel(name = "图纸编号")
private String drawingNo;
/** 图纸型号 */
@Excel(name = "图纸型号")
private String model;
/** 版本号 */
@Excel(name = "版本号")
private String version;
/** 图纸分类(数据字典) */
@Excel(name = "图纸分类", dictType = "t_draw_type")
private String cateId;
/** 图纸描述 */
@Excel(name = "图纸描述")
private String content;
/** 图纸来源 */
@Excel(name = "图纸来源")
private String source;
/** 图纸附件 */
@Excel(name = "图纸附件")
private String fileUrl;
/** $column.columnComment */
private Long createId;
/** 删除状态:0否,1是 */
private String isDel;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setDrawingNo(String drawingNo)
{
this.drawingNo = drawingNo;
}
public String getDrawingNo()
{
return drawingNo;
}
public void setModel(String model)
{
this.model = model;
}
public String getModel()
{
return model;
}
public void setVersion(String version)
{
this.version = version;
}
public String getVersion()
{
return version;
}
public void setCateId(String cateId)
{
this.cateId = cateId;
}
public String getCateId()
{
return cateId;
}
public void setContent(String content)
{
this.content = content;
}
public String getContent()
{
return content;
}
public void setSource(String source)
{
this.source = source;
}
public String getSource()
{
return source;
}
public void setFileUrl(String fileUrl)
{
this.fileUrl = fileUrl;
}
public String getFileUrl()
{
return fileUrl;
}
public void setCreateId(Long createId)
{
this.createId = createId;
}
public Long getCreateId()
{
return createId;
}
public String getIsDel() {
return isDel;
}
public void setIsDel(String isDel) {
this.isDel = isDel;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("drawingNo", getDrawingNo())
.append("model", getModel())
.append("version", getVersion())
.append("cateId", getCateId())
.append("content", getContent())
.append("source", getSource())
.append("fileUrl", getFileUrl())
.append("createTime", getCreateTime())
.append("createId", getCreateId())
.toString();
}
}
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysConfig; import com.zehong.system.domain.system.SysConfig;
/** /**
* 参数配置 数据层 * 参数配置 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysLogininfor; import com.zehong.system.domain.system.SysLogininfor;
/** /**
* 系统访问日志情况信息 数据层 * 系统访问日志情况信息 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysNotice; import com.zehong.system.domain.system.SysNotice;
/** /**
* 通知公告表 数据层 * 通知公告表 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysOperLog; import com.zehong.system.domain.system.SysOperLog;
/** /**
* 操作日志 数据层 * 操作日志 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysPost; import com.zehong.system.domain.system.SysPost;
/** /**
* 岗位信息 数据层 * 岗位信息 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysRoleDept; import com.zehong.system.domain.system.SysRoleDept;
/** /**
* 角色与部门关联表 数据层 * 角色与部门关联表 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.common.core.domain.entity.SysRole; import com.zehong.common.core.domain.entity.SysRole;
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysRoleMenu; import com.zehong.system.domain.system.SysRoleMenu;
/** /**
* 角色与菜单关联表 数据层 * 角色与菜单关联表 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysSetting; import com.zehong.system.domain.system.SysSetting;
/** /**
* 系统参数配置Mapper接口 * 系统参数配置Mapper接口
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysUserPost; import com.zehong.system.domain.system.SysUserPost;
/** /**
* 用户与岗位关联表 数据层 * 用户与岗位关联表 数据层
......
package com.zehong.system.mapper; package com.zehong.system.mapper.system;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import com.zehong.system.domain.SysUserRole; import com.zehong.system.domain.system.SysUserRole;
/** /**
* 用户与角色关联表 数据层 * 用户与角色关联表 数据层
......
package com.zehong.system.mapper.track;
import java.util.List;
import com.zehong.system.domain.track.TProductDrawing;
/**
* 图纸Mapper接口
*
* @author zehong
* @date 2024-08-21
*/
public interface TProductDrawingMapper
{
/**
* 查询图纸
*
* @param id 图纸ID
* @return 图纸
*/
public TProductDrawing selectTProductDrawingById(Long id);
/**
* 查询图纸列表
*
* @param tProductDrawing 图纸
* @return 图纸集合
*/
public List<TProductDrawing> selectTProductDrawingList(TProductDrawing tProductDrawing);
/**
* 新增图纸
*
* @param tProductDrawing 图纸
* @return 结果
*/
public int insertTProductDrawing(TProductDrawing tProductDrawing);
/**
* 修改图纸
*
* @param tProductDrawing 图纸
* @return 结果
*/
public int updateTProductDrawing(TProductDrawing tProductDrawing);
/**
* 删除图纸
*
* @param id 图纸ID
* @return 结果
*/
public int deleteTProductDrawingById(Long id);
/**
* 批量删除图纸
*
* @param ids 需要删除的数据ID
* @return 结果
*/
public int deleteTProductDrawingByIds(Long[] ids);
}
...@@ -2,11 +2,11 @@ package com.zehong.system.service.impl.baseinfo; ...@@ -2,11 +2,11 @@ package com.zehong.system.service.impl.baseinfo;
import com.zehong.common.utils.DateUtils; import com.zehong.common.utils.DateUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.SysUserRole; import com.zehong.system.domain.system.SysUserRole;
import com.zehong.system.domain.baseinfo.TStaff; import com.zehong.system.domain.baseinfo.TStaff;
import com.zehong.system.domain.form.TStaffForm; import com.zehong.system.domain.form.TStaffForm;
import com.zehong.system.domain.vo.TStaffVo; import com.zehong.system.domain.vo.TStaffVo;
import com.zehong.system.mapper.SysUserRoleMapper; import com.zehong.system.mapper.system.SysUserRoleMapper;
import com.zehong.system.mapper.baseinfo.TStaffMapper; import com.zehong.system.mapper.baseinfo.TStaffMapper;
import com.zehong.system.service.baseinfo.ITStaffService; import com.zehong.system.service.baseinfo.ITStaffService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
...@@ -13,9 +13,9 @@ import com.zehong.common.core.text.Convert; ...@@ -13,9 +13,9 @@ import com.zehong.common.core.text.Convert;
import com.zehong.common.enums.DataSourceType; import com.zehong.common.enums.DataSourceType;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.SysConfig; import com.zehong.system.domain.system.SysConfig;
import com.zehong.system.mapper.SysConfigMapper; import com.zehong.system.mapper.system.SysConfigMapper;
import com.zehong.system.service.ISysConfigService; import com.zehong.system.service.system.ISysConfigService;
/** /**
* 参数配置 服务层实现 * 参数配置 服务层实现
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Iterator; import java.util.Iterator;
...@@ -13,9 +13,9 @@ import com.zehong.common.core.domain.entity.SysDept; ...@@ -13,9 +13,9 @@ import com.zehong.common.core.domain.entity.SysDept;
import com.zehong.common.core.domain.entity.SysRole; import com.zehong.common.core.domain.entity.SysRole;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.mapper.SysDeptMapper; import com.zehong.system.mapper.system.SysDeptMapper;
import com.zehong.system.mapper.SysRoleMapper; import com.zehong.system.mapper.system.SysRoleMapper;
import com.zehong.system.service.ISysDeptService; import com.zehong.system.service.system.ISysDeptService;
/** /**
* 部门管理 服务实现 * 部门管理 服务实现
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.common.core.domain.entity.SysDictData; import com.zehong.common.core.domain.entity.SysDictData;
import com.zehong.common.utils.DictUtils; import com.zehong.common.utils.DictUtils;
import com.zehong.system.mapper.SysDictDataMapper; import com.zehong.system.mapper.system.SysDictDataMapper;
import com.zehong.system.service.ISysDictDataService; import com.zehong.system.service.system.ISysDictDataService;
/** /**
* 字典 业务层处理 * 字典 业务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
...@@ -11,9 +11,9 @@ import com.zehong.common.core.domain.entity.SysDictType; ...@@ -11,9 +11,9 @@ import com.zehong.common.core.domain.entity.SysDictType;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.DictUtils; import com.zehong.common.utils.DictUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.mapper.SysDictDataMapper; import com.zehong.system.mapper.system.SysDictDataMapper;
import com.zehong.system.mapper.SysDictTypeMapper; import com.zehong.system.mapper.system.SysDictTypeMapper;
import com.zehong.system.service.ISysDictTypeService; import com.zehong.system.service.system.ISysDictTypeService;
/** /**
* 字典 业务层处理 * 字典 业务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.system.domain.SysLogininfor; import com.zehong.system.domain.system.SysLogininfor;
import com.zehong.system.mapper.SysLogininforMapper; import com.zehong.system.mapper.system.SysLogininforMapper;
import com.zehong.system.service.ISysLogininforService; import com.zehong.system.service.system.ISysLogininforService;
/** /**
* 系统访问日志情况信息 服务层处理 * 系统访问日志情况信息 服务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
...@@ -19,10 +19,10 @@ import com.zehong.common.utils.SecurityUtils; ...@@ -19,10 +19,10 @@ import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.vo.MetaVo; import com.zehong.system.domain.vo.MetaVo;
import com.zehong.system.domain.vo.RouterVo; import com.zehong.system.domain.vo.RouterVo;
import com.zehong.system.mapper.SysMenuMapper; import com.zehong.system.mapper.system.SysMenuMapper;
import com.zehong.system.mapper.SysRoleMapper; import com.zehong.system.mapper.system.SysRoleMapper;
import com.zehong.system.mapper.SysRoleMenuMapper; import com.zehong.system.mapper.system.SysRoleMenuMapper;
import com.zehong.system.service.ISysMenuService; import com.zehong.system.service.system.ISysMenuService;
/** /**
* 菜单 业务层处理 * 菜单 业务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.system.domain.SysNotice; import com.zehong.system.domain.system.SysNotice;
import com.zehong.system.mapper.SysNoticeMapper; import com.zehong.system.mapper.system.SysNoticeMapper;
import com.zehong.system.service.ISysNoticeService; import com.zehong.system.service.system.ISysNoticeService;
/** /**
* 公告 服务层实现 * 公告 服务层实现
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.system.domain.SysOperLog; import com.zehong.system.domain.system.SysOperLog;
import com.zehong.system.mapper.SysOperLogMapper; import com.zehong.system.mapper.system.SysOperLogMapper;
import com.zehong.system.service.ISysOperLogService; import com.zehong.system.service.system.ISysOperLogService;
/** /**
* 操作日志 服务层处理 * 操作日志 服务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -6,10 +6,10 @@ import org.springframework.stereotype.Service; ...@@ -6,10 +6,10 @@ import org.springframework.stereotype.Service;
import com.zehong.common.constant.UserConstants; import com.zehong.common.constant.UserConstants;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.SysPost; import com.zehong.system.domain.system.SysPost;
import com.zehong.system.mapper.SysPostMapper; import com.zehong.system.mapper.system.SysPostMapper;
import com.zehong.system.mapper.SysUserPostMapper; import com.zehong.system.mapper.system.SysUserPostMapper;
import com.zehong.system.service.ISysPostService; import com.zehong.system.service.system.ISysPostService;
/** /**
* 岗位信息 服务层处理 * 岗位信息 服务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
...@@ -14,13 +14,13 @@ import com.zehong.common.core.domain.entity.SysRole; ...@@ -14,13 +14,13 @@ import com.zehong.common.core.domain.entity.SysRole;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.common.utils.spring.SpringUtils; import com.zehong.common.utils.spring.SpringUtils;
import com.zehong.system.domain.SysRoleDept; import com.zehong.system.domain.system.SysRoleDept;
import com.zehong.system.domain.SysRoleMenu; import com.zehong.system.domain.system.SysRoleMenu;
import com.zehong.system.mapper.SysRoleDeptMapper; import com.zehong.system.mapper.system.SysRoleDeptMapper;
import com.zehong.system.mapper.SysRoleMapper; import com.zehong.system.mapper.system.SysRoleMapper;
import com.zehong.system.mapper.SysRoleMenuMapper; import com.zehong.system.mapper.system.SysRoleMenuMapper;
import com.zehong.system.mapper.SysUserRoleMapper; import com.zehong.system.mapper.system.SysUserRoleMapper;
import com.zehong.system.service.ISysRoleService; import com.zehong.system.service.system.ISysRoleService;
/** /**
* 角色 业务层处理 * 角色 业务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.List; import java.util.List;
import com.zehong.common.utils.DateUtils; import com.zehong.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.system.mapper.SysSettingMapper; import com.zehong.system.mapper.system.SysSettingMapper;
import com.zehong.system.domain.SysSetting; import com.zehong.system.domain.system.SysSetting;
import com.zehong.system.service.ISysSettingService; import com.zehong.system.service.system.ISysSettingService;
/** /**
* 系统参数配置Service业务层处理 * 系统参数配置Service业务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.zehong.common.core.domain.model.LoginUser; import com.zehong.common.core.domain.model.LoginUser;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.SysUserOnline; import com.zehong.system.domain.system.SysUserOnline;
import com.zehong.system.service.ISysUserOnlineService; import com.zehong.system.service.system.ISysUserOnlineService;
/** /**
* 在线用户 服务层处理 * 在线用户 服务层处理
......
package com.zehong.system.service.impl; package com.zehong.system.service.impl.system;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
...@@ -14,16 +14,16 @@ import com.zehong.common.core.domain.entity.SysUser; ...@@ -14,16 +14,16 @@ import com.zehong.common.core.domain.entity.SysUser;
import com.zehong.common.exception.CustomException; import com.zehong.common.exception.CustomException;
import com.zehong.common.utils.SecurityUtils; import com.zehong.common.utils.SecurityUtils;
import com.zehong.common.utils.StringUtils; import com.zehong.common.utils.StringUtils;
import com.zehong.system.domain.SysPost; import com.zehong.system.domain.system.SysPost;
import com.zehong.system.domain.SysUserPost; import com.zehong.system.domain.system.SysUserPost;
import com.zehong.system.domain.SysUserRole; import com.zehong.system.domain.system.SysUserRole;
import com.zehong.system.mapper.SysPostMapper; import com.zehong.system.mapper.system.SysPostMapper;
import com.zehong.system.mapper.SysRoleMapper; import com.zehong.system.mapper.system.SysRoleMapper;
import com.zehong.system.mapper.SysUserMapper; import com.zehong.system.mapper.system.SysUserMapper;
import com.zehong.system.mapper.SysUserPostMapper; import com.zehong.system.mapper.system.SysUserPostMapper;
import com.zehong.system.mapper.SysUserRoleMapper; import com.zehong.system.mapper.system.SysUserRoleMapper;
import com.zehong.system.service.ISysConfigService; import com.zehong.system.service.system.ISysConfigService;
import com.zehong.system.service.ISysUserService; import com.zehong.system.service.system.ISysUserService;
/** /**
* 用户 业务层处理 * 用户 业务层处理
......
package com.zehong.system.service.impl.track;
import java.util.List;
import com.zehong.common.utils.DateUtils;
import com.zehong.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zehong.system.mapper.track.TProductDrawingMapper;
import com.zehong.system.domain.track.TProductDrawing;
import com.zehong.system.service.track.ITProductDrawingService;
/**
* 图纸Service业务层处理
*
* @author zehong
* @date 2024-08-21
*/
@Service
public class TProductDrawingServiceImpl implements ITProductDrawingService
{
@Autowired
private TProductDrawingMapper tProductDrawingMapper;
/**
* 查询图纸
*
* @param id 图纸ID
* @return 图纸
*/
@Override
public TProductDrawing selectTProductDrawingById(Long id)
{
return tProductDrawingMapper.selectTProductDrawingById(id);
}
/**
* 查询图纸列表
*
* @param tProductDrawing 图纸
* @return 图纸
*/
@Override
public List<TProductDrawing> selectTProductDrawingList(TProductDrawing tProductDrawing)
{
return tProductDrawingMapper.selectTProductDrawingList(tProductDrawing);
}
/**
* 新增图纸
*
* @param tProductDrawing 图纸
* @return 结果
*/
@Override
public int insertTProductDrawing(TProductDrawing tProductDrawing)
{
tProductDrawing.setCreateId(SecurityUtils.getLoginUser().getUser().getUserId());
tProductDrawing.setCreateTime(DateUtils.getNowDate());
return tProductDrawingMapper.insertTProductDrawing(tProductDrawing);
}
/**
* 修改图纸
*
* @param tProductDrawing 图纸
* @return 结果
*/
@Override
public int updateTProductDrawing(TProductDrawing tProductDrawing)
{
return tProductDrawingMapper.updateTProductDrawing(tProductDrawing);
}
/**
* 批量删除图纸
*
* @param ids 需要删除的图纸ID
* @return 结果
*/
@Override
public int deleteTProductDrawingByIds(Long[] ids)
{
return tProductDrawingMapper.deleteTProductDrawingByIds(ids);
}
/**
* 删除图纸信息
*
* @param id 图纸ID
* @return 结果
*/
@Override
public int deleteTProductDrawingById(Long id)
{
return tProductDrawingMapper.deleteTProductDrawingById(id);
}
}
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysConfig; import com.zehong.system.domain.system.SysConfig;
/** /**
* 参数配置 服务层 * 参数配置 服务层
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.common.core.domain.TreeSelect; import com.zehong.common.core.domain.TreeSelect;
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.common.core.domain.entity.SysDictData; import com.zehong.common.core.domain.entity.SysDictData;
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.common.core.domain.entity.SysDictData; import com.zehong.common.core.domain.entity.SysDictData;
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysLogininfor; import com.zehong.system.domain.system.SysLogininfor;
/** /**
* 系统访问日志情况信息 服务层 * 系统访问日志情况信息 服务层
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysNotice; import com.zehong.system.domain.system.SysNotice;
/** /**
* 公告 服务层 * 公告 服务层
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysOperLog; import com.zehong.system.domain.system.SysOperLog;
/** /**
* 操作日志 服务层 * 操作日志 服务层
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysPost; import com.zehong.system.domain.system.SysPost;
/** /**
* 岗位信息 服务层 * 岗位信息 服务层
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.system.domain.SysSetting; import com.zehong.system.domain.system.SysSetting;
/** /**
* 系统参数配置Service接口 * 系统参数配置Service接口
......
package com.zehong.system.service; package com.zehong.system.service.system;
import com.zehong.common.core.domain.model.LoginUser; import com.zehong.common.core.domain.model.LoginUser;
import com.zehong.system.domain.SysUserOnline; import com.zehong.system.domain.system.SysUserOnline;
/** /**
* 在线用户 服务层 * 在线用户 服务层
......
package com.zehong.system.service; package com.zehong.system.service.system;
import java.util.List; import java.util.List;
import com.zehong.common.core.domain.entity.SysUser; import com.zehong.common.core.domain.entity.SysUser;
......
package com.zehong.system.service.track;
import java.util.List;
import com.zehong.system.domain.track.TProductDrawing;
/**
* 图纸Service接口
*
* @author zehong
* @date 2024-08-21
*/
public interface ITProductDrawingService
{
/**
* 查询图纸
*
* @param id 图纸ID
* @return 图纸
*/
public TProductDrawing selectTProductDrawingById(Long id);
/**
* 查询图纸列表
*
* @param tProductDrawing 图纸
* @return 图纸集合
*/
public List<TProductDrawing> selectTProductDrawingList(TProductDrawing tProductDrawing);
/**
* 新增图纸
*
* @param tProductDrawing 图纸
* @return 结果
*/
public int insertTProductDrawing(TProductDrawing tProductDrawing);
/**
* 修改图纸
*
* @param tProductDrawing 图纸
* @return 结果
*/
public int updateTProductDrawing(TProductDrawing tProductDrawing);
/**
* 批量删除图纸
*
* @param ids 需要删除的图纸ID
* @return 结果
*/
public int deleteTProductDrawingByIds(Long[] ids);
/**
* 删除图纸信息
*
* @param id 图纸ID
* @return 结果
*/
public int deleteTProductDrawingById(Long id);
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysConfigMapper"> <mapper namespace="com.zehong.system.mapper.system.SysConfigMapper">
<resultMap type="SysConfig" id="SysConfigResult"> <resultMap type="SysConfig" id="SysConfigResult">
<id property="configId" column="config_id" /> <id property="configId" column="config_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysDeptMapper"> <mapper namespace="com.zehong.system.mapper.system.SysDeptMapper">
<resultMap type="SysDept" id="SysDeptResult"> <resultMap type="SysDept" id="SysDeptResult">
<id property="deptId" column="dept_id" /> <id property="deptId" column="dept_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysDictDataMapper"> <mapper namespace="com.zehong.system.mapper.system.SysDictDataMapper">
<resultMap type="SysDictData" id="SysDictDataResult"> <resultMap type="SysDictData" id="SysDictDataResult">
<id property="dictCode" column="dict_code" /> <id property="dictCode" column="dict_code" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysDictTypeMapper"> <mapper namespace="com.zehong.system.mapper.system.SysDictTypeMapper">
<resultMap type="SysDictType" id="SysDictTypeResult"> <resultMap type="SysDictType" id="SysDictTypeResult">
<id property="dictId" column="dict_id" /> <id property="dictId" column="dict_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysLogininforMapper"> <mapper namespace="com.zehong.system.mapper.system.SysLogininforMapper">
<resultMap type="SysLogininfor" id="SysLogininforResult"> <resultMap type="SysLogininfor" id="SysLogininforResult">
<id property="infoId" column="info_id" /> <id property="infoId" column="info_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysMenuMapper"> <mapper namespace="com.zehong.system.mapper.system.SysMenuMapper">
<resultMap type="SysMenu" id="SysMenuResult"> <resultMap type="SysMenu" id="SysMenuResult">
<id property="menuId" column="menu_id" /> <id property="menuId" column="menu_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysNoticeMapper"> <mapper namespace="com.zehong.system.mapper.system.SysNoticeMapper">
<resultMap type="SysNotice" id="SysNoticeResult"> <resultMap type="SysNotice" id="SysNoticeResult">
<result property="noticeId" column="notice_id" /> <result property="noticeId" column="notice_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysOperLogMapper"> <mapper namespace="com.zehong.system.mapper.system.SysOperLogMapper">
<resultMap type="SysOperLog" id="SysOperLogResult"> <resultMap type="SysOperLog" id="SysOperLogResult">
<id property="operId" column="oper_id" /> <id property="operId" column="oper_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysPostMapper"> <mapper namespace="com.zehong.system.mapper.system.SysPostMapper">
<resultMap type="SysPost" id="SysPostResult"> <resultMap type="SysPost" id="SysPostResult">
<id property="postId" column="post_id" /> <id property="postId" column="post_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysRoleDeptMapper"> <mapper namespace="com.zehong.system.mapper.system.SysRoleDeptMapper">
<resultMap type="SysRoleDept" id="SysRoleDeptResult"> <resultMap type="SysRoleDept" id="SysRoleDeptResult">
<result property="roleId" column="role_id" /> <result property="roleId" column="role_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysRoleMapper"> <mapper namespace="com.zehong.system.mapper.system.SysRoleMapper">
<resultMap type="SysRole" id="SysRoleResult"> <resultMap type="SysRole" id="SysRoleResult">
<id property="roleId" column="role_id" /> <id property="roleId" column="role_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysRoleMenuMapper"> <mapper namespace="com.zehong.system.mapper.system.SysRoleMenuMapper">
<resultMap type="SysRoleMenu" id="SysRoleMenuResult"> <resultMap type="SysRoleMenu" id="SysRoleMenuResult">
<result property="roleId" column="role_id" /> <result property="roleId" column="role_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysSettingMapper"> <mapper namespace="com.zehong.system.mapper.system.SysSettingMapper">
<resultMap type="SysSetting" id="SysSettingResult"> <resultMap type="SysSetting" id="SysSettingResult">
<result property="systemId" column="system_id" /> <result property="systemId" column="system_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysUserMapper"> <mapper namespace="com.zehong.system.mapper.system.SysUserMapper">
<resultMap type="SysUser" id="SysUserResult"> <resultMap type="SysUser" id="SysUserResult">
<id property="userId" column="user_id" /> <id property="userId" column="user_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysUserPostMapper"> <mapper namespace="com.zehong.system.mapper.system.SysUserPostMapper">
<resultMap type="SysUserPost" id="SysUserPostResult"> <resultMap type="SysUserPost" id="SysUserPostResult">
<result property="userId" column="user_id" /> <result property="userId" column="user_id" />
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.SysUserRoleMapper"> <mapper namespace="com.zehong.system.mapper.system.SysUserRoleMapper">
<resultMap type="SysUserRole" id="SysUserRoleResult"> <resultMap type="SysUserRole" id="SysUserRoleResult">
<result property="userId" column="user_id" /> <result property="userId" column="user_id" />
......
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zehong.system.mapper.track.TProductDrawingMapper">
<resultMap type="TProductDrawing" id="TProductDrawingResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="drawingNo" column="drawing_no" />
<result property="model" column="model" />
<result property="version" column="version" />
<result property="cateId" column="cate_id" />
<result property="content" column="content" />
<result property="source" column="source" />
<result property="fileUrl" column="file_url" />
<result property="createTime" column="create_time" />
<result property="createId" column="create_id" />
<result property="isDel" column="is_del" />
</resultMap>
<sql id="selectTProductDrawingVo">
select id, title, drawing_no, model, version, cate_id, content, source, file_url, create_time, create_id from t_product_drawing
</sql>
<select id="selectTProductDrawingList" parameterType="TProductDrawing" resultMap="TProductDrawingResult">
<include refid="selectTProductDrawingVo"/>
<where>
<if test="title != null and title != ''"> and title like concat('%', #{title}, '%')</if>
<if test="drawingNo != null and drawingNo != ''"> and drawing_no like concat('%', #{drawingNo}, '%')</if>
<if test="model != null and model != ''"> and model = #{model}</if>
<if test="version != null and version != ''"> and version = #{version}</if>
<if test="cateId != null and cateId != ''"> and cate_id = #{cateId}</if>
<if test="content != null and content != ''"> and content = #{content}</if>
<if test="source != null and source != ''"> and source = #{source}</if>
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
<if test="createId != null "> and create_id = #{createId}</if>
<if test="isDel != null and isDel != ''"> and is_del = #{isDel}</if>
and is_del = '0'
</where>
order by create_time desc
</select>
<select id="selectTProductDrawingById" parameterType="Long" resultMap="TProductDrawingResult">
<include refid="selectTProductDrawingVo"/>
where id = #{id}
</select>
<insert id="insertTProductDrawing" parameterType="TProductDrawing" useGeneratedKeys="true" keyProperty="id">
insert into t_product_drawing
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">title,</if>
<if test="drawingNo != null">drawing_no,</if>
<if test="model != null">model,</if>
<if test="version != null">version,</if>
<if test="cateId != null">cate_id,</if>
<if test="content != null">content,</if>
<if test="source != null">source,</if>
<if test="fileUrl != null">file_url,</if>
<if test="createTime != null">create_time,</if>
<if test="createId != null">create_id,</if>
<if test="isDel != null">is_del,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">#{title},</if>
<if test="drawingNo != null">#{drawingNo},</if>
<if test="model != null">#{model},</if>
<if test="version != null">#{version},</if>
<if test="cateId != null">#{cateId},</if>
<if test="content != null">#{content},</if>
<if test="source != null">#{source},</if>
<if test="fileUrl != null">#{fileUrl},</if>
<if test="createTime != null">#{createTime},</if>
<if test="createId != null">#{createId},</if>
<if test="isDel != null">#{isDel},</if>
</trim>
</insert>
<update id="updateTProductDrawing" parameterType="TProductDrawing">
update t_product_drawing
<trim prefix="SET" suffixOverrides=",">
<if test="title != null">title = #{title},</if>
<if test="drawingNo != null">drawing_no = #{drawingNo},</if>
<if test="model != null">model = #{model},</if>
<if test="version != null">version = #{version},</if>
<if test="cateId != null">cate_id = #{cateId},</if>
<if test="content != null">content = #{content},</if>
<if test="source != null">source = #{source},</if>
<if test="fileUrl != null">file_url = #{fileUrl},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="createId != null">create_id = #{createId},</if>
<if test="isDel != null">is_del = #{isDel},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTProductDrawingById" parameterType="Long">
delete from t_product_drawing where id = #{id}
</delete>
<delete id="deleteTProductDrawingByIds" parameterType="String">
update t_product_drawing set is_del = '1' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
\ No newline at end of file
import request from '@/utils/request'
// 查询图纸列表
export function listDrawing(query) {
return request({
url: '/track/drawing/list',
method: 'get',
params: query
})
}
// 查询图纸详细
export function getDrawing(id) {
return request({
url: '/track/drawing/' + id,
method: 'get'
})
}
// 新增图纸
export function addDrawing(data) {
return request({
url: '/track/drawing',
method: 'post',
data: data
})
}
// 修改图纸
export function updateDrawing(data) {
return request({
url: '/track/drawing',
method: 'put',
data: data
})
}
// 删除图纸
export function delDrawing(id) {
return request({
url: '/track/drawing/' + id,
method: 'delete'
})
}
// 导出图纸
export function exportDrawing(query) {
return request({
url: '/track/drawing/export',
method: 'get',
params: query
})
}
<template>
<div class="upload-file">
<el-upload
:action="uploadFileUrl"
:before-upload="handleBeforeUpload"
:file-list="fileList"
:limit="1"
:on-error="handleUploadError"
:on-exceed="handleExceed"
:on-success="handleUploadSuccess"
:show-file-list="false"
:headers="headers"
class="upload-file-uploader"
ref="upload"
>
<!-- 上传按钮 -->
<el-button size="mini" type="primary">选取文件</el-button>
<!-- 上传提示 -->
<div class="el-upload__tip" slot="tip" v-if="showTip">
请上传
<template v-if="fileSize"> 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b> </template>
<template v-if="fileType"> 格式为 <b style="color: #f56c6c">{{ fileType.join("/") }}</b> </template>
的文件
</div>
</el-upload>
<!-- 文件列表 -->
<transition-group class="upload-file-list el-upload-list el-upload-list--text" name="el-fade-in-linear" tag="ul">
<li :key="file.uid" class="el-upload-list__item ele-upload-list__item-content" v-for="(file, index) in list">
<el-link :href="file.url" :underline="false" target="_blank">
<!--<span class="el-icon-document"> {{ getFileName(file.name) }} </span>-->
<span class="el-icon-document"> {{ file.fileName }} </span>
</el-link>
<div class="ele-upload-list__item-content-action">
<el-link :underline="false" @click="handleDelete(index)" type="danger">删除</el-link>
</div>
</li>
</transition-group>
</div>
</template>
<script>
import { getToken } from "@/utils/auth";
export default {
props: {
// 值
value: [String, Object, Array],
// 大小限制(MB)
fileSize: {
type: Number,
default: 50,
},
// 文件类型, 例如['png', 'jpg', 'jpeg']
fileType: {
type: Array,
default: () => ["doc", "xls", "ppt", "txt", "pdf"],
},
// 是否显示提示
isShowTip: {
type: Boolean,
default: true
}
},
data() {
return {
uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
headers: {
Authorization: "Bearer " + getToken(),
},
fileList: [],
};
},
computed: {
// 是否显示提示
showTip() {
return this.isShowTip && (this.fileType || this.fileSize);
},
// 列表
list() {
let temp = 1;
if (this.value) {
// 首先将值转为数组
const list = Array.isArray(this.value) ? this.value : [this.value];
// 然后将数组转为对象数组
return list.map((item) => {
if (typeof item === "string") {
//item = { name: item, url: item };
item = JSON.parse(item);
}
item.uid = item.uid || new Date().getTime() + temp++;
return item;
});
} else {
this.fileList = [];
return [];
}
},
},
methods: {
// 上传前校检格式和大小
handleBeforeUpload(file) {
// 校检文件类型
if (this.fileType) {
let fileExtension = "";
if (file.name.lastIndexOf(".") > -1) {
fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1);
}
const isTypeOk = this.fileType.some((type) => {
if (file.type.indexOf(type) > -1) return true;
if (fileExtension && fileExtension.indexOf(type) > -1) return true;
return false;
});
if (!isTypeOk) {
this.$message.error(`文件格式不正确, 请上传${this.fileType.join("/")}格式文件!`);
return false;
}
}
// 校检文件大小
if (this.fileSize) {
const isLt = file.size / 1024 / 1024 < this.fileSize;
if (!isLt) {
this.$message.error(`上传文件大小不能超过 ${this.fileSize} MB!`);
return false;
}
}
return true;
},
// 文件个数超出
handleExceed() {
this.$message.error(`只允许上传单个文件`);
},
// 上传失败
handleUploadError(err) {
this.$message.error("上传失败, 请重试");
},
// 上传成功回调
handleUploadSuccess(res, file) {
this.$message.success("上传成功");
this.$emit("input", JSON.stringify({fileName:res.fileName,url:res.url}));
},
// 删除文件
handleDelete(index) {
this.fileList.splice(index, 1);
this.$emit("input", '');
},
// 获取文件名称
getFileName(name) {
if (name.lastIndexOf("/") > -1) {
return name.slice(name.lastIndexOf("/") + 1).toLowerCase();
} else {
return "";
}
}
},
created() {
this.fileList = this.list;
},
};
</script>
<style scoped lang="scss">
.upload-file-uploader {
margin-bottom: 5px;
}
.upload-file-list .el-upload-list__item {
border: 1px solid #e4e7ed;
line-height: 2;
margin-bottom: 10px;
position: relative;
}
.upload-file-list .ele-upload-list__item-content {
display: flex;
justify-content: space-between;
align-items: center;
color: inherit;
}
.ele-upload-list__item-content-action .el-link {
margin-right: 10px;
}
</style>
<template>
<el-dialog title="详情" :visible.sync="detailOpen" width="800px" append-to-body destroy-on-close :close-on-click-modal="false">
<el-form label-width="90px">
<el-row class="el-row-table">
<el-col :span="12">
<el-form-item label="图纸名称">
<span v-if="detailInfo.title">{{ detailInfo.title }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸编号">
<span v-if="detailInfo.drawingNo">{{ detailInfo.drawingNo }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸型号">
<span v-if="detailInfo.model">{{ detailInfo.model }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="版本号">
<span v-if="detailInfo.version">{{ detailInfo.version }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸分类">
<span v-if="detailInfo.cateId">{{ $parent.cateIdFormat(detailInfo) }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸来源">
<span v-if="detailInfo.source">{{ detailInfo.source }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸描述">
<span v-if="detailInfo.content">{{ detailInfo.content }}</span>
<span v-else>-</span>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸附件">
<span v-if="detailInfo.fileUrl!=null && detailInfo.fileUrl != ''">
<a style="color: #1c84c6" :href="detailInfo.fileUrl" target="_blank">查看/下载</a>
</span>
<span v-else>-</span>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-dialog>
</template>
<script>
import { getDrawing } from "@/api/track/drawing";
export default {
name: "detail-info",
data(){
return{
detailOpen: false,
detailInfo: {}
}
},
methods:{
getDetailInfo(id){
getDrawing(id).then(res =>{
if(res.code == 200){
this.detailInfo = res.data;
this.detailOpen = true;
}
})
}
}
}
</script>
<style scoped>
</style>
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="图纸名称" prop="title">
<el-input
v-model="queryParams.title"
placeholder="请输入图纸名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="图纸编号" prop="drawingNo">
<el-input
v-model="queryParams.drawingNo"
placeholder="请输入图纸编号"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="图纸分类" prop="cateId">
<el-select v-model="queryParams.cateId" placeholder="请选择图纸分类" clearable size="small">
<el-option
v-for="dict in cateIdOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
:loading="exportLoading"
@click="handleExport"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="drawingList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="图纸名称" align="center" prop="title" />
<el-table-column label="图纸编号" align="center" prop="drawingNo" />
<el-table-column label="图纸型号" align="center" prop="model">
<template slot-scope="scope">
<span v-if="scope.row.source">{{ scope.row.source }}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="版本号" align="center" prop="version" />
<el-table-column label="图纸分类" align="center" prop="cateId" :formatter="cateIdFormat" />
<el-table-column label="图纸来源" align="center" prop="source">
<template slot-scope="scope">
<span v-if="scope.row.source">{{ scope.row.source }}</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="图纸附件" align="center" prop="fileUrl">
<template slot-scope="scope">
<span v-if="scope.row.fileUrl">
<a style="color: #1c84c6" :href="JSON.parse(scope.row.fileUrl).url" target="_blank">查看/下载</a>
</span>
<span v-else>-</span>
</template>
</el-table-column>
<el-table-column label="创建时间" align="center" prop="createTime" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-document"
@click="handleDetail(scope.row)"
>详情</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改图纸对话框 -->
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body destroy-on-close :close-on-click-modal="false">
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row class="el-row-table">
<el-col :span="12">
<el-form-item label="图纸名称" prop="title">
<el-input v-model="form.title" placeholder="请输入图纸名称" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸编号" prop="drawingNo">
<el-input v-model="form.drawingNo" placeholder="请输入图纸编号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸型号" prop="model">
<el-input v-model="form.model" placeholder="请输入图纸型号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="版本号" prop="version">
<el-input v-model="form.version" placeholder="请输入版本号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸分类" prop="cateId">
<el-select style="width: 100%" v-model="form.cateId" placeholder="请选择图纸分类">
<el-option
v-for="dict in cateIdOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="图纸来源" prop="source">
<el-input v-model="form.source" placeholder="请输入图纸来源" />
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="图纸描述" prop="content">
<el-input v-model="form.content" type="textarea" :autosize="{ minRows: 3 }" placeholder="请输入内容" />
</el-form-item>
</el-col>
<el-col :span="24">
<el-form-item label="图纸附件">
<fileUpload v-model="form.fileUrl"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
<el-button @click="cancel">取 消</el-button>
</div>
</el-dialog>
<!-- 详情 -->
<DetailInfo ref="detail"/>
</div>
</template>
<script>
import { listDrawing, getDrawing, delDrawing, addDrawing, updateDrawing, exportDrawing } from "@/api/track/drawing";
import FileUpload from '@/components/DefaultFileUpload';
import DetailInfo from './components/DetailInfo';
export default {
name: "Drawing",
components: {
FileUpload,
DetailInfo
},
data() {
return {
// 遮罩层
loading: true,
// 导出遮罩层
exportLoading: false,
// 选中数组
ids: [],
titles: [],
// 非单个禁用
single: true,
// 非多个禁用
multiple: true,
// 显示搜索条件
showSearch: true,
// 总条数
total: 0,
// 图纸表格数据
drawingList: [],
// 弹出层标题
title: "",
// 是否显示弹出层
open: false,
// 图纸分类字典
cateIdOptions: [],
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
title: null,
drawingNo: null,
cateId: null,
},
// 表单参数
form: {},
// 表单校验
rules: {
title: [
{ required: true, message: "图纸名称不能为空", trigger: "blur" }
],
drawingNo: [
{ required: true, message: "图纸编号不能为空", trigger: "blur" }
],
version: [
{ required: true, message: "版本号不能为空", trigger: "blur" }
],
cateId: [
{ required: true, message: "图纸分类不能为空", trigger: "change" }
],
}
};
},
created() {
this.getList();
this.getDicts("t_draw_type").then(response => {
this.cateIdOptions = response.data;
});
},
methods: {
/** 查询图纸列表 */
getList() {
this.loading = true;
listDrawing(this.queryParams).then(response => {
this.drawingList = response.rows;
this.total = response.total;
this.loading = false;
});
},
// 图纸分类字典翻译
cateIdFormat(row, column) {
return this.selectDictLabel(this.cateIdOptions, row.cateId);
},
// 取消按钮
cancel() {
this.open = false;
this.reset();
},
// 表单重置
reset() {
this.form = {
id: null,
title: null,
drawingNo: null,
model: null,
version: null,
cateId: null,
content: null,
source: null,
fileUrl: null,
createTime: null,
createId: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id);
this.titles = selection.map(item => item.title);
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加图纸";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getDrawing(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改图纸";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateDrawing(this.form).then(response => {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addDrawing(this.form).then(response => {
this.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
const titles = row.title || this.titles;
this.$confirm('是否确认删除图纸名称为"' + titles + '"的数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return delDrawing(ids);
}).then(() => {
this.getList();
this.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有图纸数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(() => {
this.exportLoading = true;
return exportDrawing(queryParams);
}).then(response => {
this.download(response.msg);
this.exportLoading = false;
}).catch(() => {});
},
//详情
handleDetail(row){
this.$refs.detail.getDetailInfo(row.id);
}
}
};
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment