Browse Source

2024-10-12

master
qiezi 1 year ago
parent
commit
2ac944809e
  1. 7
      src/main/java/com/spring/modules/proofing/controller/ProofingInformationController.java
  2. 2
      src/main/java/com/spring/modules/proofing/mapper/ProofingInformationMapper.java
  3. 1
      src/main/java/com/spring/modules/proofing/service/ProofingInformationService.java
  4. 4
      src/main/java/com/spring/modules/proofing/service/impl/ProofingInformationServiceImpl.java
  5. 6
      src/main/resources/mapper/proofing/ProofingInformationMapper.xml

7
src/main/java/com/spring/modules/proofing/controller/ProofingInformationController.java

@ -260,11 +260,4 @@ public class ProofingInformationController {
proofingInformationService.submitChange(data);
return R.ok();
}
@PostMapping("/bu")
@ResponseBody
public R queryBuList(@RequestBody ProofingInformationVo data) {
List<BuData> list = proofingInformationService.queryBuList(data);
return R.ok().put("rows", list);
}
}

2
src/main/java/com/spring/modules/proofing/mapper/ProofingInformationMapper.java

@ -22,6 +22,4 @@ public interface ProofingInformationMapper extends BaseMapper<ProofingInformatio
List<ProofingDelegateAccessVo> searchDelegateAccess(ProofingDelegateAccess delegateAccess);
List<ProofingDelegateAccessVo> searchDelegateAccessByUser(@Param("params") ProofingDelegateAccessVo delegateAccess,@Param("roleId")String roleId);
List<BuData> queryBuList(ProofingInformationVo data);
}

1
src/main/java/com/spring/modules/proofing/service/ProofingInformationService.java

@ -51,5 +51,4 @@ public interface ProofingInformationService extends IService<ProofingInformation
void submitChange(ProofingInformationVo data);
List<BuData> queryBuList(ProofingInformationVo data);
}

4
src/main/java/com/spring/modules/proofing/service/impl/ProofingInformationServiceImpl.java

@ -665,8 +665,4 @@ public class ProofingInformationServiceImpl extends ServiceImpl<ProofingInformat
}
}
@Override
public List<BuData> queryBuList(ProofingInformationVo data) {
return baseMapper.queryBuList(data);
}
}

6
src/main/resources/mapper/proofing/ProofingInformationMapper.xml

@ -141,7 +141,7 @@
<select id="searchDelegateAccessByUser" resultType="com.spring.modules.proofing.vo.ProofingDelegateAccessVo">
select a.username as delegateAccess, a.user_display as delegateAccessName
from sys_user a
left join AccessRole b on a.username = b.username
left join AccessRole b on a.username = b.username and a.site = b.site
where b.role_no = #{roleId} and a.site = #{params.site}
<if test="params.delegateAccess != null and params.delegateAccess != ''">
and a.username like #{params.delegateAccess}
@ -150,8 +150,4 @@
and a.user_display like #{params.delegateAccessName}
</if>
</select>
<select id="queryBuList" resultType="com.spring.modules.base.data.BuData">
select site,bu_no,bu_desc from dbo.Get_Now_BU_chooseAble (#{site},#{createBy})
</select>
</mapper>
Loading…
Cancel
Save