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

标准规则库修改

parent b5ad26fe
...@@ -39,6 +39,4 @@ public class SuperviseRuleDto extends BaseDto { ...@@ -39,6 +39,4 @@ public class SuperviseRuleDto extends BaseDto {
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
private Date createDate; private Date createDate;
} }
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
where tz_ugp_project.sequence_nbr = tz_ugp_install_notice.project_id 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 and tz_ugp_install_notice_msg.install_notice_id = tz_ugp_install_notice.sequence_nbr
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and tz_ugp_project.name = #{name} and tz_ugp_project.name like '%${name}%'
</if> </if>
<if test="installationUnit != null and installationUnit != ''"> <if test="installationUnit != null and installationUnit != ''">
and tz_ugp_project.installationUnit = #{installationUnit} and tz_ugp_project.installationUnit like '%${installationUnit}%'
</if> </if>
</select> </select>
<select id="selectByName" resultType="com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeMsgPageDto"> <select id="selectByName" resultType="com.yeejoin.amos.boot.module.ugp.api.dto.InstallNoticeMsgPageDto">
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
tz_ugp_attachment.type = 'enuipment' tz_ugp_attachment.type = 'enuipment'
<where> <where>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and tz_ugp_equipment.name = #{name} and tz_ugp_equipment.name like '%${name}%'
</if> </if>
<if test="type != null and type != ''"> <if test="type != null and type != ''">
and tz_ugp_equipment.type = #{type} and tz_ugp_equipment.type like '%${type}%'
</if> </if>
</where> </where>
</select> </select>
......
...@@ -161,4 +161,18 @@ public class SuperviseRuleController extends BaseController { ...@@ -161,4 +161,18 @@ public class SuperviseRuleController extends BaseController {
public ResponseModel<List<SuperviseRuleDto>> selectForList() { public ResponseModel<List<SuperviseRuleDto>> selectForList() {
return ResponseHelper.buildResponse(superviseRuleServiceImpl.queryForSuperviseRuleList()); 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