修改实名制接口

This commit is contained in:
lSun 2025-12-02 18:34:01 +08:00
parent 805abc5e78
commit cc8dcb9196
4 changed files with 6 additions and 5 deletions

View File

@ -4,6 +4,7 @@ import com.bonus.hnrn.rnbmw.manager.entity.OrgBean;
import com.bonus.hnrn.rnbmw.manager.entity.ZNode;
import com.bonus.hnrn.rnbmw.manager.model.SysUser;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -12,7 +13,7 @@ import java.util.List;
public interface OrgDao {
List<ZNode> getAll(SysUser user);
List<ZNode> getTeamTypeList(String id);
List<ZNode> getTeamTypeList(@Param("companyId") String id);
int addOrg(OrgBean bean);

View File

@ -104,7 +104,7 @@
REPLACE INTO bm_sub_pro_relation(sub_id,pro_id) VALUES (#{subId},#{proId});
</insert>
<select id="selectSubPro" resultType="com.bonus.hnrn.rnbmw.manager.entity.SubProBean" >
SELECT sub_id FROM bm_sub_pro_relation where pro_id=#{proId}
SELECT sub_id as subId FROM bm_sub_pro_relation where pro_id=#{proId}
</select>
<!--删除分包商和工程关系-->
<delete id="delSubPro" parameterType="com.bonus.hnrn.rnbmw.manager.entity.SubProBean" >

View File

@ -30,7 +30,7 @@
and instr(job_type,#{params.status}) &gt; 0
</if>
</if>
${params.orderBy}
ORDER BY update_time desc ,id desc
limit #{offset}, #{limit}
</select>

View File

@ -47,8 +47,8 @@
bstt.ID AS id,bstt.`NAME` AS name,'0' AS pId,'0' AS companyId
FROM bm_sub_team_type bstt
WHERE bstt.IS_ACTIVE = '1'
<if test="id != null and id != ''">
and bstt.company_id = #{id}
<if test="companyId != null and companyId != ''">
AND bstt.company_id = #{companyId}
</if>
</select>