执法车辆、执法立案等功能调整

This commit is contained in:
heli02 2025-08-08 19:31:02 +08:00
parent 7937817628
commit 0fb03be771
3 changed files with 13 additions and 2 deletions

View File

@ -130,7 +130,10 @@
<div class="content enterprise_content">
<img src="../../assets/bigscreen/59.png">
<div class="content_top">
<div class="icon icon3"></div>
<div class="label">执法车辆数量</div>
<div class="num" @click="handLawEnforceVehiclePage">{{ zfcls }}</div>
</div>
<div class="content_bottom">
<div class="content_bottom_item">
<div class="label"><span class="icon gtfh"></span>个体防护</div>

View File

@ -31,7 +31,14 @@ public class Zfzbgl extends BaseModel {
@Comment("IDULID")
private String zfzbglid;
/**
* 所属机构ID
*/
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "agency_id")
@NotFound(action = NotFoundAction.IGNORE)
@Comment("所属机构ID")
private Agency agency;
@Column(length = 50)

View File

@ -42,6 +42,7 @@ public class ZsfzglService {
Integer _page = Optional.ofNullable(query.page()).filter(f -> f > 0).map(f -> f - 1).orElse(0);
String _sort = Optional.ofNullable(query.sort()).filter(com.aisino.iles.common.util.StringUtils::isNotEmpty).orElse(Zsfzgl_.GZSJ);
String _dir = Optional.ofNullable(query.dir()).filter(d -> Sort.Direction.fromOptionalString(d).isPresent()).orElse("desc");
return zsfzglRepository.findAll(buildQueryCondition(query), PageRequest.of(_page, _psize, Sort.by(Sort.Direction.fromString(_dir), _sort)));
}