操作权限
This commit is contained in:
parent
45683f8296
commit
e3d58e5660
@ -1,7 +1,14 @@
|
|||||||
package com.czlis.interfaceCommon.mapper;
|
package com.czlis.interfaceCommon.mapper;
|
||||||
|
|
||||||
|
import com.czlis.interfaceCommon.pojo.dto.ComUsrpowerDTO;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public interface ComUsrpowerMapper {
|
public interface ComUsrpowerMapper {
|
||||||
String getUserPower(@Param("yq")String yq,@Param("yhdh")String yhdh);
|
String getUserPower(@Param("yq")String yq,@Param("yhdh")String yhdh);
|
||||||
|
List<ComUsrpowerDTO> query(ComUsrpowerDTO comUsrpowerDTO);
|
||||||
|
void insert(ComUsrpowerDTO comUsrpowerDTO);
|
||||||
|
void update(ComUsrpowerDTO comUsrpowerDTO);
|
||||||
|
void delete(ComUsrpowerDTO comUsrpowerDTO);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
package com.czlis.liswork.pojo.DTO;
|
package com.czlis.interfaceCommon.pojo.dto;
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@ -7,6 +7,25 @@
|
|||||||
select yhqx from com_usrpower where yhdh = #{yhdh} and yq = #{yq} and xtdh = 'LIS'
|
select yhqx from com_usrpower where yhdh = #{yhdh} and yq = #{yq} and xtdh = 'LIS'
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="query" resultType="com.czlis.interfaceCommon.pojo.dto.ComUsrpowerDTO">
|
||||||
|
select b.*,a.yq as instr_yq,a.yqmc,(case when isnull(b.yhdh,'') = '' then '0' else '1' end) as syqx,a.useflag from lab_instr a left join com_usrpower b on (a.yq = b.yq and b.yhdh = #{yhdh} and b.xtdh = 'LIS')
|
||||||
|
<where>
|
||||||
|
<if test="yq != null and yq = ''"> and yq = #{yq}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id ="insert">
|
||||||
|
insert into com_usrpower (yhdh, yq, xtdh, yhqx)
|
||||||
|
values ( #{yhdh},#{yq},#{xtdh},#{yhqx})
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="update">
|
||||||
|
update com_usrpower set yhqx = #{yhqx} where yhdh = #{yhdh} and yq = #{yq} and xtdh = #{xtdh}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="delete">
|
||||||
|
delete from com_usrpower where yhdh = #{yhdh} and yq = #{yq} and xtdh = #{xtdh}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@ package com.czlis.liswork.controller.xtwh;
|
|||||||
|
|
||||||
|
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.liswork.pojo.DTO.ComUsrpowerDTO;
|
import com.czlis.interfaceCommon.pojo.dto.ComUsrpowerDTO;
|
||||||
import com.czlis.liswork.service.ComUsrpowerService;
|
import com.czlis.liswork.service.ComUsrpowerService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
package com.czlis.liswork.mapper.xtwh;
|
|
||||||
|
|
||||||
import com.czlis.liswork.pojo.DTO.ComUsrpowerDTO;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public interface ComUsrpowerMapper {
|
|
||||||
List<ComUsrpowerDTO> query(ComUsrpowerDTO comUsrpowerDTO);
|
|
||||||
void insert(ComUsrpowerDTO comUsrpowerDTO);
|
|
||||||
void update(ComUsrpowerDTO comUsrpowerDTO);
|
|
||||||
void delete(ComUsrpowerDTO comUsrpowerDTO);
|
|
||||||
}
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package com.czlis.liswork.service;
|
package com.czlis.liswork.service;
|
||||||
|
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.liswork.pojo.DTO.ComUsrpowerDTO;
|
import com.czlis.interfaceCommon.pojo.dto.ComUsrpowerDTO;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
package com.czlis.liswork.service.impl.xtwh;
|
package com.czlis.liswork.service.impl.xtwh;
|
||||||
|
|
||||||
import com.czlis.common.core.domain.Result;
|
import com.czlis.common.core.domain.Result;
|
||||||
import com.czlis.liswork.mapper.xtwh.ComUsrpowerMapper;
|
import com.czlis.interfaceCommon.mapper.ComUsrpowerMapper;
|
||||||
import com.czlis.liswork.pojo.DTO.ComUsrpowerDTO;
|
import com.czlis.interfaceCommon.pojo.dto.ComUsrpowerDTO;
|
||||||
import com.czlis.liswork.service.ComUsrpowerService;
|
import com.czlis.liswork.service.ComUsrpowerService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
public class ComUsrpowerServiceImpl implements ComUsrpowerService {
|
public class ComUsrpowerServiceImpl implements ComUsrpowerService {
|
||||||
|
|||||||
@ -1,25 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
||||||
<mapper namespace="com.czlis.liswork.mapper.xtwh.ComUsrpowerMapper">
|
|
||||||
<select id="query" resultType="com.czlis.liswork.pojo.DTO.ComUsrpowerDTO">
|
|
||||||
select b.*,a.yq as instr_yq,a.yqmc,(case when isnull(b.yhdh,'') = '' then '0' else '1' end) as syqx,a.useflag from lab_instr a left join com_usrpower b on (a.yq = b.yq and b.yhdh = #{yhdh} and b.xtdh = 'LIS')
|
|
||||||
<where>
|
|
||||||
<if test="yq != null and yq = ''"> and yq = #{yq}</if>
|
|
||||||
</where>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
<insert id ="insert">
|
|
||||||
insert into com_usrpower (yhdh, yq, xtdh, yhqx)
|
|
||||||
values ( #{yhdh},#{yq},#{xtdh},#{yhqx})
|
|
||||||
</insert>
|
|
||||||
|
|
||||||
<update id="update">
|
|
||||||
update com_usrpower set yhqx = #{yhqx} where yhdh = #{yhdh} and yq = #{yq} and xtdh = #{xtdh}
|
|
||||||
</update>
|
|
||||||
|
|
||||||
<delete id="delete">
|
|
||||||
delete from com_usrpower where yhdh = #{yhdh} and yq = #{yq} and xtdh = #{xtdh}
|
|
||||||
</delete>
|
|
||||||
|
|
||||||
</mapper>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user