This commit is contained in:
sxu 2025-01-27 13:22:46 +08:00
parent 99af3b25eb
commit 8ab167f498
3 changed files with 13 additions and 3 deletions

View File

@ -19,4 +19,8 @@ public interface CustCasualMapper extends BaseMapper<CustCasual> {
@Select({"select casual_id, openid from cust_casual where cust_id = #{custId} and source_type = #{sourceType} and if_del = #{ifDel}"})
CustCasual selectCustCasualByCustId(@Param("custId") Long custId, @Param("sourceType") Integer sourceType, @Param("ifDel") Integer ifDel);
int updateCustCasual(CustCasual custCasual);
}

View File

@ -56,4 +56,10 @@
</select>
<update id="updateCustCasual">
update cust_casual
set openid = #{openId}
where casual_id = #{casualId}
</update>
</mapper>

View File

@ -42,10 +42,10 @@ public class CustInfoBusinessImpl implements CustInfoBusiness {
private SmsCodeApi smsCodeApi;
@Autowired
private CustCasualMapper custCasualMapper;
private CustInfoMapper custInfoMapper;
@Autowired
private CustInfoMapper custInfoMapper;
private CustCasualMapper custCasualMapper;
public CustInfoAppIdLoginVO customLoginWithAppId(CustInfoAppIdLoginDTO content, Integer sourceType) {
Integer loginType = content.getLoginType();
@ -119,7 +119,7 @@ public class CustInfoBusinessImpl implements CustInfoBusiness {
openid = custCasual.getOpenid();
if (StringUtils.isBlank(openid)) {
openid = IdUtil.simpleUUID();
//this.custCasualMapper.update((Object)null, (Wrapper)((LambdaUpdateWrapper)Wrappers.lambdaUpdate(CustCasual.class).eq(CustCasual::getCasualId, custCasual.getCasualId())).set(CustCasual::getOpenid, openid));
this.custCasualMapper.updateCustCasual(custCasual);
}
}