Просмотр исходного кода

qiandao sql

release_toaliyun_real
xhxu 5 лет назад
Родитель
Сommit
e71d7c6ac8
2 измененных файлов: 4 добавлений и 3 удалений
  1. +2
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java
  2. +2
    -2
      mallinkService/src/main/resources/mapper/WxCUserBasicSignMapper.xml

+ 2
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCUserBasicSignServiceImpl.java Просмотреть файл

@@ -18,6 +18,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.text.DateFormat;
@@ -46,7 +47,7 @@ public class WxCUserBasicSignServiceImpl implements WxCUserBasicSignService {
return PageHelper.startPage(pageIndex, pageSize).doSelectPageInfo(() -> wxCUserBasicSignMapper.findList(record));
}

@Transactional(rollbackFor = {Exception.class})
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = {Exception.class})
@Override
public WxCUserBasicSign signIn(WxCUserBasicSign record) {
if(record.getType() == null){


+ 2
- 2
mallinkService/src/main/resources/mapper/WxCUserBasicSignMapper.xml Просмотреть файл

@@ -74,7 +74,7 @@
</select>

<select id="getLastSignIn" parameterType="com.iformall.domain.po.WxCUserBasicSign" resultMap="BaseResultMap">
select <include refid="allColumns" />,max(`signin_date`) from wx_c_user_basic_sign
select <include refid="allColumns" /> from wx_c_user_basic_sign
where 1 = 1
<if test=" null != tenantId and '' != tenantId">
and `tenant_id` = #{tenantId}
@@ -85,7 +85,7 @@
<if test=" null != userId ">
and `user_id` = #{userId}
</if>
group by user_id
order by `signin_date` desc limit 1
</select>

</mapper>

Загрузка…
Отмена
Сохранить