Commit c54f0242 by jx-art

修复数据库查询BUG----- 进行非空判断

parent fbcbb2f7
......@@ -51,6 +51,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
public GoodsResponseRpc queryCommanderInfo(ChangeCommanderPO changeCommander) {
//获取模板名称 通过一级变更类型 二级变更类型ID 定位模板
ChangeConfig changeConfig = changeConfigService.queryChangeType(changeCommander.getParentChangeClassId(), changeCommander.getSonChangeClassId());
if (changeConfig == null){
return null;
}
//查询出当前模板配置中选择的 角色
ChangeCommanderEnum changeCommanderEnum = ChangeCommanderEnum.getChangeCommanderEnum(changeConfig.getChangeCommanderType());
//直接排除 选项为固定人 或者发起人
......
......@@ -30,7 +30,9 @@ public interface ChangeConfigMapper extends tk.mybatis.mapper.common.Mapper<Chan
void deleteById(@Param("id") Long id);
@Select("select * from TB_YX_QC_CHANGE_CONFIG where parent_change_class_id = #{parentChangeClassId} and son_change_class_id = #{sonChangeClassId}")
ChangeConfig queryChangeType(Long parentChangeClassId,Long sonChangeClassId);
ChangeConfig queryChangeType(
@Param("parentChangeClassId")Long parentChangeClassId,
@Param("sonChangeClassId")Long sonChangeClassId);
List<ChangeConfigPo> selectChangeConfigPo(ChangeConfigQueryReq req);
......
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