Commit 077d108b authored by sxwnfpwx@163.com's avatar sxwnfpwx@163.com

标准规则库修改

parent b5ad26fe
......@@ -39,6 +39,4 @@ public class SuperviseRuleDto extends BaseDto {
@ApiModelProperty(value = "创建时间")
private Date createDate;
}
......@@ -19,10 +19,10 @@
where tz_ugp_project.sequence_nbr = tz_ugp_install_notice.project_id
and tz_ugp_install_notice_msg.install_notice_id = tz_ugp_install_notice.sequence_nbr
<if test="name != null and name != ''">
and tz_ugp_project.name = #{name}
and tz_ugp_project.name like '%${name}%'
</if>
<if test="installationUnit != null and installationUnit != ''">
and tz_ugp_project.installationUnit = #{installationUnit}
and tz_ugp_project.installationUnit like '%${installationUnit}%'
</if>
</select>
<select id="selectByName" resultType="com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeMsgPageDto">
......
......@@ -22,10 +22,10 @@
tz_ugp_attachment.type = 'enuipment'
<where>
<if test="name != null and name != ''">
and tz_ugp_equipment.name = #{name}
and tz_ugp_equipment.name like '%${name}%'
</if>
<if test="type != null and type != ''">
and tz_ugp_equipment.type = #{type}
and tz_ugp_equipment.type like '%${type}%'
</if>
</where>
</select>
......
......@@ -161,4 +161,18 @@ public class SuperviseRuleController extends BaseController {
public ResponseModel<List<SuperviseRuleDto>> selectForList() {
return ResponseHelper.buildResponse(superviseRuleServiceImpl.queryForSuperviseRuleList());
}
/**
* 根据sequenceNbr查询标准规则库
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@GetMapping(value = "/queryBySeq/{sequenceNbr}")
@ApiOperation(httpMethod = "GET",value = "根据sequenceNbr查询监管区域规则表", notes = "根据sequenceNbr查询监管区域规则表")
public ResponseModel<SuperviseRuleDto> queryBySeq(@PathVariable Long sequenceNbr) {
return ResponseHelper.buildResponse(superviseRuleServiceImpl.queryBySeq(sequenceNbr));
}
}
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