Commit 857fdddb authored by zhangqingle's avatar zhangqingle

增加通知查询 修改 同步

parent 688f7856
...@@ -488,7 +488,7 @@ public class BLessonController extends PaginationController<BLesson> { ...@@ -488,7 +488,7 @@ public class BLessonController extends PaginationController<BLesson> {
* @return * @return
* @author: zhangqingle * @author: zhangqingle
*/ */
@ApiOperation(value = "627 设置为出席/缺席", notes = "设置为出席/缺席") @ApiOperation(value = "627 设置为出勤/缺勤", notes = "设置为出勤/缺勤")
@PostMapping(value = "/setTrainIsSign") @PostMapping(value = "/setTrainIsSign")
public Result setTrainIsSign(CurUser curUser, @Valid SetTrainIsSignDTO setTrainIsSignDTO, BindingResult bindingResult) { public Result setTrainIsSign(CurUser curUser, @Valid SetTrainIsSignDTO setTrainIsSignDTO, BindingResult bindingResult) {
PersistModel data = bLessonService.setTrainIsSign(setTrainIsSignDTO); PersistModel data = bLessonService.setTrainIsSign(setTrainIsSignDTO);
......
...@@ -750,8 +750,11 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -750,8 +750,11 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" <foreach item='item' index='index' collection='model.courseIds' open='(' separator=',' close=')'> #{item} </foreach> " + " <foreach item='item' index='index' collection='model.courseIds' open='(' separator=',' close=')'> #{item} </foreach> " +
" </if> " + " </if> " +
" <if test=\"model.releaseDateSort !=null and model.releaseDateSort !='' and model.releaseDateSort =='0'.toString()\"> ORDER BY bl.release_date DESC </if> "+ " <if test=\"model.releaseDateSort !=null and model.releaseDateSort !='' and model.releaseDateSort =='0'.toString()\"> ORDER BY bl.release_date DESC </if> "+
" <if test=\"model.releaseDateSort !=null and model.releaseDateSort !='' and model.releaseDateSort =='1'.toString()\"> ORDER BY bl.release_date ASC "+ " <if test=\"model.releaseDateSort !=null and model.releaseDateSort !='' and model.releaseDateSort =='1'.toString()\"> ORDER BY bl.release_date ASC </if>"+
" </if> "+ " <if test=\"model.valueConsumeSort !=null and model.valueConsumeSort !='' and model.valueConsumeSort =='0'.toString()\"> ORDER BY CAST(bl.value_consume AS UNSIGNED) DESC </if> "+
" <if test=\"model.valueConsumeSort !=null and model.valueConsumeSort !='' and model.valueConsumeSort =='1'.toString()\"> ORDER BY CAST(bl.value_consume AS UNSIGNED) ASC </if> "+
" <if test=\"model.valueGainSort !=null and model.valueGainSort !='' and model.valueGainSort =='0'.toString()\"> ORDER BY CAST(bl.value_gain AS UNSIGNED) DESC </if> "+
" <if test=\"model.valueGainSort !=null and model.valueGainSort !='' and model.valueGainSort =='1'.toString()\"> ORDER BY CAST(bl.value_gain AS UNSIGNED) ASC </if> "+
"</script>") "</script>")
@ResultMap(value = "BaseResultMap") @ResultMap(value = "BaseResultMap")
List<BLesson> queryListAllLessonByPagination(@Param("model") FindListLessonDTO model); List<BLesson> queryListAllLessonByPagination(@Param("model") FindListLessonDTO model);
......
...@@ -23,6 +23,12 @@ public class FindListLessonDTO { ...@@ -23,6 +23,12 @@ public class FindListLessonDTO {
@ApiModelProperty(value = "发布时间排序(1升序 0降序)",required = true) @ApiModelProperty(value = "发布时间排序(1升序 0降序)",required = true)
private String releaseDateSort; private String releaseDateSort;
@ApiModelProperty(value = "积分消耗(1升序 0降序)",required = true)
private String valueConsumeSort;
@ApiModelProperty(value = "积分奖励(1升序 0降序)",required = true)
private String valueGainSort;
@ApiModelProperty(value = "课程类型 0 课程 1 培训") @ApiModelProperty(value = "课程类型 0 课程 1 培训")
private String lessonType; private String lessonType;
......
package org.rcisoft.business.bmessage.controller;
/*固定导入*/
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.rcisoft.common.controller.PaginationController;
import org.rcisoft.sys.user.bean.CurUser;
import org.springframework.validation.BindingResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.rcisoft.core.result.Result;
import org.rcisoft.core.model.PersistModel;
import org.rcisoft.core.constant.MessageConstant;
import org.rcisoft.core.util.UserUtil;
import javax.validation.Valid;
import org.rcisoft.business.bmessage.entity.BMessage;
import org.rcisoft.business.bmessage.service.BMessageService;
import java.util.List;
/**
* Created by on 2019-11-25 10:55:04.
*/
@RestController
@RequestMapping("bmessage")
public class BMessageController extends PaginationController<BMessage> {
@Autowired
private BMessageService bMessageServiceImpl;
@ApiOperation(value="添加", notes="添加")
//@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PostMapping(value = "/add")
public Result add(CurUser curUser,@Valid BMessage bMessage, BindingResult bindingResult) {
PersistModel data = bMessageServiceImpl.save(bMessage);
return Result.builder(data,
MessageConstant.MESSAGE_ALERT_SUCCESS,
MessageConstant.MESSAGE_ALERT_ERROR,
bMessage);
}
@ApiOperation(value="逻辑删除", notes="逻辑删除")
@ApiImplicitParams({@ApiImplicitParam(name = "id", value = "id", required = false, dataType = "varchar")})
@DeleteMapping("/delete/{id:\\w+}")
public Result delete(CurUser curUser,@Valid String id, BindingResult bindingResult) {
BMessage bMessage = new BMessage();
bMessage.setBusinessId(id);
PersistModel data = bMessageServiceImpl.remove(bMessage);
return Result.builder(data,
MessageConstant.MESSAGE_ALERT_SUCCESS,
MessageConstant.MESSAGE_ALERT_ERROR,
id);
}
@ApiOperation(value="修改", notes="修改")
@ApiImplicitParams({@ApiImplicitParam(name = "businessId", value = "businessId", required = false, dataType = "varchar")})
@PutMapping("/update/{id:\\w+}")
public Result update(CurUser curUser,@Valid BMessage bMessage, BindingResult bindingResult) {
PersistModel data = bMessageServiceImpl.merge(bMessage);
return Result.builder(data,
MessageConstant.MESSAGE_ALERT_SUCCESS,
MessageConstant.MESSAGE_ALERT_ERROR,
bMessage);
}
@ApiOperation(value="查看 集合", notes="查看 集合")
@GetMapping(value = "/query")
public Result list(CurUser curUser) {
return Result.builder(new PersistModel(1),
MessageConstant.MESSAGE_ALERT_SUCCESS,
MessageConstant.MESSAGE_ALERT_ERROR,
bMessageServiceImpl.findAll(curUser));
}
}
package org.rcisoft.business.bmessage.dao;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.rcisoft.core.base.BaseMapper;
import org.rcisoft.business.bmessage.entity.BMessage;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.rcisoft.sys.user.bean.CurUser;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Created with on 2019-11-25 10:55:04.
*/
@Repository
public interface BMessageRepository extends BaseMapper<BMessage> {
/**
* 查询 bMessage
*
*/
@Select("<script>select * from b_message where 1=1 "
+ " and del_flag = 0 "
+ " and corp_id = #{param.corpId} "
+ " order by sort asc "
+ "</script>")
@ResultMap(value = "BaseResultMap" )
List<BMessage> queryBMessages(@Param("param") CurUser curUser);
@Insert("<script>INSERT INTO b_message " +
"(create_date,create_by,update_date,update_by," +
"del_flag,flag,business_id,remarks," +
"`NAME`,time_value,value_type,corp_id,sort)VALUES" +
"<foreach collection=\"list\" item=\"item\" separator=\",\">" +
"(#{item.createDate},#{item.createBy},#{item.updateDate},#{item.updateBy}," +
"#{item.delFlag},#{item.flag},#{item.businessId},#{item.remarks}," +
"#{item.name},#{item.timeValue},#{item.valueType},#{item.corpId},#{item.sort})" +
"</foreach></script>")
int insertList(List<BMessage> bMessageList);
}
package org.rcisoft.business.bmessage.entity;
import lombok.*;
import org.rcisoft.core.entity.IdEntity;
import javax.persistence.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* Created with on 2019-11-25 10:55:03.
*/
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "b_message")
public class BMessage extends IdEntity<BMessage> {
private String name;
private String timeValue;
private String valueType;
private String corpId;
private Integer sort;
}
package org.rcisoft.business.bmessage.service;
import org.rcisoft.business.bmessage.entity.BMessage;
import org.rcisoft.core.model.PersistModel;
import org.rcisoft.core.aop.PageUtil;
import org.rcisoft.sys.user.bean.CurUser;
import java.util.List;
/**
* Created by on 2019-11-25 10:55:03.
*/
public interface BMessageService {
/**
* 保存
* @param bMessage
* @return
*/
PersistModel save(BMessage bMessage);
/**
* 逻辑删除
* @param bMessage
* @return
*/
PersistModel remove(BMessage bMessage);
/**
* 修改
* @param bMessage
* @return
*/
PersistModel merge(BMessage bMessage);
/**
* 根据id查询
* @param id
* @return
*/
BMessage findById(String id);
/**
* 分页查询
* @param curUser
* @return
*/
List<BMessage> findAll(CurUser curUser);
}
package org.rcisoft.business.bmessage.service.impl;
import org.rcisoft.core.util.UserUtil;
import org.rcisoft.core.aop.PageUtil;
import org.rcisoft.core.model.PersistModel;
import org.rcisoft.business.bmessage.dao.BMessageRepository;
import org.rcisoft.business.bmessage.entity.BMessage;
import org.rcisoft.business.bmessage.service.BMessageService;
import org.rcisoft.sys.user.bean.CurUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
/**
* Created by on 2019-11-25 10:55:03.
*/
@Service
@Transactional(readOnly = true,propagation = Propagation.NOT_SUPPORTED)
@Slf4j
public class BMessageServiceImpl implements BMessageService {
@Autowired
private BMessageRepository bMessageRepository;
/**
* 保存 bMessage
* @param bMessage
* @return
*/
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public PersistModel save(BMessage bMessage){
//增加操作
UserUtil.setCurrentPersistOperation(bMessage);
int line = bMessageRepository.insertSelective(bMessage);
return new PersistModel(line);
}
/**
* 逻辑删除
* @param bMessage
* @return
*/
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public PersistModel remove(BMessage bMessage){
UserUtil.setCurrentMergeOperation(bMessage);
bMessage.setDeleted();
int line = bMessageRepository.logicalDelete(bMessage);
return new PersistModel(line);
}
/**
* 修改 bMessage
* @param bMessage
* @return
*/
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override
public PersistModel merge(BMessage bMessage){
UserUtil.setCurrentMergeOperation(bMessage);
int line = bMessageRepository.updateByPrimaryKeySelective(bMessage);
return new PersistModel(line);
}
/**
* 根据id查询 bMessage
* @param id
* @return
*/
public BMessage findById(String id){
return bMessageRepository.selectByPrimaryKey(id);
}
@Override
public List<BMessage> findAll(CurUser curUser) {
return bMessageRepository.queryBMessages(curUser);
}
// /**
// * 分页查询 bMessage
// * @param bMessage
// * @return
// */
// public List<BMessage> findAllByPagination(PageUtil<BMessage> paginationUtility,
// BMessage bMessage){
// bMessage.setStart();
// bMessage.setNotDeleted();
// return bMessageRepository.queryBMessages(bMessage);
// }
}
...@@ -38,5 +38,6 @@ public class MenuMap { ...@@ -38,5 +38,6 @@ public class MenuMap {
menuMap.put("F-MAIN-MANAGE", "0051"); menuMap.put("F-MAIN-MANAGE", "0051");
menuMap.put("F-USER-MANAGE", "0052"); menuMap.put("F-USER-MANAGE", "0052");
menuMap.put("F-ROLE-MANAGE", "0053"); menuMap.put("F-ROLE-MANAGE", "0053");
menuMap.put("F-NOTICE-MANAGE", "0054");
} }
} }
...@@ -89,7 +89,8 @@ public class CurUserAspect { ...@@ -89,7 +89,8 @@ public class CurUserAspect {
int userRoleResult = sysRoleService.addAdminRoleMenuUser(curUser); int userRoleResult = sysRoleService.addAdminRoleMenuUser(curUser);
// 初始化数据字典表 // 初始化数据字典表
sysRoleService.initDictionary(); sysRoleService.initDictionary();
//初始化通知
sysRoleService.initBMessage(curUser);
log.info("--------------------初始化完成--------------------"); log.info("--------------------初始化完成--------------------");
} }
} }
......
...@@ -84,8 +84,10 @@ public class OfficeToPdf { ...@@ -84,8 +84,10 @@ public class OfficeToPdf {
* @param sourceFile * @param sourceFile
* @param destFile * @param destFile
* @return 1 成功 0 失败 -1 错误 * @return 1 成功 0 失败 -1 错误
*
* synchronized
*/ */
public synchronized int transformToPdf(String sourceFile, String destFile){ public int transformToPdf(String sourceFile, String destFile){
LogUtil.fileChangeLog("****************transform + begin***********" + DateFormatUtils.format(new Date(), "HH:mm:ss")); LogUtil.fileChangeLog("****************transform + begin***********" + DateFormatUtils.format(new Date(), "HH:mm:ss"));
OpenOfficeConnection connection = null; OpenOfficeConnection connection = null;
try { try {
......
...@@ -88,4 +88,6 @@ public interface SysRoleService { ...@@ -88,4 +88,6 @@ public interface SysRoleService {
int initDictionary(); int initDictionary();
int initBMessage(CurUser curUser);
} }
...@@ -4,6 +4,8 @@ package org.rcisoft.sys.role.service.impl; ...@@ -4,6 +4,8 @@ package org.rcisoft.sys.role.service.impl;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.rcisoft.business.bdictionary.entity.BDictionary; import org.rcisoft.business.bdictionary.entity.BDictionary;
import org.rcisoft.business.blesson.dto.RoleTypeDepartDTO; import org.rcisoft.business.blesson.dto.RoleTypeDepartDTO;
import org.rcisoft.business.bmessage.dao.BMessageRepository;
import org.rcisoft.business.bmessage.entity.BMessage;
import org.rcisoft.common.model.MenuMap; import org.rcisoft.common.model.MenuMap;
import org.rcisoft.common.util.feignDto.CorpGetManager; import org.rcisoft.common.util.feignDto.CorpGetManager;
import org.rcisoft.common.util.outClient.MTCotactApiRequestClient; import org.rcisoft.common.util.outClient.MTCotactApiRequestClient;
...@@ -47,6 +49,9 @@ public class SysRoleServiceImpl implements SysRoleService { ...@@ -47,6 +49,9 @@ public class SysRoleServiceImpl implements SysRoleService {
@Autowired @Autowired
MTCotactApiRequestClient cotactApiRequestClient; MTCotactApiRequestClient cotactApiRequestClient;
@Autowired
BMessageRepository bMessageRepository;
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT) @Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
@Override @Override
public int persistRole(AddOrUpdateRoleDTO addOrUpdateRoleDTO) { public int persistRole(AddOrUpdateRoleDTO addOrUpdateRoleDTO) {
...@@ -180,7 +185,7 @@ public class SysRoleServiceImpl implements SysRoleService { ...@@ -180,7 +185,7 @@ public class SysRoleServiceImpl implements SysRoleService {
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT) @Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
public int addAdminRoleMenuUser(CurUser curUser) { public int addAdminRoleMenuUser(CurUser curUser) {
String privilege = "M-LESSON-MANAGE,F-ADD-LESSON,F-UPDATE-LESSON,F-CLOSE-LESSON,F-DELETE-LESSON,M-TRAIN-MANAGE,F-ADD-TRAIN,F-UPDATE-TRAIN,F-CLOSE-TRAIN,F-DELETE-TRAIN,M-PRESERVE,F-DOWNLOAD-PRESERVE,F-REPRINT-PRESERVE,F-DELETE-PRESERVE,M-UPLOAD,F-DOWNLOAD-UPLOAD,F-REPRINT-UPLOAD,F-DELETE-UPLOAD,M-CTS-B,F-ONLINE,P-ONLINE-ADD,P-ONLINE-UPDATE,P-ONLINE-APPOINT,P-ONLINE-TRACK,P-ONLINE-RECOMMEND,P-ONLINE-CLOSE,P-ONLINE-DEL,F-UNDERLINE,P-UNDER-ADD,P-UNDER-UPDATE,P-UNDER-APPOINT,P-UNDER-TRACK,P-UNDER-RECOMMEND,P-UNDER-CLOSE,P-UNDER-DEL,F-CATEGORY,P-CATEGORY-ADD,P-CATEGORY-UPDATE,P-CATEGORY-DEL,F-LABEL,P-LABEL-ADD,P-LABEL-UPDATE,P-LABEL-DEL,F-INTEGRAL-M,P-NULL-2,M-QDB,F-QDB,P-QDB-ADD,P-QDB-UPDATE,P-QDB-DELETE,P-QDB-ANALYSIS,F-QES,P-QES-ADD,P-QES-UPDATE,P-QES-DELETE,P-QES-IMPORT,M-PAPER,F-PAPER-CATE,P-PAPER-CATE-ADD,P-PAPER-CATE-UPDATE,P-PAPER-CATE-DELETE,F-PAPER,P-PAPER-ADD,P-PAPER-UPDATE,P-PAPER-DELETE,P-PAPER-CONFIG,P-PAPER-HISTORY-VIEW,P-PAPER-HISTORY-CHECK,M-ANALYSIS,P-ANA-PAPER,P-ANA-EXAM,P-ANA-SCORE,M-SYSTEM,F-MAIN-MANAGE,P-COLUMN,P-BANNER,P-OUTER-LINK,F-USER-MANAGE,P-STOP-START,P-ROLE-EDIT,P-SYNCHRO,F-ROLE-MANAGE,P-ROLE-MANAGE,P-OPERATION,P-DATALIMIT,P-PAPER-CLONE,P-ROLE-DEL"; String privilege = "M-LESSON-MANAGE,F-ADD-LESSON,F-UPDATE-LESSON,F-CLOSE-LESSON,F-DELETE-LESSON,M-TRAIN-MANAGE,F-ADD-TRAIN,F-UPDATE-TRAIN,F-CLOSE-TRAIN,F-DELETE-TRAIN,M-PRESERVE,F-DOWNLOAD-PRESERVE,F-REPRINT-PRESERVE,F-DELETE-PRESERVE,M-UPLOAD,F-DOWNLOAD-UPLOAD,F-REPRINT-UPLOAD,F-DELETE-UPLOAD,M-CTS-B,F-ONLINE,P-ONLINE-ADD,P-ONLINE-UPDATE,P-ONLINE-APPOINT,P-ONLINE-TRACK,P-ONLINE-RECOMMEND,P-ONLINE-CLOSE,P-ONLINE-DEL,F-UNDERLINE,P-UNDER-ADD,P-UNDER-UPDATE,P-UNDER-APPOINT,P-UNDER-TRACK,P-UNDER-RECOMMEND,P-UNDER-CLOSE,P-UNDER-DEL,F-CATEGORY,P-CATEGORY-ADD,P-CATEGORY-UPDATE,P-CATEGORY-DEL,F-LABEL,P-LABEL-ADD,P-LABEL-UPDATE,P-LABEL-DEL,F-INTEGRAL-M,P-NULL-2,M-QDB,F-QDB,P-QDB-ADD,P-QDB-UPDATE,P-QDB-DELETE,P-QDB-ANALYSIS,F-QES,P-QES-ADD,P-QES-UPDATE,P-QES-DELETE,P-QES-IMPORT,M-PAPER,F-PAPER-CATE,P-PAPER-CATE-ADD,P-PAPER-CATE-UPDATE,P-PAPER-CATE-DELETE,F-PAPER,P-PAPER-ADD,P-PAPER-UPDATE,P-PAPER-DELETE,P-PAPER-CONFIG,P-PAPER-HISTORY-VIEW,P-PAPER-HISTORY-CHECK,M-ANALYSIS,P-ANA-PAPER,P-ANA-EXAM,P-ANA-SCORE,M-SYSTEM,F-MAIN-MANAGE,P-COLUMN,P-BANNER,P-OUTER-LINK,F-USER-MANAGE,P-STOP-START,P-ROLE-EDIT,P-SYNCHRO,F-ROLE-MANAGE,P-ROLE-MANAGE,P-OPERATION,P-DATALIMIT,P-PAPER-CLONE,P-ROLE-DEL,F-NOTICE-MANAGE";
//主管理员角色id //主管理员角色id
String mRId = IdGen.uuid(); String mRId = IdGen.uuid();
//初始化角色(新加公司超级管理员) //初始化角色(新加公司超级管理员)
...@@ -309,6 +314,41 @@ public class SysRoleServiceImpl implements SysRoleService { ...@@ -309,6 +314,41 @@ public class SysRoleServiceImpl implements SysRoleService {
return sysUserMapper.initDictionary(dictionaryList); return sysUserMapper.initDictionary(dictionaryList);
} }
@Override
@Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.DEFAULT)
public int initBMessage(CurUser curUser) {
List<BMessage> bMessageList = new ArrayList<>();
BMessage bMessage = new BMessage("","0","1",curUser.getCorpId(),0);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知已报名人员线下培训即将开始");
bMessageList.add(bMessage);
bMessage = new BMessage("","0","1",curUser.getCorpId(),1);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知参考人员在线考试即将结束");
bMessageList.add(bMessage);
bMessage = new BMessage("","","",curUser.getCorpId(),2);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知讲师有人对其主讲的课程或培训发表了评论");
bMessageList.add(bMessage);
bMessage = new BMessage("","","",curUser.getCorpId(),3);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知评论发表人有人回复了该评论");
bMessageList.add(bMessage);
bMessage = new BMessage("","","",curUser.getCorpId(),4);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知被指派了课程");
bMessageList.add(bMessage);
bMessage = new BMessage("","","",curUser.getCorpId(),5);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知被指派了培训");
bMessageList.add(bMessage);
bMessage = new BMessage("","","",curUser.getCorpId(),6);
UserUtil.setCurrentPersistOperation(bMessage);
bMessage.setRemarks("通知被指派了考试");
bMessageList.add(bMessage);
return bMessageRepository.insertList(bMessageList);
}
List<RoleMenuDTO> setRoleMenu(List<String> menuIds,String rId){ List<RoleMenuDTO> setRoleMenu(List<String> menuIds,String rId){
List<RoleMenuDTO> roleMenuDTOs = new ArrayList<>(); List<RoleMenuDTO> roleMenuDTOs = new ArrayList<>();
......
<?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="org.rcisoft.business.bmessage.dao.BMessageRepository">
<resultMap id="BaseResultMap" type="org.rcisoft.business.bmessage.entity.BMessage">
<id column="business_id" jdbcType="VARCHAR" property="businessId"/>
<result column="create_by" jdbcType="VARCHAR" property="createBy"/>
<result column="create_date" jdbcType="TIMESTAMP" property="createDate"/>
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
<result column="del_flag" jdbcType="VARCHAR" property="delFlag"/>
<result column="flag" jdbcType="VARCHAR" property="flag"/>
<result column="remarks" jdbcType="VARCHAR" property="remarks"/>
<result column="NAME" jdbcType="VARCHAR" property="name"/>
<result column="time_value" jdbcType="VARCHAR" property="timeValue"/>
<result column="value_type" jdbcType="VARCHAR" property="valueType"/>
<result column="corp_id" jdbcType="VARCHAR" property="corpId"/>
<result column="sort" jdbcType="INTEGER" property="sort"/>
</resultMap>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment