长庆项目day3

This commit is contained in:
ovo 2024-10-19 19:44:12 +08:00
parent b3bfb9bc4b
commit 3eb5581fa9
4 changed files with 7 additions and 3 deletions

View File

@ -57,9 +57,9 @@ public class CqEnterController {
} }
@GetMapping("/rulesByType") @GetMapping("/rulesByType")
public R rulesByType(Integer typeId, Long cellId){ public R rulesByType(Long typeId, Long cellId){
if(typeId == null){ if(typeId == null){
typeId = cqMemberMapper.speciallyForVisitors(); typeId = cqMemberMapper.speciallyForVisitors2();
} }

View File

@ -18,7 +18,7 @@ public interface CqEnterMapper extends BaseMapper<TenEnterConfigEntity> {
List<PeronType> getPersonType(); List<PeronType> getPersonType();
List<TypeRules> rulesByType(int typeId, @Param("cellId") Long cellId); List<TypeRules> rulesByType(long typeId, @Param("cellId") Long cellId);
int changeState(int ruleId); int changeState(int ruleId);
} }

View File

@ -16,6 +16,7 @@ public interface CqMemberMapper extends BaseMapper<TenPersonEntity> {
String takeTheNameAccordingToType(Integer personType); String takeTheNameAccordingToType(Integer personType);
Integer speciallyForVisitors(); Integer speciallyForVisitors();
Long speciallyForVisitors2();
Long orgidBecomesCellId(String orgId); Long orgidBecomesCellId(String orgId);

View File

@ -18,6 +18,9 @@
<select id="speciallyForVisitors" resultType="java.lang.Integer"> <select id="speciallyForVisitors" resultType="java.lang.Integer">
SELECT label_id FROM ten_label WHERE name = '访客人员' SELECT label_id FROM ten_label WHERE name = '访客人员'
</select> </select>
<select id="speciallyForVisitors2" resultType="java.lang.Long">
SELECT type FROM ten_label WHERE name = '访客人员'
</select>
<select id="orgidBecomesCellId" resultType="java.lang.Long"> <select id="orgidBecomesCellId" resultType="java.lang.Long">
SELECT cell_id from ten_cell WHERE org_id = #{orgId} SELECT cell_id from ten_cell WHERE org_id = #{orgId}
</select> </select>