项目代码提交

This commit is contained in:
liang.chao 2025-11-12 10:12:04 +08:00
parent df99bb248c
commit 2a06458d88
7 changed files with 25 additions and 8 deletions

View File

@ -28,7 +28,7 @@ public class SysEncryTypeController extends BaseController {
private ISysEncryTypeService encryTypeService;
@GetMapping("/list")
@SysLog(title = "档案加密类型列表", module = "数据档案移交->档案加密类型管理", businessType = OperaType.QUERY, details = "档案加密类型列表", logType = 1)
@SysLog(title = "数据加密类型列表", module = "数据档案移交->数据加密类型管理", businessType = OperaType.QUERY, details = "数据加密类型列表", logType = 1)
@RequiresPermissions("encry:type:list")
public TableDataInfo list(SysEncryType sysEncryType) {
startPage();
@ -36,7 +36,7 @@ public class SysEncryTypeController extends BaseController {
return getDataTable(list);
}
@PostMapping("addEncryType")
@SysLog(title = "新增档案加密类型", module = "数据档案移交->档案加密类型管理", businessType = OperaType.INSERT, details = "新增档案加密类型", logType = 1)
@SysLog(title = "新增数据加密类型", module = "数据档案移交->数据加密类型管理", businessType = OperaType.INSERT, details = "新增数据加密类型", logType = 1)
@RequiresPermissions("encry:type:add")
public R add(@RequestBody @Validated SysEncryType sysEncryType) {
return encryTypeService.add(sysEncryType);
@ -44,14 +44,14 @@ public class SysEncryTypeController extends BaseController {
@PostMapping("editEncryType")
@SysLog(title = "修改档案加密类型", module = "数据档案移交->档案加密类型管理", businessType = OperaType.UPDATE, details = "修改档案加密类型", logType = 1)
@SysLog(title = "修改数据加密类型", module = "数据档案移交->数据加密类型管理", businessType = OperaType.UPDATE, details = "修改数据加密类型", logType = 1)
@RequiresPermissions("encry:type:edit")
public R edit(@RequestBody @Validated SysEncryType sysEncryType) {
return encryTypeService.edit(sysEncryType);
}
@PostMapping("delEncryType")
@SysLog(title = "删除档案加密类型", module = "数据档案移交->档案加密类型管理", businessType = OperaType.DELETE, details = "删除档案加密类型", logType = 1)
@SysLog(title = "删除数据加密类型", module = "数据档案移交->数据加密类型管理", businessType = OperaType.DELETE, details = "删除数据加密类型", logType = 1)
@RequiresPermissions("encry:type:del")
public R del(@RequestBody SysEncryType sysEncryType) {
Integer delNum = encryTypeService.del(sysEncryType);

View File

@ -51,7 +51,6 @@ public class TransferApplyDto {
*/
private String auditUser;
private String auditUserName;
private String transfertTime;
/**

View File

@ -20,4 +20,6 @@ public interface FileIndexMapper {
Integer update(FileIndexDto dto);
Integer del(FileIndexDto dto);
Integer getCount(FileIndexDto dto);
}

View File

@ -25,12 +25,22 @@ public class FileIndexServiceImpl implements FileIndexService {
@Override
public AjaxResult add(FileIndexDto dto) {
// 查询名称是否重复
Integer count = mapper.getCount(dto);
if (count > 0) {
return AjaxResult.error("名称已重复,请重新修改");
}
Integer add = mapper.add(dto);
return add > 0 ? AjaxResult.success("添加成功") : AjaxResult.error("添加失败");
}
@Override
public AjaxResult update(FileIndexDto dto) {
// 查询名称是否重复
Integer count = mapper.getCount(dto);
if (count > 0) {
return AjaxResult.error("名称已重复,请重新修改");
}
Integer update = mapper.update(dto);
return update > 0 ? AjaxResult.success("修改成功") : AjaxResult.error("修改失败");
}

View File

@ -41,4 +41,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</where>
</select>
<select id="getCount" resultType="java.lang.Integer">
select count(1) from da_ky_file_index where file_name = #{fileName}
<if test="id != null and id != ''">
and id != #{id}
</if>
</select>
</mapper>

View File

@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
ORDER BY dkfcns.create_time DESC
</select>
<select id="selectClassifyNameStandard" resultType="java.lang.Integer">
select count(*) from da_ky_files_classify_name_standard where del_flag = '1' and standard_type = #{standardType} and standard_name = #{standardName}
select count(*) from da_ky_files_classify_name_standard where del_flag = '1' and standard_name = #{standardName}
<if test="id != null">
and id != #{id}
</if>

View File

@ -378,8 +378,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="singleProName != null and singleProName != ''">
AND INSTR(dkta.single_pro_name, #{singleProName}) > 0
</if>
<if test="transfertTime != null and transfertTime != ''">
and DATE(dkta.transfer_time) = #{transfertTime}
<if test="transferTime != null and transferTime != ''">
and DATE(dkta.transfer_time) = #{transferTime}
</if>
<if test="deptIds != null">
AND dkta.dept_id IN