工器具库修改
This commit is contained in:
parent
af7d7d61bf
commit
a39fd4c68a
|
|
@ -32,7 +32,7 @@ public class ToolController extends BaseController {
|
||||||
@ApiOperation(value = "工器具库", notes = "查询数据列表")
|
@ApiOperation(value = "工器具库", notes = "查询数据列表")
|
||||||
@GetMapping("getList")
|
@GetMapping("getList")
|
||||||
@SysLog(title = "工器具库", module = "企业知识库->工器具库->查询数据列表", businessType = OperaType.QUERY, details = "查询数据列表", logType = 1)
|
@SysLog(title = "工器具库", module = "企业知识库->工器具库->查询数据列表", businessType = OperaType.QUERY, details = "查询数据列表", logType = 1)
|
||||||
@RequiresPermissions("enterpriseLibrary:technical:list")
|
@RequiresPermissions("enterpriseLibrary:tool:list")
|
||||||
public TableDataInfo getList(ToolDto dto) {
|
public TableDataInfo getList(ToolDto dto) {
|
||||||
startPage();
|
startPage();
|
||||||
List<ToolVo> list = toolService.getList(dto);
|
List<ToolVo> list = toolService.getList(dto);
|
||||||
|
|
@ -64,10 +64,10 @@ public class ToolController extends BaseController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "工器具库", notes = "工器具详情")
|
@ApiOperation(value = "工器具库", notes = "工器具详情")
|
||||||
@PostMapping("detailData")
|
@GetMapping("detailData")
|
||||||
@SysLog(title = "工器具库", module = "企业知识库->工器具库->工器具详情", businessType = OperaType.QUERY, details = "工器具详情", logType = 1)
|
@SysLog(title = "工器具库", module = "企业知识库->工器具库->工器具详情", businessType = OperaType.QUERY, details = "工器具详情", logType = 1)
|
||||||
@RequiresPermissions("enterpriseLibrary:tool:detail")
|
@RequiresPermissions("enterpriseLibrary:tool:detail")
|
||||||
public AjaxResult detailData(@RequestBody ToolDto dto) {
|
public AjaxResult detailData(ToolDto dto) {
|
||||||
return toolService.detailData(dto);
|
return toolService.detailData(dto);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ public class MDTechnicalService implements IMDTechnicalService {
|
||||||
try {
|
try {
|
||||||
return imdTechnicalMapper.getTypeList(dto);
|
return imdTechnicalMapper.getTypeList(dto);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -40,6 +41,7 @@ public class MDTechnicalService implements IMDTechnicalService {
|
||||||
try {
|
try {
|
||||||
return imdTechnicalMapper.isRepeat(dto);
|
return imdTechnicalMapper.isRepeat(dto);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -54,6 +56,7 @@ public class MDTechnicalService implements IMDTechnicalService {
|
||||||
try {
|
try {
|
||||||
return imdTechnicalMapper.hasChildData(dto);
|
return imdTechnicalMapper.hasChildData(dto);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -63,6 +66,7 @@ public class MDTechnicalService implements IMDTechnicalService {
|
||||||
try {
|
try {
|
||||||
return imdTechnicalMapper.getList(dto);
|
return imdTechnicalMapper.getList(dto);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -77,6 +81,7 @@ public class MDTechnicalService implements IMDTechnicalService {
|
||||||
try {
|
try {
|
||||||
return Optional.ofNullable(imdTechnicalMapper.getDetailData(dto)).orElse(new TechnicalVo.Technical());
|
return Optional.ofNullable(imdTechnicalMapper.getDetailData(dto)).orElse(new TechnicalVo.Technical());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return new TechnicalVo.Technical();
|
return new TechnicalVo.Technical();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ public class MDToolServiceImpl implements IMDToolService {
|
||||||
try {
|
try {
|
||||||
return imdToolMapper.getList(dto);
|
return imdToolMapper.getList(dto);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -46,6 +47,7 @@ public class MDToolServiceImpl implements IMDToolService {
|
||||||
try {
|
try {
|
||||||
return Optional.ofNullable(imdToolMapper.isRepeat(dto)).orElse(0);
|
return Optional.ofNullable(imdToolMapper.isRepeat(dto)).orElse(0);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
log.error(e.toString(),e);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,8 @@
|
||||||
create_user_id,
|
create_user_id,
|
||||||
create_user_name,
|
create_user_name,
|
||||||
update_user_id,
|
update_user_id,
|
||||||
update_user_name
|
update_user_name,
|
||||||
|
technical_solution_state
|
||||||
)
|
)
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="list" item="item" separator=",">
|
<foreach collection="list" item="item" separator=",">
|
||||||
|
|
@ -62,7 +63,8 @@
|
||||||
#{item.createUserId},
|
#{item.createUserId},
|
||||||
#{item.createUserName},
|
#{item.createUserName},
|
||||||
#{item.updateUserId},
|
#{item.updateUserId},
|
||||||
#{item.updateUserName}
|
#{item.updateUserName},
|
||||||
|
#{item.technicalSolutionState}
|
||||||
)
|
)
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -137,7 +139,16 @@
|
||||||
LEFT JOIN sys_dict_data sdd4 ON FIND_IN_SET(sdd4.dict_value, tets.nature_construction) AND sdd4.dict_type = 'construction_nature'
|
LEFT JOIN sys_dict_data sdd4 ON FIND_IN_SET(sdd4.dict_value, tets.nature_construction) AND sdd4.dict_type = 'construction_nature'
|
||||||
<where>
|
<where>
|
||||||
<if test="technicalName!=null and technicalName!=''">
|
<if test="technicalName!=null and technicalName!=''">
|
||||||
AND INSTR(tets.technical_name,#{technicalName}) > 0
|
INSTR(tets.technical_name,#{technicalName}) > 0
|
||||||
|
</if>
|
||||||
|
<if test="natureConstruction!=null and natureConstruction!=''">
|
||||||
|
AND tets.nature_construction = #{natureConstruction}
|
||||||
|
</if>
|
||||||
|
<if test="structuralForm!=null and structuralForm!=''">
|
||||||
|
AND tets.structural_form = #{structuralForm}
|
||||||
|
</if>
|
||||||
|
<if test="basicForm!=null and basicForm!=''">
|
||||||
|
AND tets.basic_form = #{basicForm}
|
||||||
</if>
|
</if>
|
||||||
AND tets.technical_solution_type_id = #{technicalSolutionTypeId}
|
AND tets.technical_solution_type_id = #{technicalSolutionTypeId}
|
||||||
AND tets.del_flag = '0'
|
AND tets.del_flag = '0'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue