企业新表list修改

zhangtao
dongdingding 1 year ago
parent 9ee6bacbf4
commit 77ccdf74c5

@ -23,7 +23,7 @@ import java.util.List;
*/
@Api(tags = "企业新表")
@RestController
@RequestMapping("/programManagement/new")
@RequestMapping("/pharmaceuticals/new")
public class BEnterpriseNewController extends BaseController {
@Resource
private IBEnterpriseNewService bEnterpriseNewService;

@ -1,5 +1,6 @@
package com.ruoyi.programManagement.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
@ -105,5 +106,13 @@ public class BEnterpriseNew extends BaseEntity {
@ApiModelProperty(value = "部门权限id")
private Long deptId;
/**
*
*/
@TableField(exist = false)
@ApiModelProperty(value = "是否重点企业")
private Long isPoint;
}

@ -43,26 +43,46 @@
user_id,
dept_id
from b_enterprise_new
</sql>
<select id="selectBEnterpriseNewList" parameterType="BEnterpriseNew" resultMap="BEnterpriseNewResult">
<include refid="selectBEnterpriseNewVo"/>
<select id="selectBEnterpriseNewList" parameterType="BEnterpriseNew" resultType="BEnterpriseNew">
select a.id,
a. enterprise_id,
a.enterprise_name,
a.district,
a.SUPERVISION_LARGE,
a.RISK_LEVEL,
a.STAND_LEVEL,
a.EXAMINE_END_TIME,
a. create_id,
a.create_by,
a.create_time,
a.update_id,
a.update_by,
a.update_time,
a. remark,
a.user_id,
a.dept_id,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS isPoint
from b_enterprise_new a
LEFT JOIN b_key_enterprise b ON a.enterprise_id = b.ent_code COLLATE utf8mb4_unicode_ci
<where>
<if test="enterpriseId != null and enterpriseId != ''">and enterprise_id = #{enterpriseId}</if>
<if test="enterpriseName != null and enterpriseName != ''">and enterprise_name like concat('%',
<if test="enterpriseId != null and enterpriseId != ''">and a.enterprise_id = #{enterpriseId}</if>
<if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like concat('%',
#{enterpriseName}, '%')
</if>
<if test="district != null and district != ''">and district = #{district}</if>
<if test="supervisionLarge != null and supervisionLarge != ''">and SUPERVISION_LARGE =
<if test="district != null and district != ''">and a.district = #{district}</if>
<if test="supervisionLarge != null and supervisionLarge != ''">and a.SUPERVISION_LARGE =
#{supervisionLarge}
</if>
<if test="riskLevel != null and riskLevel != ''">and RISK_LEVEL = #{riskLevel}</if>
<if test="standLevel != null and standLevel != ''">and STAND_LEVEL = #{standLevel}</if>
<if test="examineEndTime != null ">and EXAMINE_END_TIME = #{examineEndTime}</if>
<if test="createId != null ">and create_id = #{createId}</if>
<if test="updateId != null ">and update_id = #{updateId}</if>
<if test="userId != null ">and user_id = #{userId}</if>
<if test="deptId != null ">and dept_id = #{deptId}</if>
<if test="riskLevel != null and riskLevel != ''">and a.RISK_LEVEL = #{riskLevel}</if>
<if test="standLevel != null and standLevel != ''">and a.STAND_LEVEL = #{standLevel}</if>
<if test="examineEndTime != null ">and a.EXAMINE_END_TIME = #{examineEndTime}</if>
<if test="createId != null ">and a.create_id = #{createId}</if>
<if test="updateId != null ">and a.update_id = #{updateId}</if>
<if test="userId != null ">and a.user_id = #{userId}</if>
<if test="deptId != null ">and a.dept_id = #{deptId}</if>
</where>
</select>

Loading…
Cancel
Save