条件控制

This commit is contained in:
苏竹红
2024-07-17 15:29:24 +08:00
parent 5b29cdd0f9
commit f424c23179
3 changed files with 20 additions and 0 deletions

View File

@@ -32,4 +32,6 @@ public interface IntentAgreementMapper {
* @return
*/
List<SigningBaseInfoDO> selectByLineIds(List<Long> lineIds);
SigningBaseInfoDO selectByMobile(String mobile,String idCard);
}

View File

@@ -140,4 +140,18 @@
</if>
</select>
<select id="selectByMobile" resultType="com.cool.store.entity.SigningBaseInfoDO">
select
<include refid="Base_Column_List"/>
from xfsg_signing_base_info
where deleted = 0
<if test="mobile!=null and mobile!=''">
and mobile = #{mobile}
</if>
<if test="idCard!=null and idCard!=''">
and id_card_no = #{idCard}
</if>
limit 1
</select>
</mapper>

View File

@@ -223,6 +223,10 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
@Override
public InitiatingRequest getOaDetail(String mobile, String idCardNo) {
SigningBaseInfoDO signingBaseInfoDO = intentAgreementMapper.selectByMobile(mobile, idCardNo);
if (signingBaseInfoDO==null){
return null;
}
String redisKey = "OA:" + mobile + idCardNo;
String responseString = redisUtilPool.getString(redisKey);
if (StringUtils.isNotBlank(responseString)) {