条件控制
This commit is contained in:
@@ -32,4 +32,6 @@ public interface IntentAgreementMapper {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<SigningBaseInfoDO> selectByLineIds(List<Long> lineIds);
|
List<SigningBaseInfoDO> selectByLineIds(List<Long> lineIds);
|
||||||
|
|
||||||
|
SigningBaseInfoDO selectByMobile(String mobile,String idCard);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,4 +140,18 @@
|
|||||||
</if>
|
</if>
|
||||||
</select>
|
</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>
|
</mapper>
|
||||||
@@ -223,6 +223,10 @@ public class IntentAgreementServiceImpl extends LineFlowService implements Inten
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public InitiatingRequest getOaDetail(String mobile, String idCardNo) {
|
public InitiatingRequest getOaDetail(String mobile, String idCardNo) {
|
||||||
|
SigningBaseInfoDO signingBaseInfoDO = intentAgreementMapper.selectByMobile(mobile, idCardNo);
|
||||||
|
if (signingBaseInfoDO==null){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
String redisKey = "OA:" + mobile + idCardNo;
|
String redisKey = "OA:" + mobile + idCardNo;
|
||||||
String responseString = redisUtilPool.getString(redisKey);
|
String responseString = redisUtilPool.getString(redisKey);
|
||||||
if (StringUtils.isNotBlank(responseString)) {
|
if (StringUtils.isNotBlank(responseString)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user