feat:梅州三院,添加用户电话同步
parent
f56298d979
commit
d242427d40
@ -0,0 +1,14 @@
|
||||
package com.docus.server.mzsy.entity;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@ApiModel("梅州三院360His员工信息")
|
||||
@Data
|
||||
public class MzsyHisUserInfo {
|
||||
@ApiModelProperty("员工工号")
|
||||
private String YGDM;
|
||||
@ApiModelProperty("员工电话")
|
||||
private String YGDH;
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package com.docus.server.mzsy.mapper;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.docus.server.mzsy.entity.MzsyHisUserInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@DS("mzsy-360his")
|
||||
public interface MzsyHisUserInfoMapper {
|
||||
|
||||
List<MzsyHisUserInfo> findByYgDms(@Param("ygDms") List<String> ygDms);
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
<?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.docus.server.mzsy.mapper.MzsyHisUserInfoMapper">
|
||||
|
||||
|
||||
<select id="page" resultType="com.docus.server.mzsy.entity.MzsyUserInfoView">
|
||||
SELECT YGDM,
|
||||
YGDH,
|
||||
|
||||
FROM (SELECT ROW_NUMBER() OVER (ORDER BY ID) AS RowNumber,
|
||||
ID,
|
||||
FEMPCODE,
|
||||
FEMPNAME,
|
||||
FIP_DEPTID,
|
||||
FISAVAILABLE,
|
||||
FL
|
||||
FROM dbo.ZD_EMR_EMPLOYEE
|
||||
) AS paging
|
||||
WHERE paging.RowNumber BETWEEN ${startRow} AND ${endRow}
|
||||
</select>
|
||||
<select id="findByYgDms" resultType="com.docus.server.mzsy.entity.MzsyHisUserInfo">
|
||||
SELECT YGDM,
|
||||
YGDH
|
||||
FROM dbo.GY_YGDM
|
||||
WHERE YGDM IN
|
||||
<foreach collection="ygDms" open="(" separator="," close=")" item="ygDm">
|
||||
#{ygDm}
|
||||
</foreach>
|
||||
</select>
|
||||
</mapper>
|
Loading…
Reference in New Issue