6 changed files with 102 additions and 40 deletions
@ -0,0 +1,16 @@
|
||||
package com.biutag.supervisiondata.mapper.wdpc; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.wdpc.WdpcPerson; |
||||
import org.apache.ibatis.annotations.Update; |
||||
|
||||
/** |
||||
* @author kami on 2024-12-11 16:35:08 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface WdpcPersonMapper extends BaseMapper<WdpcPerson> { |
||||
|
||||
@Update("truncate table wpdc_person") |
||||
int truncateTable(); |
||||
} |
||||
@ -0,0 +1,21 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.wdpc; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author kami on 2024-12-11 16:34:00 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("`wdpc_person`") |
||||
public class WdpcPerson { |
||||
|
||||
@TableId("`id`") |
||||
Integer id; |
||||
@TableField("id_code") |
||||
String idCode; |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.wdpc.WdpcPersonMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.wdpc.WdpcPerson; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-12-11 16:35:44 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class WdpcPersonRepository extends ServiceImpl<WdpcPersonMapper, WdpcPerson> { |
||||
} |
||||
Loading…
Reference in new issue