app后端接口,生物安全查询修改
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -190,7 +190,7 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-ooxml-schemas</artifactId>
|
||||
<version>${poi.version}</version>
|
||||
<version>4.1.2</version>
|
||||
</dependency>
|
||||
|
||||
<!-- POI 相关依赖 -->
|
||||
|
||||
@@ -111,10 +111,12 @@ public class SecurityConfig
|
||||
.authorizeHttpRequests((requests) -> {
|
||||
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
|
||||
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
|
||||
requests.antMatchers("/login", "/register", "/captchaImage").permitAll()
|
||||
requests.antMatchers("/app/**").permitAll()
|
||||
.antMatchers("/login", "/register", "/captchaImage").permitAll()
|
||||
// 静态资源,可匿名访问
|
||||
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll()
|
||||
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()
|
||||
|
||||
// 除上面外的所有请求全部需要鉴权认证
|
||||
.anyRequest().authenticated();
|
||||
})
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zhyc.module.app.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zhyc.module.app.domain.AppErrorLog;
|
||||
import com.zhyc.module.app.service.IAppErrorLogService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.zhyc.common.annotation.Log;
|
||||
import com.zhyc.common.core.controller.BaseController;
|
||||
import com.zhyc.common.core.domain.AjaxResult;
|
||||
import com.zhyc.common.enums.BusinessType;
|
||||
|
||||
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||
import com.zhyc.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* App错误日志Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/app/error")
|
||||
public class AppErrorLogController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IAppErrorLogService appErrorLogService;
|
||||
|
||||
/**
|
||||
* 查询App错误日志列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:app:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(AppErrorLog appErrorLog)
|
||||
{
|
||||
startPage();
|
||||
List<AppErrorLog> list = appErrorLogService.selectAppErrorLogList(appErrorLog);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出App错误日志列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:app:export')")
|
||||
@Log(title = "App错误日志", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, AppErrorLog appErrorLog)
|
||||
{
|
||||
List<AppErrorLog> list = appErrorLogService.selectAppErrorLogList(appErrorLog);
|
||||
ExcelUtil<AppErrorLog> util = new ExcelUtil<AppErrorLog>(AppErrorLog.class);
|
||||
util.exportExcel(response, list, "App错误日志数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取App错误日志详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:app:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(appErrorLogService.selectAppErrorLogById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增App错误日志
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:app:add')")
|
||||
@Log(title = "App错误日志", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody AppErrorLog appErrorLog)
|
||||
{
|
||||
return toAjax(appErrorLogService.insertAppErrorLog(appErrorLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改App错误日志
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:app:edit')")
|
||||
@Log(title = "App错误日志", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody AppErrorLog appErrorLog)
|
||||
{
|
||||
return toAjax(appErrorLogService.updateAppErrorLog(appErrorLog));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除App错误日志
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:app:remove')")
|
||||
@Log(title = "App错误日志", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(appErrorLogService.deleteAppErrorLogByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zhyc.module.app.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.zhyc.module.app.domain.AppSettings;
|
||||
import com.zhyc.module.app.service.IAppSettingsService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
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.zhyc.common.annotation.Log;
|
||||
import com.zhyc.common.core.controller.BaseController;
|
||||
import com.zhyc.common.core.domain.AjaxResult;
|
||||
import com.zhyc.common.enums.BusinessType;
|
||||
|
||||
import com.zhyc.common.utils.poi.ExcelUtil;
|
||||
import com.zhyc.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 应用设置Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-20
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/app/settings")
|
||||
public class AppSettingsController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IAppSettingsService appSettingsService;
|
||||
|
||||
/**
|
||||
* 查询应用设置列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:settings:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(AppSettings appSettings)
|
||||
{
|
||||
startPage();
|
||||
List<AppSettings> list = appSettingsService.selectAppSettingsList(appSettings);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出应用设置列表
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:settings:export')")
|
||||
@Log(title = "应用设置", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, AppSettings appSettings)
|
||||
{
|
||||
List<AppSettings> list = appSettingsService.selectAppSettingsList(appSettings);
|
||||
ExcelUtil<AppSettings> util = new ExcelUtil<AppSettings>(AppSettings.class);
|
||||
util.exportExcel(response, list, "应用设置数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取应用设置详细信息
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:settings:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(appSettingsService.selectAppSettingsById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增应用设置
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:settings:add')")
|
||||
@Log(title = "应用设置", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody AppSettings appSettings)
|
||||
{
|
||||
return toAjax(appSettingsService.insertAppSettings(appSettings));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改应用设置
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:settings:edit')")
|
||||
@Log(title = "应用设置", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody AppSettings appSettings)
|
||||
{
|
||||
return toAjax(appSettingsService.updateAppSettings(appSettings));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除应用设置
|
||||
*/
|
||||
// @PreAuthorize("@ss.hasPermi('app:settings:remove')")
|
||||
@Log(title = "应用设置", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(appSettingsService.deleteAppSettingsByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.zhyc.module.app.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.zhyc.common.annotation.Excel;
|
||||
import com.zhyc.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* App错误日志对象 app_error_log
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-19
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class AppErrorLog extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID,自增 */
|
||||
private Long id;
|
||||
|
||||
/** 设备唯一标识 */
|
||||
@Excel(name = "设备唯一标识")
|
||||
private String deviceId;
|
||||
|
||||
/** 用户ID */
|
||||
@Excel(name = "用户ID")
|
||||
private Long userId;
|
||||
|
||||
/** App版本号 */
|
||||
@Excel(name = "App版本号")
|
||||
private String appVersion;
|
||||
|
||||
/** App版本号 */
|
||||
@Excel(name = "App版本号")
|
||||
private Long appCode;
|
||||
|
||||
/** 平台类型 */
|
||||
@Excel(name = "平台类型")
|
||||
private String platform;
|
||||
|
||||
/** 操作系统版本 */
|
||||
@Excel(name = "操作系统版本")
|
||||
private String osVersion;
|
||||
|
||||
/** 错误类型分类 */
|
||||
@Excel(name = "错误类型分类")
|
||||
private String errorType;
|
||||
|
||||
/** 错误代码 */
|
||||
@Excel(name = "错误代码")
|
||||
private String errorCode;
|
||||
|
||||
/** 错误描述信息 */
|
||||
@Excel(name = "错误描述信息")
|
||||
private String errorMessage;
|
||||
|
||||
/** 错误堆栈跟踪 */
|
||||
@Excel(name = "错误堆栈跟踪")
|
||||
private String stackTrace;
|
||||
|
||||
/** 页面路径 */
|
||||
@Excel(name = "页面路径")
|
||||
private String pageUrl;
|
||||
|
||||
/** API接口地址 */
|
||||
@Excel(name = "API接口地址")
|
||||
private String apiUrl;
|
||||
|
||||
/** API调用参数 */
|
||||
@Excel(name = "API调用参数")
|
||||
private String apiParams;
|
||||
|
||||
/** 网络类型 */
|
||||
@Excel(name = "网络类型")
|
||||
private String networkType;
|
||||
|
||||
/** 屏幕宽度 */
|
||||
@Excel(name = "屏幕宽度")
|
||||
private Long screenWidth;
|
||||
|
||||
/** 屏幕高度 */
|
||||
@Excel(name = "屏幕高度")
|
||||
private Long screenHeight;
|
||||
|
||||
/** 自定义扩展数据,JSON格式 */
|
||||
@Excel(name = "自定义扩展数据,JSON格式")
|
||||
private String customData;
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.zhyc.module.app.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.zhyc.common.annotation.Excel;
|
||||
import com.zhyc.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 应用设置对象 app_settings
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-20
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class AppSettings extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键ID */
|
||||
private Long id;
|
||||
|
||||
/** 用户ID,0为全局 */
|
||||
@Excel(name = "用户ID,0为全局")
|
||||
private Long userId;
|
||||
|
||||
/** 设置键名 */
|
||||
@Excel(name = "设置键名")
|
||||
private String settingKey;
|
||||
|
||||
/** 设置 */
|
||||
@Excel(name = "设置")
|
||||
private String settingValue;
|
||||
|
||||
/** 值类型 */
|
||||
@Excel(name = "值类型")
|
||||
private String settingType;
|
||||
|
||||
/** 设置分组 */
|
||||
@Excel(name = "设置分组")
|
||||
private String settingGroup;
|
||||
|
||||
/** 设置描述 */
|
||||
@Excel(name = "设置描述")
|
||||
private String settingDesc;
|
||||
|
||||
/** 适用平台 */
|
||||
@Excel(name = "适用平台")
|
||||
private String platform;
|
||||
|
||||
/** 适用版本范围 */
|
||||
@Excel(name = "适用版本范围")
|
||||
private String versionRange;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer status;
|
||||
|
||||
/** 逻辑位 */
|
||||
@Excel(name = "逻辑位")
|
||||
private Integer logical;
|
||||
|
||||
/** 自定义扩展数据,JSON格式 */
|
||||
@Excel(name = "自定义扩展数据,JSON格式")
|
||||
private String customData;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package com.zhyc.module.app.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.zhyc.module.app.domain.AppErrorLog;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* App错误日志Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-19
|
||||
*/
|
||||
@Mapper
|
||||
public interface AppErrorLogMapper
|
||||
{
|
||||
/**
|
||||
* 查询App错误日志
|
||||
*
|
||||
* @param id App错误日志主键
|
||||
* @return App错误日志
|
||||
*/
|
||||
public AppErrorLog selectAppErrorLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询App错误日志列表
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return App错误日志集合
|
||||
*/
|
||||
public List<AppErrorLog> selectAppErrorLogList(AppErrorLog appErrorLog);
|
||||
|
||||
/**
|
||||
* 新增App错误日志
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAppErrorLog(AppErrorLog appErrorLog);
|
||||
|
||||
/**
|
||||
* 修改App错误日志
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAppErrorLog(AppErrorLog appErrorLog);
|
||||
|
||||
/**
|
||||
* 删除App错误日志
|
||||
*
|
||||
* @param id App错误日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppErrorLogById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除App错误日志
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppErrorLogByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zhyc.module.app.mapper;
|
||||
|
||||
import com.zhyc.module.app.domain.AppSettings;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 应用设置Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-20
|
||||
*/
|
||||
public interface AppSettingsMapper
|
||||
{
|
||||
/**
|
||||
* 查询应用设置
|
||||
*
|
||||
* @param id 应用设置主键
|
||||
* @return 应用设置
|
||||
*/
|
||||
public AppSettings selectAppSettingsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询应用设置列表
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 应用设置集合
|
||||
*/
|
||||
public List<AppSettings> selectAppSettingsList(AppSettings appSettings);
|
||||
|
||||
/**
|
||||
* 新增应用设置
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAppSettings(AppSettings appSettings);
|
||||
|
||||
/**
|
||||
* 修改应用设置
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAppSettings(AppSettings appSettings);
|
||||
|
||||
/**
|
||||
* 删除应用设置
|
||||
*
|
||||
* @param id 应用设置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppSettingsById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除应用设置
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppSettingsByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zhyc.module.app.service;
|
||||
|
||||
import com.zhyc.module.app.domain.AppErrorLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* App错误日志Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-19
|
||||
*/
|
||||
public interface IAppErrorLogService
|
||||
{
|
||||
/**
|
||||
* 查询App错误日志
|
||||
*
|
||||
* @param id App错误日志主键
|
||||
* @return App错误日志
|
||||
*/
|
||||
public AppErrorLog selectAppErrorLogById(Long id);
|
||||
|
||||
/**
|
||||
* 查询App错误日志列表
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return App错误日志集合
|
||||
*/
|
||||
public List<AppErrorLog> selectAppErrorLogList(AppErrorLog appErrorLog);
|
||||
|
||||
/**
|
||||
* 新增App错误日志
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAppErrorLog(AppErrorLog appErrorLog);
|
||||
|
||||
/**
|
||||
* 修改App错误日志
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAppErrorLog(AppErrorLog appErrorLog);
|
||||
|
||||
/**
|
||||
* 批量删除App错误日志
|
||||
*
|
||||
* @param ids 需要删除的App错误日志主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppErrorLogByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除App错误日志信息
|
||||
*
|
||||
* @param id App错误日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppErrorLogById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.zhyc.module.app.service;
|
||||
|
||||
import com.zhyc.module.app.domain.AppSettings;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* 应用设置Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-20
|
||||
*/
|
||||
public interface IAppSettingsService
|
||||
{
|
||||
/**
|
||||
* 查询应用设置
|
||||
*
|
||||
* @param id 应用设置主键
|
||||
* @return 应用设置
|
||||
*/
|
||||
public AppSettings selectAppSettingsById(Long id);
|
||||
|
||||
/**
|
||||
* 查询应用设置列表
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 应用设置集合
|
||||
*/
|
||||
public List<AppSettings> selectAppSettingsList(AppSettings appSettings);
|
||||
|
||||
/**
|
||||
* 新增应用设置
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertAppSettings(AppSettings appSettings);
|
||||
|
||||
/**
|
||||
* 修改应用设置
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateAppSettings(AppSettings appSettings);
|
||||
|
||||
/**
|
||||
* 批量删除应用设置
|
||||
*
|
||||
* @param ids 需要删除的应用设置主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppSettingsByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除应用设置信息
|
||||
*
|
||||
* @param id 应用设置主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteAppSettingsById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.zhyc.module.app.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhyc.common.utils.DateUtils;
|
||||
import com.zhyc.module.app.domain.AppErrorLog;
|
||||
import com.zhyc.module.app.mapper.AppErrorLogMapper;
|
||||
import com.zhyc.module.app.service.IAppErrorLogService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* App错误日志Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-19
|
||||
*/
|
||||
@Service
|
||||
public class AppErrorLogServiceImpl implements IAppErrorLogService
|
||||
{
|
||||
@Autowired
|
||||
private AppErrorLogMapper appErrorLogMapper;
|
||||
|
||||
/**
|
||||
* 查询App错误日志
|
||||
*
|
||||
* @param id App错误日志主键
|
||||
* @return App错误日志
|
||||
*/
|
||||
@Override
|
||||
public AppErrorLog selectAppErrorLogById(Long id)
|
||||
{
|
||||
return appErrorLogMapper.selectAppErrorLogById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询App错误日志列表
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return App错误日志
|
||||
*/
|
||||
@Override
|
||||
public List<AppErrorLog> selectAppErrorLogList(AppErrorLog appErrorLog)
|
||||
{
|
||||
return appErrorLogMapper.selectAppErrorLogList(appErrorLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增App错误日志
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertAppErrorLog(AppErrorLog appErrorLog)
|
||||
{
|
||||
appErrorLog.setCreateTime(DateUtils.getNowDate());
|
||||
return appErrorLogMapper.insertAppErrorLog(appErrorLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改App错误日志
|
||||
*
|
||||
* @param appErrorLog App错误日志
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAppErrorLog(AppErrorLog appErrorLog)
|
||||
{
|
||||
return appErrorLogMapper.updateAppErrorLog(appErrorLog);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除App错误日志
|
||||
*
|
||||
* @param ids 需要删除的App错误日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAppErrorLogByIds(Long[] ids)
|
||||
{
|
||||
return appErrorLogMapper.deleteAppErrorLogByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除App错误日志信息
|
||||
*
|
||||
* @param id App错误日志主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAppErrorLogById(Long id)
|
||||
{
|
||||
return appErrorLogMapper.deleteAppErrorLogById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.zhyc.module.app.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.zhyc.common.utils.DateUtils;
|
||||
import com.zhyc.module.app.domain.AppSettings;
|
||||
import com.zhyc.module.app.mapper.AppSettingsMapper;
|
||||
import com.zhyc.module.app.service.IAppSettingsService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* 应用设置Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2026-01-20
|
||||
*/
|
||||
@Service
|
||||
public class AppSettingsServiceImpl implements IAppSettingsService
|
||||
{
|
||||
@Autowired
|
||||
private AppSettingsMapper appSettingsMapper;
|
||||
|
||||
/**
|
||||
* 查询应用设置
|
||||
*
|
||||
* @param id 应用设置主键
|
||||
* @return 应用设置
|
||||
*/
|
||||
@Override
|
||||
public AppSettings selectAppSettingsById(Long id)
|
||||
{
|
||||
return appSettingsMapper.selectAppSettingsById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询应用设置列表
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 应用设置
|
||||
*/
|
||||
@Override
|
||||
public List<AppSettings> selectAppSettingsList(AppSettings appSettings)
|
||||
{
|
||||
return appSettingsMapper.selectAppSettingsList(appSettings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增应用设置
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertAppSettings(AppSettings appSettings)
|
||||
{
|
||||
appSettings.setCreateTime(DateUtils.getNowDate());
|
||||
return appSettingsMapper.insertAppSettings(appSettings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改应用设置
|
||||
*
|
||||
* @param appSettings 应用设置
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateAppSettings(AppSettings appSettings)
|
||||
{
|
||||
appSettings.setUpdateTime(DateUtils.getNowDate());
|
||||
return appSettingsMapper.updateAppSettings(appSettings);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除应用设置
|
||||
*
|
||||
* @param ids 需要删除的应用设置主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAppSettingsByIds(Long[] ids)
|
||||
{
|
||||
return appSettingsMapper.deleteAppSettingsByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除应用设置信息
|
||||
*
|
||||
* @param id 应用设置主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteAppSettingsById(Long id)
|
||||
{
|
||||
return appSettingsMapper.deleteAppSettingsById(id);
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.zhyc.module.biosafety.service.impl;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import com.zhyc.common.utils.DateUtils;
|
||||
import com.zhyc.common.utils.SecurityUtils;
|
||||
@@ -61,13 +62,13 @@ public class DewormServiceImpl implements IDewormService
|
||||
{
|
||||
String[] sheepNos = null;
|
||||
if (deworm.getSheepNo() != null && !deworm.getSheepNo().isEmpty()) {
|
||||
if (deworm.getSheepNo().contains(",")) {
|
||||
sheepNos = deworm.getSheepNo().split(",");
|
||||
} else {
|
||||
sheepNos = new String[]{deworm.getSheepNo()};
|
||||
if (deworm.getSheepNo().contains(" ")) {
|
||||
sheepNos = deworm.getSheepNo().split(" ");
|
||||
deworm.setSheepNos(sheepNos);
|
||||
deworm.setSheepNo(null);
|
||||
}
|
||||
}
|
||||
deworm.setSheepNos(sheepNos);
|
||||
|
||||
return dewormMapper.selectDewormList(deworm);
|
||||
}
|
||||
|
||||
|
||||
@@ -64,10 +64,8 @@ public class DiagnosisServiceImpl implements IDiagnosisService
|
||||
{
|
||||
String[] sheepNos = null;
|
||||
if (diagnosis.getSheepNo() != null && !diagnosis.getSheepNo().isEmpty()) {
|
||||
if (diagnosis.getSheepNo().contains(",")) {
|
||||
sheepNos = diagnosis.getSheepNo().split(",");
|
||||
} else {
|
||||
sheepNos = new String[]{diagnosis.getSheepNo()};
|
||||
if (diagnosis.getSheepNo().contains(" ")) {
|
||||
sheepNos = diagnosis.getSheepNo().split(" ");
|
||||
}
|
||||
}
|
||||
diagnosis.setSheepNos(sheepNos);
|
||||
|
||||
@@ -66,10 +66,8 @@ public class HealthServiceImpl implements IHealthService
|
||||
{
|
||||
String[] sheepNos = null;
|
||||
if (health.getSheepNo() != null && !health.getSheepNo().isEmpty()) {
|
||||
if (health.getSheepNo().contains(",")) {
|
||||
sheepNos = health.getSheepNo().split(",");
|
||||
} else {
|
||||
sheepNos = new String[]{health.getSheepNo()};
|
||||
if (health.getSheepNo().contains(" ")) {
|
||||
sheepNos = health.getSheepNo().split(" ");
|
||||
}
|
||||
}
|
||||
health.setSheepNos(sheepNos);
|
||||
|
||||
@@ -65,10 +65,8 @@ public class ImmunityServiceImpl implements IImmunityService
|
||||
{
|
||||
String[] sheepNos = null;
|
||||
if (immunity.getSheepNo() != null && !immunity.getSheepNo().isEmpty()) {
|
||||
if (immunity.getSheepNo().contains(",")) {
|
||||
sheepNos = immunity.getSheepNo().split(",");
|
||||
} else {
|
||||
sheepNos = new String[]{immunity.getSheepNo()};
|
||||
if (immunity.getSheepNo().contains(" ")) {
|
||||
sheepNos = immunity.getSheepNo().split(" ");
|
||||
}
|
||||
}
|
||||
immunity.setSheepNos(sheepNos);
|
||||
|
||||
@@ -50,10 +50,8 @@ public class QuarantineReportServiceImpl implements IQuarantineReportService
|
||||
{
|
||||
String[] sheepNos = null;
|
||||
if (quarantineReport.getSheepNo() != null && !quarantineReport.getSheepNo().isEmpty()) {
|
||||
if (quarantineReport.getSheepNo().contains(",")) {
|
||||
sheepNos = quarantineReport.getSheepNo().split(",");
|
||||
} else {
|
||||
sheepNos = new String[]{quarantineReport.getSheepNo()};
|
||||
if (quarantineReport.getSheepNo().contains(" ")) {
|
||||
sheepNos = quarantineReport.getSheepNo().split(" ");
|
||||
}
|
||||
}
|
||||
quarantineReport.setSheepNos(sheepNos);
|
||||
|
||||
140
zhyc-module/src/main/resources/mapper/app/AppErrorLogMapper.xml
Normal file
140
zhyc-module/src/main/resources/mapper/app/AppErrorLogMapper.xml
Normal file
@@ -0,0 +1,140 @@
|
||||
<?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.zhyc.module.app.mapper.AppErrorLogMapper">
|
||||
|
||||
<resultMap type="AppErrorLog" id="AppErrorLogResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="deviceId" column="device_id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="appVersion" column="app_version" />
|
||||
<result property="appCode" column="app_code" />
|
||||
<result property="platform" column="platform" />
|
||||
<result property="osVersion" column="os_version" />
|
||||
<result property="errorType" column="error_type" />
|
||||
<result property="errorCode" column="error_code" />
|
||||
<result property="errorMessage" column="error_message" />
|
||||
<result property="stackTrace" column="stack_trace" />
|
||||
<result property="pageUrl" column="page_url" />
|
||||
<result property="apiUrl" column="api_url" />
|
||||
<result property="apiParams" column="api_params" />
|
||||
<result property="networkType" column="network_type" />
|
||||
<result property="screenWidth" column="screen_width" />
|
||||
<result property="screenHeight" column="screen_height" />
|
||||
<result property="customData" column="custom_data" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAppErrorLogVo">
|
||||
select id, device_id, user_id, app_version, app_code, platform, os_version, error_type, error_code, error_message, stack_trace, page_url, api_url, api_params, network_type, screen_width, screen_height, custom_data, create_time from app_error_log
|
||||
</sql>
|
||||
|
||||
<select id="selectAppErrorLogList" parameterType="AppErrorLog" resultMap="AppErrorLogResult">
|
||||
<include refid="selectAppErrorLogVo"/>
|
||||
<where>
|
||||
<if test="deviceId != null and deviceId != ''"> and device_id = #{deviceId}</if>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="appVersion != null and appVersion != ''"> and app_version = #{appVersion}</if>
|
||||
<if test="appCode != null "> and app_code = #{appCode}</if>
|
||||
<if test="platform != null and platform != ''"> and platform = #{platform}</if>
|
||||
<if test="osVersion != null and osVersion != ''"> and os_version = #{osVersion}</if>
|
||||
<if test="errorType != null and errorType != ''"> and error_type = #{errorType}</if>
|
||||
<if test="errorCode != null and errorCode != ''"> and error_code = #{errorCode}</if>
|
||||
<if test="errorMessage != null and errorMessage != ''"> and error_message = #{errorMessage}</if>
|
||||
<if test="stackTrace != null and stackTrace != ''"> and stack_trace = #{stackTrace}</if>
|
||||
<if test="pageUrl != null and pageUrl != ''"> and page_url = #{pageUrl}</if>
|
||||
<if test="apiUrl != null and apiUrl != ''"> and api_url = #{apiUrl}</if>
|
||||
<if test="apiParams != null and apiParams != ''"> and api_params = #{apiParams}</if>
|
||||
<if test="networkType != null and networkType != ''"> and network_type = #{networkType}</if>
|
||||
<if test="screenWidth != null "> and screen_width = #{screenWidth}</if>
|
||||
<if test="screenHeight != null "> and screen_height = #{screenHeight}</if>
|
||||
<if test="customData != null and customData != ''"> and custom_data = #{customData}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectAppErrorLogById" parameterType="Long" resultMap="AppErrorLogResult">
|
||||
<include refid="selectAppErrorLogVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAppErrorLog" parameterType="AppErrorLog" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into app_error_log
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id,</if>
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="appVersion != null and appVersion != ''">app_version,</if>
|
||||
<if test="appCode != null">app_code,</if>
|
||||
<if test="platform != null">platform,</if>
|
||||
<if test="osVersion != null">os_version,</if>
|
||||
<if test="errorType != null">error_type,</if>
|
||||
<if test="errorCode != null">error_code,</if>
|
||||
<if test="errorMessage != null">error_message,</if>
|
||||
<if test="stackTrace != null">stack_trace,</if>
|
||||
<if test="pageUrl != null">page_url,</if>
|
||||
<if test="apiUrl != null">api_url,</if>
|
||||
<if test="apiParams != null">api_params,</if>
|
||||
<if test="networkType != null">network_type,</if>
|
||||
<if test="screenWidth != null">screen_width,</if>
|
||||
<if test="screenHeight != null">screen_height,</if>
|
||||
<if test="customData != null">custom_data,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="deviceId != null">#{deviceId},</if>
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="appVersion != null and appVersion != ''">#{appVersion},</if>
|
||||
<if test="appCode != null">#{appCode},</if>
|
||||
<if test="platform != null">#{platform},</if>
|
||||
<if test="osVersion != null">#{osVersion},</if>
|
||||
<if test="errorType != null">#{errorType},</if>
|
||||
<if test="errorCode != null">#{errorCode},</if>
|
||||
<if test="errorMessage != null">#{errorMessage},</if>
|
||||
<if test="stackTrace != null">#{stackTrace},</if>
|
||||
<if test="pageUrl != null">#{pageUrl},</if>
|
||||
<if test="apiUrl != null">#{apiUrl},</if>
|
||||
<if test="apiParams != null">#{apiParams},</if>
|
||||
<if test="networkType != null">#{networkType},</if>
|
||||
<if test="screenWidth != null">#{screenWidth},</if>
|
||||
<if test="screenHeight != null">#{screenHeight},</if>
|
||||
<if test="customData != null">#{customData},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAppErrorLog" parameterType="AppErrorLog">
|
||||
update app_error_log
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="deviceId != null">device_id = #{deviceId},</if>
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="appVersion != null and appVersion != ''">app_version = #{appVersion},</if>
|
||||
<if test="appCode != null">app_code = #{appCode},</if>
|
||||
<if test="platform != null">platform = #{platform},</if>
|
||||
<if test="osVersion != null">os_version = #{osVersion},</if>
|
||||
<if test="errorType != null">error_type = #{errorType},</if>
|
||||
<if test="errorCode != null">error_code = #{errorCode},</if>
|
||||
<if test="errorMessage != null">error_message = #{errorMessage},</if>
|
||||
<if test="stackTrace != null">stack_trace = #{stackTrace},</if>
|
||||
<if test="pageUrl != null">page_url = #{pageUrl},</if>
|
||||
<if test="apiUrl != null">api_url = #{apiUrl},</if>
|
||||
<if test="apiParams != null">api_params = #{apiParams},</if>
|
||||
<if test="networkType != null">network_type = #{networkType},</if>
|
||||
<if test="screenWidth != null">screen_width = #{screenWidth},</if>
|
||||
<if test="screenHeight != null">screen_height = #{screenHeight},</if>
|
||||
<if test="customData != null">custom_data = #{customData},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAppErrorLogById" parameterType="Long">
|
||||
delete from app_error_log where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAppErrorLogByIds" parameterType="String">
|
||||
delete from app_error_log where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
114
zhyc-module/src/main/resources/mapper/app/AppSettingsMapper.xml
Normal file
114
zhyc-module/src/main/resources/mapper/app/AppSettingsMapper.xml
Normal file
@@ -0,0 +1,114 @@
|
||||
<?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.zhyc.module.app.mapper.AppSettingsMapper">
|
||||
|
||||
<resultMap type="com.zhyc.module.app.domain.AppSettings" id="AppSettingsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="settingKey" column="setting_key" />
|
||||
<result property="settingValue" column="setting_value" />
|
||||
<result property="settingType" column="setting_type" />
|
||||
<result property="settingGroup" column="setting_group" />
|
||||
<result property="settingDesc" column="setting_desc" />
|
||||
<result property="platform" column="platform" />
|
||||
<result property="versionRange" column="version_range" />
|
||||
<result property="status" column="status" />
|
||||
<result property="logical" column="logical" />
|
||||
<result property="customData" column="custom_data" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAppSettingsVo">
|
||||
select id, user_id, setting_key, setting_value, setting_type, setting_group, setting_desc, platform, version_range, status, logical, custom_data, create_time, update_time from app_settings
|
||||
</sql>
|
||||
|
||||
<select id="selectAppSettingsList" parameterType="AppSettings" resultMap="AppSettingsResult">
|
||||
<include refid="selectAppSettingsVo"/>
|
||||
<where>
|
||||
<if test="userId != null "> and user_id = #{userId}</if>
|
||||
<if test="settingKey != null and settingKey != ''"> and setting_key = #{settingKey}</if>
|
||||
<if test="settingValue != null and settingValue != ''"> and setting_value = #{settingValue}</if>
|
||||
<if test="settingType != null and settingType != ''"> and setting_type = #{settingType}</if>
|
||||
<if test="settingGroup != null and settingGroup != ''"> and setting_group = #{settingGroup}</if>
|
||||
<if test="settingDesc != null and settingDesc != ''"> and setting_desc = #{settingDesc}</if>
|
||||
<if test="platform != null and platform != ''"> and platform = #{platform}</if>
|
||||
<if test="versionRange != null and versionRange != ''"> and version_range = #{versionRange}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="logical != null "> and logical = #{logical}</if>
|
||||
<if test="customData != null and customData != ''"> and custom_data = #{customData}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectAppSettingsById" parameterType="Long" resultMap="AppSettingsResult">
|
||||
<include refid="selectAppSettingsVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAppSettings" parameterType="AppSettings" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into app_settings
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">user_id,</if>
|
||||
<if test="settingKey != null and settingKey != ''">setting_key,</if>
|
||||
<if test="settingValue != null">setting_value,</if>
|
||||
<if test="settingType != null">setting_type,</if>
|
||||
<if test="settingGroup != null">setting_group,</if>
|
||||
<if test="settingDesc != null">setting_desc,</if>
|
||||
<if test="platform != null">platform,</if>
|
||||
<if test="versionRange != null">version_range,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="logical != null">logical,</if>
|
||||
<if test="customData != null">custom_data,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">#{userId},</if>
|
||||
<if test="settingKey != null and settingKey != ''">#{settingKey},</if>
|
||||
<if test="settingValue != null">#{settingValue},</if>
|
||||
<if test="settingType != null">#{settingType},</if>
|
||||
<if test="settingGroup != null">#{settingGroup},</if>
|
||||
<if test="settingDesc != null">#{settingDesc},</if>
|
||||
<if test="platform != null">#{platform},</if>
|
||||
<if test="versionRange != null">#{versionRange},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="logical != null">#{logical},</if>
|
||||
<if test="customData != null">#{customData},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAppSettings" parameterType="AppSettings">
|
||||
update app_settings
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="userId != null">user_id = #{userId},</if>
|
||||
<if test="settingKey != null and settingKey != ''">setting_key = #{settingKey},</if>
|
||||
<if test="settingValue != null">setting_value = #{settingValue},</if>
|
||||
<if test="settingType != null">setting_type = #{settingType},</if>
|
||||
<if test="settingGroup != null">setting_group = #{settingGroup},</if>
|
||||
<if test="settingDesc != null">setting_desc = #{settingDesc},</if>
|
||||
<if test="platform != null">platform = #{platform},</if>
|
||||
<if test="versionRange != null">version_range = #{versionRange},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="logical != null">logical = #{logical},</if>
|
||||
<if test="customData != null">custom_data = #{customData},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAppSettingsById" parameterType="Long">
|
||||
delete from app_settings where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAppSettingsByIds" parameterType="String">
|
||||
delete from app_settings where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.stock.mapper.WzMaterialsManagementMapper">
|
||||
|
||||
<resultMap type="WzMaterialsManagement" id="WzMaterialsManagementResult">
|
||||
<resultMap type="com.zhyc.module.stock.domain.WzMaterialsManagement" id="WzMaterialsManagementResult">
|
||||
<result property="materialManagementCode" column="material_management_code" />
|
||||
<result property="materialId" column="material_id" />
|
||||
<result property="materialName" column="material_name" />
|
||||
|
||||
@@ -4,7 +4,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zhyc.module.work.mapper.WorkOrderMapper">
|
||||
|
||||
<resultMap type="WorkOrder" id="WorkOrderResult">
|
||||
<resultMap type="com.zhyc.module.work.domain.WorkOrder" id="WorkOrderResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="orderNo" column="order_no" />
|
||||
<result property="planId" column="plan_id" />
|
||||
|
||||
Reference in New Issue
Block a user