提交 4089c749 authored 作者: zjm's avatar zjm

feat(单位模块): 修改单位dao去除''符号

修改单位dao去除''符号
上级 d55d36a3
......@@ -33,12 +33,12 @@ public class BlockController {
@ApiOperation(value = "test", notes = "区块链")
@GetMapping("/test")
public ResponseEntity test(){
//AffQaQ55FCuQNqF3bj6nsMytMqbGUDrHe8VDXqb1cPgd7K1yB8X
return ResponseEntity.ok(blockService.sendText(1,1004,"{text}"));
}
// @ApiOperation(value = "test", notes = "区块链")
// @GetMapping("/test")
// public ResponseEntity test(){
// //AffQaQ55FCuQNqF3bj6nsMytMqbGUDrHe8VDXqb1cPgd7K1yB8X
// return ResponseEntity.ok(blockService.sendText(1,1004,"{text}"));
// }
@ApiOperation(value = "查询最新的20条数据", notes = "区块大屏")
......
package com.tykj.dev.device.block.entity.bc;
import com.tykj.carrier.block.entity.vo.BlockTraceabilityParsing;
import com.tykj.carrier.misc.base.BeanHelper;
import com.tykj.dev.device.block.entity.vo.BlockTraceabilityParsing;
import com.tykj.dev.misc.base.BeanHelper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
......
......@@ -78,10 +78,10 @@ public interface UnitsDao extends JpaRepository<Units, Integer>, JpaSpecificatio
List<Units> findAllByNameLike(String unitName);
@Query(value = "SELECT u.`name` FROM units u where u.id_del = 0 AND u.`level` = ?1",nativeQuery = true)
@Query(value = "SELECT u.name FROM units u where u.id_del = 0 AND u.level = ?1",nativeQuery = true)
List<String> getNameListByLevel(Integer level);
@Query(value = "SELECT u.unit_id FROM units u where u.id_del = 0 AND u.`level` = ?1",nativeQuery = true)
@Query(value = "SELECT u.unit_id FROM units u where u.id_del = 0 AND u.level = ?1",nativeQuery = true)
List<Integer> getIdListByLevel(Integer level);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论