| | |
| | | @TableField(exist = false) |
| | | private Long streetlightId; |
| | | |
| | | @TableField(exist = false) |
| | | private String poleName; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | |
| | | bind -> { |
| | | if (bind.getDeviceCode() != null && led.getLightemitControlCode().equals(bind.getDeviceCode())) { |
| | | led.setStreetlightId(bind.getPoleId()); |
| | | led.setPoleName(poleService.getOne(Wrappers.lambdaQuery(Pole.class).eq(Pole::getId, bind.getPoleId())).getPoleName()); |
| | | led.setStreetlightName(poleService.getOne(Wrappers.lambdaQuery(Pole.class).eq(Pole::getId, bind.getPoleId())).getPoleName()); |
| | | } |
| | | } |
| | | ); |
| | |
| | | password: Sandu.520.ifzdm # Redis服务器连接密码(默认为空) |
| | | timeout: 300ms # 连接超时时间(毫秒) |
| | | server: |
| | | port: 8080 |
| | | port: 20017 |
| | | sandu: |
| | | jwt: |
| | | header: Authorization |
| | |
| | | quartz: |
| | | enable: true |
| | | |
| | | listenter: |
| | | isOpen: false |
| | | |
| | | |
| | |
| | | package com.sandu.ximon.admin.tests; |
| | | |
| | | import com.sandu.ximon.admin.base.BaseTest; |
| | | import com.sun.activation.registries.MailcapFile; |
| | | import org.junit.Test; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | |
| | | * @Version 1.0 |
| | | */ |
| | | public class LedSFileControllerTests extends BaseTest { |
| | | @Test |
| | | public void testAdd() throws Exception { |
| | | checkPost("/v1/xixun/file/add",new MailcapFile("aaa.jpg")); |
| | | } |
| | | // @Test |
| | | // public void testAdd() throws Exception { |
| | | // checkPost("/v1/xixun/file/add",new MailcapFile("aaa.jpg")); |
| | | // } |
| | | } |