休假报备、出差报备 删除和修改添加限制
This commit is contained in:
parent
52b6da1b53
commit
23d865fe9f
|
|
@ -36,4 +36,13 @@ public interface EvectionDao {
|
||||||
* @date 2025/2/12 15:14
|
* @date 2025/2/12 15:14
|
||||||
*/
|
*/
|
||||||
List<Integer> isCheck(EvectionBean evectionBean);
|
List<Integer> isCheck(EvectionBean evectionBean);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询出差详情
|
||||||
|
* @param id
|
||||||
|
* @return EvectionBean
|
||||||
|
* @author cwchen
|
||||||
|
* @date 2025/2/12 15:53
|
||||||
|
*/
|
||||||
|
EvectionBean getEvectionById(String id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ public class EvectionServiceImpl implements EvectionService {
|
||||||
@Override
|
@Override
|
||||||
public Integer isCheck(String id) {
|
public Integer isCheck(String id) {
|
||||||
try {
|
try {
|
||||||
EvectionBean evectionBean = evectionDao.selectEvectionById(id);
|
EvectionBean evectionBean = evectionDao.getEvectionById(id);
|
||||||
List<Integer> list = evectionDao.isCheck(evectionBean);
|
List<Integer> list = evectionDao.isCheck(evectionBean);
|
||||||
if(CollectionUtils.isNotEmpty(list)){
|
if(CollectionUtils.isNotEmpty(list)){
|
||||||
for (Integer status : list) {
|
for (Integer status : list) {
|
||||||
|
|
|
||||||
|
|
@ -247,4 +247,13 @@
|
||||||
AND lc.is_active = '1'
|
AND lc.is_active = '1'
|
||||||
ORDER BY lc.create_time
|
ORDER BY lc.create_time
|
||||||
</select>
|
</select>
|
||||||
|
<!--查询出差详情-->
|
||||||
|
<select id="getEvectionById" resultType="com.bonus.system.evection.entity.EvectionBean">
|
||||||
|
SELECT la.id,
|
||||||
|
la.leave_start_date AS leaveStartDate,
|
||||||
|
la.leave_end_date AS leaveEndDate,
|
||||||
|
la.org_id AS orgId
|
||||||
|
FROM leave_apply la
|
||||||
|
WHERE la.id = #{id}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue