主程序
This commit is contained in:
parent
b11e6a4bf4
commit
939533f043
@ -0,0 +1,12 @@
|
||||
package com.czlis.common.core.domain.entity.lis;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ComUsrBlob {
|
||||
private byte[] dzqm;
|
||||
}
|
||||
@ -1,12 +1,13 @@
|
||||
package com.czlis.interfaceCommon.mapper;
|
||||
|
||||
import com.czlis.common.core.domain.entity.lis.ComUsr;
|
||||
import com.czlis.common.core.domain.entity.lis.ComUsrBlob;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ComUsrMapper {
|
||||
List<ComUsr> getComUsrList(@Param("yhdh") String yhdh);
|
||||
byte[] getComUsrdzqm(String yhdh);
|
||||
ComUsrBlob getComUsrdzqm(String yhdh);
|
||||
String getComUsrName(String yhdh);
|
||||
}
|
||||
|
||||
@ -617,7 +617,9 @@ public class CommonUtil {
|
||||
return "Y".equals(userPower.substring(powerIdx - 1, 1));
|
||||
}
|
||||
public byte[] getComUsrdzqm(String yhdh) {
|
||||
return comUsrMapper.getComUsrdzqm(yhdh);
|
||||
ComUsrBlob comUsrBlob=comUsrMapper.getComUsrdzqm(yhdh);
|
||||
if (comUsrBlob == null) return null;
|
||||
return comUsrBlob.getDzqm();
|
||||
}
|
||||
public String getComUsrName(String yhdh){
|
||||
return comUsrMapper.getComUsrName(yhdh);
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
<if test="yhdh != null and yhdh != ''"> and yhdh = #{yhdh}</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getComUsrdzqm" resultType="byte[]">
|
||||
<select id="getComUsrdzqm" resultType="com.czlis.common.core.domain.entity.lis.ComUsrBlob">
|
||||
select dzqm from com_usr where yhdh = #{yhdh}
|
||||
</select>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user