7 changed files with 52 additions and 21 deletions
@ -1,18 +1,33 @@ |
|||||||
package vip.xumy.idle.server.mapper; |
package vip.xumy.idle.server.mapper; |
||||||
|
|
||||||
import org.apache.ibatis.annotations.Mapper; |
import org.apache.ibatis.annotations.Mapper; |
||||||
|
import org.apache.ibatis.annotations.Update; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
|
|
||||||
import vip.xumy.idle.server.pojo.Archive; |
import vip.xumy.idle.server.pojo.Archive; |
||||||
|
|
||||||
/** Ownership belongs to the company |
/** |
||||||
|
* Ownership belongs to the company |
||||||
* |
* |
||||||
* @author:mengyxu |
* @author:mengyxu |
||||||
* @date:2025年5月19日 |
* @date:2025年5月19日 |
||||||
*/ |
*/ |
||||||
|
|
||||||
@Mapper |
@Mapper |
||||||
public interface IArchiveMapper extends BaseMapper<Archive> { |
public interface IArchiveMapper extends BaseMapper<Archive> { |
||||||
|
|
||||||
|
@Update(""" |
||||||
|
UPDATE archive |
||||||
|
SET |
||||||
|
lv = #{lv}, |
||||||
|
coins = #{coins}, |
||||||
|
strengthen_lv= #{strengthenLv} , |
||||||
|
archive = #{archive} |
||||||
|
WHERE |
||||||
|
username = #{username} |
||||||
|
and version = #{version} |
||||||
|
""") |
||||||
|
void update(Archive archive); |
||||||
|
|
||||||
} |
} |
||||||
|
Loading…
Reference in new issue