装置通道线路和删除装置修改

jni
liuguijing 2 years ago
parent c606c354ba
commit 5c0a5b48da

@ -1,9 +1,7 @@
package com.shxy.xymanager_admin; package com.shxy.xymanager_admin;
import com.shxy.xymanager_service.service.DyLevelService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

@ -18,10 +18,6 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses; import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;

@ -41,6 +41,9 @@ public class Terminals implements Serializable {
private Date updateTime; private Date updateTime;
/*展示名字 等价与displayname 用于方便*/
private String name;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }

@ -62,7 +62,7 @@ public class DyLineAndTermModel implements Serializable {
private String cmdid; private String cmdid;
@ApiModelProperty(value = "显示名", example = "名称名称") @ApiModelProperty(value = "显示名", example = "名称名称")
private String displayName; private String name;
} }
} }

@ -44,7 +44,7 @@
<result column="term_id" jdbcType="INTEGER" property="id"/> <result column="term_id" jdbcType="INTEGER" property="id"/>
<result column="tower_id" jdbcType="INTEGER" property="towerid"/> <result column="tower_id" jdbcType="INTEGER" property="towerid"/>
<result column="cmdid" jdbcType="VARCHAR" property="cmdid"/> <result column="cmdid" jdbcType="VARCHAR" property="cmdid"/>
<result column="display_name" jdbcType="VARCHAR" property="displayName"/> <result column="display_name" jdbcType="VARCHAR" property="name"/>
</collection> </collection>
</collection> </collection>
</resultMap> </resultMap>

@ -104,10 +104,11 @@
e.id as channel_id, e.id as channel_id,
e.channel_name as channel_name e.channel_name as channel_name
from from
((((terminals a left join `lines` b on a.line_id = b.id and a.status = #{status}) ((((terminals a left join `lines` b on a.line_id = b.id )
left join tower c on a.tower_id = c.id) left join tower c on a.tower_id = c.id)
left join terminal_channel_mapper d on a.id = d.term_id) left join terminal_channel_mapper d on a.id = d.term_id)
left join terminal_channels e on d.channel_id = e.id) left join terminal_channels e on d.channel_id = e.id)
WHERE a.status = 1
order by a.create_time desc order by a.create_time desc
</select> </select>

@ -281,6 +281,7 @@ public class TerminalServiceImpl implements TerminalService {
model.setList(new ArrayList<>()); model.setList(new ArrayList<>());
} else { } else {
List<DyLineAndTermModel.DyListBean> beans = BeanUtil.copyToList(list, DyLineAndTermModel.DyListBean.class, CopyOptions.create().ignoreCase()); List<DyLineAndTermModel.DyListBean> beans = BeanUtil.copyToList(list, DyLineAndTermModel.DyListBean.class, CopyOptions.create().ignoreCase());
model.setList(beans); model.setList(beans);
} }
return Asserts.success(model); return Asserts.success(model);

Loading…
Cancel
Save