主程序

This commit is contained in:
tangw 2025-10-30 12:12:39 +08:00
parent b11e6a4bf4
commit 939533f043
4 changed files with 18 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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);

View File

@ -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>