.idea/easyCodeTableSetting.xml
@@ -451,6 +451,50 @@ </TableInfoDTO> </value> </entry> <entry key="news_website.news_information_police"> <value> <TableInfoDTO> <option name="comment" value="资讯警员中间表" /> <option name="fullColumn"> <list> <ColumnInfoDTO> <option name="custom" value="false" /> <option name="ext" value="{}" /> <option name="name" value="id" /> <option name="type" value="java.lang.Integer" /> </ColumnInfoDTO> <ColumnInfoDTO> <option name="comment" value="资讯id" /> <option name="custom" value="false" /> <option name="ext" value="{}" /> <option name="name" value="newsInformationId" /> <option name="type" value="java.lang.Integer" /> </ColumnInfoDTO> <ColumnInfoDTO> <option name="comment" value="警员id" /> <option name="custom" value="false" /> <option name="ext" value="{}" /> <option name="name" value="newsPoliceId" /> <option name="type" value="java.lang.Integer" /> </ColumnInfoDTO> <ColumnInfoDTO> <option name="comment" value="是否签收0未签收1签收2不需要签收" /> <option name="custom" value="false" /> <option name="ext" value="{}" /> <option name="name" value="isSign" /> <option name="type" value="java.lang.Integer" /> </ColumnInfoDTO> </list> </option> <option name="name" value="NewsInformationPolice" /> <option name="preName" value="" /> <option name="saveModelName" value="ycl-platform" /> <option name="savePackageName" value="com.ycl" /> <option name="savePath" value="./ycl-platform/src/main/java/com/ycl" /> <option name="templateGroupName" value="MybatisPlus-Mixed" /> </TableInfoDTO> </value> </entry> <entry key="news_website.news_ip"> <value> <TableInfoDTO> ycl-common/target/classes/META-INF/spring-configuration-metadata.json
File was deleted ycl-common/target/classes/mapper/depart/DepartManagerMapper.xml
File was deleted ycl-common/target/classes/mapper/depart/UmsDepartMapper.xml
File was deleted ycl-common/target/classes/mapper/user/AdminMenuRelationMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsAdminLoginLogMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsAdminMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsAdminRoleRelationMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsDepartManageMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsMenuMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsResourceCategoryMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsResourceMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsRoleMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsRoleMenuRelationMapper.xml
File was deleted ycl-common/target/classes/mapper/user/UmsRoleResourceRelationMapper.xml
File was deleted ycl-platform/src/main/java/com/ycl/controller/NewsDepartmentInformationController.java
File was deleted ycl-platform/src/main/java/com/ycl/controller/NewsInformationPoliceController.java
New file @@ -0,0 +1,88 @@ package com.ycl.controller; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.api.ApiController; import com.baomidou.mybatisplus.extension.api.R; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ycl.entity.NewsInformationPolice; import com.ycl.service.NewsInformationPoliceService; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.io.Serializable; import java.util.List; /** * 资讯警员中间表(NewsInformationPolice)表控制层 * * @author makejava * @since 2022-11-17 15:17:21 */ @RestController @RequestMapping("newsInformationPolice") public class NewsInformationPoliceController extends ApiController { /** * 服务对象 */ @Resource private NewsInformationPoliceService newsInformationPoliceService; /** * 分页查询所有数据 * * @param page 分页对象 * @param newsInformationPolice 查询实体 * @return 所有数据 */ @GetMapping public R selectAll(Page<NewsInformationPolice> page, NewsInformationPolice newsInformationPolice) { return success(this.newsInformationPoliceService.page(page, new QueryWrapper<>(newsInformationPolice))); } /** * 通过主键查询单条数据 * * @param id 主键 * @return 单条数据 */ @GetMapping("{id}") public R selectOne(@PathVariable Serializable id) { return success(this.newsInformationPoliceService.getById(id)); } /** * 新增数据 * * @param newsInformationPolice 实体对象 * @return 新增结果 */ @PostMapping public R insert(@RequestBody NewsInformationPolice newsInformationPolice) { return success(this.newsInformationPoliceService.save(newsInformationPolice)); } /** * 修改数据 * * @param newsInformationPolice 实体对象 * @return 修改结果 */ @PutMapping public R update(@RequestBody NewsInformationPolice newsInformationPolice) { return success(this.newsInformationPoliceService.updateById(newsInformationPolice)); } /** * 删除数据 * * @param idList 主键结合 * @return 删除结果 */ @DeleteMapping public R delete(@RequestParam("idList") List<Long> idList) { return success(this.newsInformationPoliceService.removeByIds(idList)); } } ycl-platform/src/main/java/com/ycl/controller/NewsPoliceController.java
@@ -7,11 +7,15 @@ import com.baomidou.mybatisplus.extension.api.R; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.ycl.entity.NewsPolice; import com.ycl.service.NewsAdminService; import com.ycl.service.NewsPoliceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.io.Serializable; import java.sql.SQLException; import java.util.List; /** @@ -29,6 +33,9 @@ */ @Resource private NewsPoliceService newsPoliceService; @Autowired private NewsAdminService newsAdminService; /** * 分页查询所有数据 @@ -59,9 +66,11 @@ * @param newsPolice 实体对象 * @return 新增结果 */ @Transactional(rollbackFor = SQLException.class) @PostMapping public R insert(@RequestBody NewsPolice newsPolice) { return success(this.newsPoliceService.save(newsPolice)); this.newsPoliceService.save(newsPolice); return success(newsAdminService.autoCreateAdmin(newsPolice)); } /** ycl-platform/src/main/java/com/ycl/dao/NewsChannelColumnDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsChannelDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsColumnDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsColumnInformationDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentInformationDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsDutyDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsInformationDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsInformationPoliceDao.java
New file @@ -0,0 +1,35 @@ package com.ycl.dao; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsInformationPolice; /** * 资讯警员中间表(NewsInformationPolice)表数据库访问层 * * @author makejava * @since 2022-11-17 15:17:21 */ public interface NewsInformationPoliceDao extends BaseMapper<NewsInformationPolice> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsInformationPolice> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsInformationPolice> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsInformationPolice> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsInformationPolice> entities); } ycl-platform/src/main/java/com/ycl/dao/NewsIpDao.java
File was deleted ycl-platform/src/main/java/com/ycl/dao/NewsPoliceDao.java
File was deleted ycl-platform/src/main/java/com/ycl/entity/NewsAdmin.java
@@ -3,7 +3,7 @@ import com.baomidou.mybatisplus.extension.activerecord.Model; import java.io.Serializable; import java.sql.Date; import java.util.Date; /** * 后台用户表(NewsAdmin)表实体类 ycl-platform/src/main/java/com/ycl/entity/NewsInformationPolice.java
File was renamed from ycl-platform/src/main/java/com/ycl/entity/NewsDepartmentInformation.java @@ -5,17 +5,17 @@ import java.io.Serializable; /** * 机构(部门)中间表(NewsDepartmentInformation)表实体类 * 资讯警员中间表(NewsInformationPolice)表实体类 * * @author makejava * @since 2022-11-17 11:38:27 * @since 2022-11-17 15:17:21 */ @SuppressWarnings("serial") public class NewsDepartmentInformation extends Model<NewsDepartmentInformation> { public class NewsInformationPolice extends Model<NewsInformationPolice> { private Integer id; //机构(部门id) private Integer newsDepartmentId; //资讯id private Integer newsInformationId; //警员id private Integer newsPoliceId; //是否签收0未签收1签收2不需要签收 @@ -30,12 +30,12 @@ this.id = id; } public Integer getNewsDepartmentId() { return newsDepartmentId; public Integer getNewsInformationId() { return newsInformationId; } public void setNewsDepartmentId(Integer newsDepartmentId) { this.newsDepartmentId = newsDepartmentId; public void setNewsInformationId(Integer newsInformationId) { this.newsInformationId = newsInformationId; } public Integer getNewsPoliceId() { ycl-platform/src/main/java/com/ycl/entity/NewsPolice.java
@@ -2,6 +2,8 @@ import com.baomidou.mybatisplus.extension.activerecord.Model; import com.fasterxml.jackson.annotation.JsonFormat; import java.io.Serializable; import java.sql.Date; @@ -19,7 +21,9 @@ //警员名称 private String rname; //创建时间 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //修改时间 private Date updateTime; //机构id ycl-platform/src/main/java/com/ycl/mapper/NewsAdminDao.java
File was renamed from ycl-platform/src/main/java/com/ycl/dao/NewsAdminDao.java @@ -1,4 +1,4 @@ package com.ycl.dao; package com.ycl.mapper; import java.util.List; ycl-platform/src/main/java/com/ycl/mapper/NewsChannelColumnDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsChannelColumn; /** * 频道栏目中间表(NewsChannelColumn)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsChannelColumnDao extends BaseMapper<NewsChannelColumn> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsChannelColumn> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsChannelColumn> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsChannelColumn> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsChannelColumn> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsChannelColumn; /** * 频道栏目中间表(NewsChannelColumn)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsChannelColumnDao extends BaseMapper<NewsChannelColumn> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsChannelColumn> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsChannelColumn> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsChannelColumn> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsChannelColumn> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsChannelDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsChannel; /** * 频道表(NewsChannel)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsChannelDao extends BaseMapper<NewsChannel> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsChannel> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsChannel> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsChannel> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsChannel> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsChannel; /** * 频道表(NewsChannel)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsChannelDao extends BaseMapper<NewsChannel> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsChannel> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsChannel> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsChannel> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsChannel> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsColumnDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsColumn; /** * 栏目表(NewsColumn)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsColumnDao extends BaseMapper<NewsColumn> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsColumn> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsColumn> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsColumn> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsColumn> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsColumn; /** * 栏目表(NewsColumn)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsColumnDao extends BaseMapper<NewsColumn> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsColumn> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsColumn> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsColumn> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsColumn> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsColumnInformationDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsColumnInformation; /** * 栏目频道中间表(NewsColumnInformation)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsColumnInformationDao extends BaseMapper<NewsColumnInformation> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsColumnInformation> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsColumnInformation> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsColumnInformation> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsColumnInformation> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsColumnInformation; /** * 栏目咨询中间表(NewsColumnInformation)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsColumnInformationDao extends BaseMapper<NewsColumnInformation> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsColumnInformation> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsColumnInformation> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsColumnInformation> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsColumnInformation> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsDepartmentDao.java
File was renamed from ycl-platform/src/main/java/com/ycl/dao/NewsDepartmentDao.java @@ -1,4 +1,4 @@ package com.ycl.dao; package com.ycl.mapper; import java.util.List; ycl-platform/src/main/java/com/ycl/mapper/NewsDutyDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsDuty; /** * 值班表(NewsDuty)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsDutyDao extends BaseMapper<NewsDuty> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsDuty> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsDuty> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsDuty> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsDuty> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsDuty; /** * 值班表(NewsDuty)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsDutyDao extends BaseMapper<NewsDuty> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsDuty> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsDuty> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsDuty> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsDuty> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsInformationDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsInformation; /** * 咨询表(NewsInformation)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsInformationDao extends BaseMapper<NewsInformation> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsInformation> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsInformation> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsInformation> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsInformation> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsInformation; /** * 资讯表(NewsInformation)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsInformationDao extends BaseMapper<NewsInformation> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsInformation> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsInformation> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsInformation> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsInformation> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsIpDao.java
@@ -1,35 +1,35 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsIp; /** * ip白名单表(NewsIp)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsIpDao extends BaseMapper<NewsIp> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsIp> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsIp> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsIp> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsIp> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsIp; /** * ip白名单表(NewsIp)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsIpDao extends BaseMapper<NewsIp> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsIp> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsIp> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsIp> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsIp> entities); } ycl-platform/src/main/java/com/ycl/mapper/NewsPoliceDao.java
@@ -1,36 +1,38 @@ package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsPolice; /** * 警员表 (NewsPolice)表数据库访问层 * * @author makejava * @since 2022-11-16 16:52:30 */ public interface NewsPoliceDao extends BaseMapper<NewsPolice> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsPolice> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsPolice> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsPolice> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsPolice> entities); } package com.ycl.mapper; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Param; import com.ycl.entity.NewsPolice; /** * 警员表 (NewsPolice)表数据库访问层 * * @author makejava * @since 2022-11-17 11:38:27 */ public interface NewsPoliceDao extends BaseMapper<NewsPolice> { /** * 批量新增数据(MyBatis原生foreach方法) * * @param entities List<NewsPolice> 实例对象列表 * @return 影响行数 */ int insertBatch(@Param("entities") List<NewsPolice> entities); /** * 批量新增或按主键更新数据(MyBatis原生foreach方法) * * @param entities List<NewsPolice> 实例对象列表 * @return 影响行数 * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<NewsPolice> entities); NewsPolice savePolice(@Param("entity") NewsPolice entity); } ycl-platform/src/main/java/com/ycl/service/NewsAdminService.java
@@ -2,6 +2,7 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.ycl.entity.NewsAdmin; import com.ycl.entity.NewsPolice; /** * 后台用户表(NewsAdmin)表服务接口 @@ -10,6 +11,6 @@ * @since 2022-11-17 11:38:27 */ public interface NewsAdminService extends IService<NewsAdmin> { Integer autoCreateAdmin(NewsPolice newsPolice); } ycl-platform/src/main/java/com/ycl/service/NewsDepartmentInformationService.java
File was deleted ycl-platform/src/main/java/com/ycl/service/NewsInformationPoliceService.java
New file @@ -0,0 +1,15 @@ package com.ycl.service; import com.baomidou.mybatisplus.extension.service.IService; import com.ycl.entity.NewsInformationPolice; /** * 资讯警员中间表(NewsInformationPolice)表服务接口 * * @author makejava * @since 2022-11-17 15:17:22 */ public interface NewsInformationPoliceService extends IService<NewsInformationPolice> { } ycl-platform/src/main/java/com/ycl/service/NewsPoliceService.java
@@ -11,6 +11,6 @@ * @since 2022-11-17 11:38:27 */ public interface NewsPoliceService extends IService<NewsPolice> { NewsPolice savePolice(NewsPolice newsPolice); } ycl-platform/src/main/java/com/ycl/service/impl/NewsAdminServiceImpl.java
@@ -1,10 +1,17 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsAdminDao; import com.ycl.mapper.NewsAdminDao; import com.ycl.entity.NewsAdmin; import com.ycl.entity.NewsPolice; import com.ycl.service.NewsAdminService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.sql.SQLException; import java.util.Date; /** * 后台用户表(NewsAdmin)表服务实现类 @@ -15,5 +22,22 @@ @Service("newsAdminService") public class NewsAdminServiceImpl extends ServiceImpl<NewsAdminDao, NewsAdmin> implements NewsAdminService { @Autowired private NewsAdminDao newsAdminDao; @Value("${admin.defaultPassword}") private String defaultPassword; @Transactional(rollbackFor = SQLException.class) @Override public Integer autoCreateAdmin(NewsPolice newsPolice) { NewsAdmin admin = new NewsAdmin(); admin.setUsername(newsPolice.getRname()); admin.setPassword(defaultPassword); admin.setCreateTime(new Date()); admin.setStatus(1); admin.setNewsPoliceId(newsPolice.getId()); return newsAdminDao.insert(admin); } } ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelColumnServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsChannelColumnDao; import com.ycl.mapper.NewsChannelColumnDao; import com.ycl.entity.NewsChannelColumn; import com.ycl.service.NewsChannelColumnService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsChannelDao; import com.ycl.mapper.NewsChannelDao; import com.ycl.entity.NewsChannel; import com.ycl.service.NewsChannelService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnInformationServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsColumnInformationDao; import com.ycl.mapper.NewsColumnInformationDao; import com.ycl.entity.NewsColumnInformation; import com.ycl.service.NewsColumnInformationService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsColumnServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsColumnDao; import com.ycl.mapper.NewsColumnDao; import com.ycl.entity.NewsColumn; import com.ycl.service.NewsColumnService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsDepartmentInformationServiceImpl.java
File was deleted ycl-platform/src/main/java/com/ycl/service/impl/NewsDepartmentServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsDepartmentDao; import com.ycl.mapper.NewsDepartmentDao; import com.ycl.entity.NewsDepartment; import com.ycl.service.NewsDepartmentService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsDutyServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsDutyDao; import com.ycl.mapper.NewsDutyDao; import com.ycl.entity.NewsDuty; import com.ycl.service.NewsDutyService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationPoliceServiceImpl.java
New file @@ -0,0 +1,19 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsInformationPoliceDao; import com.ycl.entity.NewsInformationPolice; import com.ycl.service.NewsInformationPoliceService; import org.springframework.stereotype.Service; /** * 资讯警员中间表(NewsInformationPolice)表服务实现类 * * @author makejava * @since 2022-11-17 15:17:22 */ @Service("newsInformationPoliceService") public class NewsInformationPoliceServiceImpl extends ServiceImpl<NewsInformationPoliceDao, NewsInformationPolice> implements NewsInformationPoliceService { } ycl-platform/src/main/java/com/ycl/service/impl/NewsInformationServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsInformationDao; import com.ycl.mapper.NewsInformationDao; import com.ycl.entity.NewsInformation; import com.ycl.service.NewsInformationService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsIpServiceImpl.java
@@ -1,7 +1,7 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsIpDao; import com.ycl.mapper.NewsIpDao; import com.ycl.entity.NewsIp; import com.ycl.service.NewsIpService; import org.springframework.stereotype.Service; ycl-platform/src/main/java/com/ycl/service/impl/NewsPoliceServiceImpl.java
@@ -1,10 +1,14 @@ package com.ycl.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.dao.NewsPoliceDao; import com.ycl.mapper.NewsPoliceDao; import com.ycl.entity.NewsPolice; import com.ycl.service.NewsPoliceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; /** * 警员表 @@ -16,5 +20,12 @@ @Service("newsPoliceService") public class NewsPoliceServiceImpl extends ServiceImpl<NewsPoliceDao, NewsPolice> implements NewsPoliceService { @Autowired NewsPoliceDao newsPoliceDao; @Override public NewsPolice savePolice(NewsPolice newsPolice) { return newsPoliceDao.savePolice(newsPolice); } } ycl-platform/src/main/resources/application-dev.yml
@@ -1,66 +1,68 @@ server: port: 8082 tomcat: uri-encoding: UTF-8 servlet: context-path: /air compression: true fdfs: fileUrl: http://140.143.152.226:8410/ groupName: sczhzf soTimeout: 1500 connectTimeout: 600 trackerList: #TrackerList参数,支持多个 - 140.143.152.226:22122 cfg: res: d://resources media-res: 140.143.152.226/media/ snow-flake: datacenterId: 1 machineId: 1 spring: redis: database: 0 host: 42.193.1.25 port: 6379 password: ycl2018 jedis: pool: max-active: 8 max-idle: 8 min-idle: 0 timeout: 0 datasource: url: jdbc:mysql://42.193.1.25:3306/news_website?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false username: root password: 321$YcYl@1970! type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat maxActive: 20 initialSize: 1 maxWait: 60000 minIdle: 1 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: select 'x' testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20 e-mail: sendHost: smtp.qq.com username: 1723292425@qq.com password: qizcitupatzoeeij SMS: ecName: ycl apId: 1 sign: sign url: http://localhost:8082/sccg/text/sms_res server: port: 8082 tomcat: uri-encoding: UTF-8 servlet: context-path: /air compression: true fdfs: fileUrl: http://140.143.152.226:8410/ groupName: sczhzf soTimeout: 1500 connectTimeout: 600 trackerList: #TrackerList参数,支持多个 - 140.143.152.226:22122 cfg: res: d://resources media-res: 140.143.152.226/media/ snow-flake: datacenterId: 1 machineId: 1 spring: redis: database: 0 host: 42.193.1.25 port: 6379 password: ycl2018 jedis: pool: max-active: 8 max-idle: 8 min-idle: 0 timeout: 0 datasource: url: jdbc:mysql://42.193.1.25:3306/news_website?useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false username: root password: 321$YcYl@1970! type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver filters: stat maxActive: 20 initialSize: 1 maxWait: 60000 minIdle: 1 timeBetweenEvictionRunsMillis: 60000 minEvictableIdleTimeMillis: 300000 validationQuery: select 'x' testWhileIdle: true testOnBorrow: false testOnReturn: false poolPreparedStatements: true maxOpenPreparedStatements: 20 e-mail: sendHost: smtp.qq.com username: 1723292425@qq.com password: qizcitupatzoeeij SMS: ecName: ycl apId: 1 sign: sign url: http://localhost:8082/sccg/text/sms_res admin: defaultPassword: 111111 ycl-platform/src/main/resources/application.yml
@@ -1,92 +1,60 @@ spring: profiles: active: dev main: allow-circular-references: true allow-bean-definition-overriding: true mvc: pathmatch: matching-strategy: ant_path_matcher application: name: sccg-platform http: charset: UTF-8 enabled: true force: true servlet: multipart: max-file-size: -1 max-request-size: -1 # jackson: # default-property-inclusion: non_null management: health: rabbit: enabled: false jwt: tokenHeader: Authorization #JWT存储的请求头 secret: platform-secret #JWT加解密使用的密钥 expiration: 604800 #JWT的超期限时间(60*60*24*7) tokenHead: 'Bearer ' #JWT负载中拿到开头 redis: database: sccg key: admin: 'ums:admin' resourceList: 'ums:menuList' expire: common: 86400 # 24小时 #MP配置 mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml global-config: db-config: id-type: auto #逻辑删除配置字段 logic-delete-field: #逻辑删除配置字段 1 删除 logic-delete-value: 1 #逻辑删除配置字段 0 不删除 logic-not-delete-value: 0 knife4j: enable: true #true则是生产环境不允许访问knife4j production: false security: basic: enabled: false secure: ignored: urls: #配置白名单路径 - /swagger-ui.html - /swagger/** - /swagger-ui/* - /swagger-resources/** - /**/v2/api-docs - /doc.html - /webjars/** - /**/*.html - /**/*.js - /**/*.css - /**/*.png - /favicon.ico - /actuator/** - /druid/** - /**/admin/login - /**/admin/register - /**/admin/info - /**/admin/logout - /dict/** - /sccg-region/** - /**/system/portal/logo/search - /**/unauthorized/** - /**/api/** - /**/text/** - /trendAnalysis/** spring: profiles: active: dev main: allow-circular-references: true allow-bean-definition-overriding: true mvc: pathmatch: matching-strategy: ant_path_matcher application: name: sccg-platform http: charset: UTF-8 enabled: true force: true servlet: multipart: max-file-size: -1 max-request-size: -1 # jackson: # default-property-inclusion: non_null management: health: rabbit: enabled: false jwt: tokenHeader: Authorization #JWT存储的请求头 secret: platform-secret #JWT加解密使用的密钥 expiration: 604800 #JWT的超期限时间(60*60*24*7) tokenHead: 'Bearer ' #JWT负载中拿到开头 redis: database: sccg key: admin: 'ums:admin' resourceList: 'ums:menuList' expire: common: 86400 # 24小时 #MP配置 mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml global-config: db-config: id-type: auto #逻辑删除配置字段 logic-delete-field: #逻辑删除配置字段 1 删除 logic-delete-value: 1 #逻辑删除配置字段 0 不删除 logic-not-delete-value: 0 knife4j: enable: true #true则是生产环境不允许访问knife4j production: false ycl-platform/src/main/resources/mapper/NewsAdminDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsAdminDao"> <mapper namespace="com.ycl.mapper.NewsAdminDao"> <resultMap type="com.ycl.entity.NewsAdmin" id="NewsAdminMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsChannelColumnDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsChannelColumnDao"> <mapper namespace="com.ycl.mapper.NewsChannelColumnDao"> <resultMap type="com.ycl.entity.NewsChannelColumn" id="NewsChannelColumnMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsChannelDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsChannelDao"> <mapper namespace="com.ycl.mapper.NewsChannelDao"> <resultMap type="com.ycl.entity.NewsChannel" id="NewsChannelMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsColumnDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsColumnDao"> <mapper namespace="com.ycl.mapper.NewsColumnDao"> <resultMap type="com.ycl.entity.NewsColumn" id="NewsColumnMap"> <result property="id" column="id" jdbcType="VARCHAR"/> ycl-platform/src/main/resources/mapper/NewsColumnInformationDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsColumnInformationDao"> <mapper namespace="com.ycl.mapper.NewsColumnInformationDao"> <resultMap type="com.ycl.entity.NewsColumnInformation" id="NewsColumnInformationMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsDepartmentDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsDepartmentDao"> <mapper namespace="com.ycl.mapper.NewsDepartmentDao"> <resultMap type="com.ycl.entity.NewsDepartment" id="NewsDepartmentMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsDepartmentInformationDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsDepartmentInformationDao"> <mapper namespace="com.ycl.mapper.NewsDepartmentInformationDao"> <resultMap type="com.ycl.entity.NewsDepartmentInformation" id="NewsDepartmentInformationMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsDutyDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsDutyDao"> <mapper namespace="com.ycl.mapper.NewsDutyDao"> <resultMap type="com.ycl.entity.NewsDuty" id="NewsDutyMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsInformationDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsInformationDao"> <mapper namespace="com.ycl.mapper.NewsInformationDao"> <resultMap type="com.ycl.entity.NewsInformation" id="NewsInformationMap"> <result property="id" column="id" jdbcType="VARCHAR"/> ycl-platform/src/main/resources/mapper/NewsInformationPoliceDao.xml
New file @@ -0,0 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsInformationPoliceDao"> <resultMap type="com.ycl.entity.NewsInformationPolice" id="NewsInformationPoliceMap"> <result property="id" column="id" jdbcType="INTEGER"/> <result property="newsInformationId" column="news_information_id" jdbcType="INTEGER"/> <result property="newsPoliceId" column="news_police_id" jdbcType="INTEGER"/> <result property="isSign" column="is_sign" jdbcType="INTEGER"/> </resultMap> <!-- 批量插入 --> <insert id="insertBatch" keyProperty="id" useGeneratedKeys="true"> insert into news_website.news_information_police(news_information_id, news_police_id, is_sign) values <foreach collection="entities" item="entity" separator=","> (#{entity.newsInformationId}, #{entity.newsPoliceId}, #{entity.isSign}) </foreach> </insert> <!-- 批量插入或按主键更新 --> <insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true"> insert into news_website.news_information_police(news_information_id, news_police_id, is_sign) values <foreach collection="entities" item="entity" separator=","> (#{entity.newsInformationId}, #{entity.newsPoliceId}, #{entity.isSign}) </foreach> on duplicate key update news_information_id = values(news_information_id) , news_police_id = values(news_police_id) , is_sign = values(is_sign) </insert> </mapper> ycl-platform/src/main/resources/mapper/NewsIpDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsIpDao"> <mapper namespace="com.ycl.mapper.NewsIpDao"> <resultMap type="com.ycl.entity.NewsIp" id="NewsIpMap"> <result property="id" column="id" jdbcType="INTEGER"/> ycl-platform/src/main/resources/mapper/NewsPoliceDao.xml
@@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.ycl.dao.NewsPoliceDao"> <mapper namespace="com.ycl.mapper.NewsPoliceDao"> <resultMap type="com.ycl.entity.NewsPolice" id="NewsPoliceMap"> <result property="id" column="id" jdbcType="VARCHAR"/> @@ -29,5 +29,9 @@ on duplicate key update rname = values(rname) , create_time = values(create_time) , update_time = values(update_time) , news_department_id = values(news_department_id) , phone = values(phone) </insert> <insert id="savePolice" useGeneratedKeys="true" keyProperty="id" keyColumn="id"> insert into news_website.news_police(rname, create_time, update_time, news_department_id, phone) values (#{entity.rname}, #{entity.createTime}, #{entity.updateTime}, #{entity.newsDepartmentId}, #{entity.phone}) </insert> </mapper> ycl-platform/target/classes/application-dev.yml
File was deleted ycl-platform/target/classes/application-pro.yml
File was deleted ycl-platform/target/classes/application.yml
File was deleted ycl-platform/target/classes/logback-spring.xml
File was deleted ycl-platform/target/classes/mapper/NewsChannelColumnDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsChannelDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsColumnDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsColumnInformationDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsDutyDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsInformationDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsIpDao.xml
File was deleted ycl-platform/target/classes/mapper/NewsPoliceDao.xml
File was deleted