fix
This commit is contained in:
@@ -5,8 +5,10 @@ import com.cool.store.entity.QualificationsInfoDO;
|
||||
import com.cool.store.mapper.QualificationsInfoMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
@@ -42,4 +44,12 @@ public class QualificationsInfoDAO {
|
||||
}
|
||||
return qualificationsInfoMapper.getByLineId(lineId);
|
||||
}
|
||||
public List<QualificationsInfoDO> getByLineIds(@Param("lineIds") List<Long> lineIds){
|
||||
if (lineIds==null||lineIds.size()==0){
|
||||
return new java.util.ArrayList<>();
|
||||
}
|
||||
Example example = new Example(QualificationsInfoDO.class);
|
||||
example.createCriteria().andIn("lineId", lineIds);
|
||||
return qualificationsInfoMapper.selectByExample(example);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,4 +27,6 @@ public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {
|
||||
List<LicenseTransactDO> queryNotSyncList();
|
||||
|
||||
Boolean updateSyncFlagByIds(@Param("ids") List<Long> ids);
|
||||
|
||||
List<LicenseTransactDO> getByShopIds(@Param("list") List<Long> shopIds) ;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,8 @@
|
||||
create_time,
|
||||
update_time,
|
||||
deleted,
|
||||
two_certificates_one
|
||||
two_certificates_one,
|
||||
legal_is_same_partner
|
||||
</sql>
|
||||
<update id="updateByShopId">
|
||||
update xfsg_license_transact
|
||||
@@ -106,6 +107,16 @@
|
||||
where sync_flag = 0
|
||||
and deleted = 0
|
||||
</select>
|
||||
<select id="getByShopIds" resultType="com.cool.store.entity.LicenseTransactDO">
|
||||
select <include refid="baseColumn"/>
|
||||
from xfsg_license_transact
|
||||
where deleted = 0
|
||||
<if test="list != null and list.size > 0">
|
||||
<foreach item="item" collection="list" open="and shop_id in (" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<update id="updateSyncFlagByIds">
|
||||
|
||||
Reference in New Issue
Block a user