| | |
| | | */ |
| | | package org.springblade.modules.taskinfo.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import org.springblade.common.constant.NoConstant; |
| | | import org.springblade.common.tool.EnhancementServicesTool; |
| | | import org.springblade.modules.taskinfo.entity.TaskInfoEntity; |
| | | import org.springblade.modules.taskinfo.entity.TaskinfoPlanEntity; |
| | | import org.springblade.modules.taskinfo.vo.TaskinfoPlanVO; |
| | | import org.springblade.modules.taskinfo.mapper.TaskinfoPlanMapper; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public TaskinfoPlanEntity getOne(Wrapper<TaskinfoPlanEntity> queryWrapper) { |
| | | return baseMapper.getTaskInfoPlanOne(queryWrapper.getEntity().getId()); |
| | | } |
| | | |
| | | @Override |
| | | public boolean save(TaskinfoPlanEntity entity) { |
| | | TaskinfoPlanVO vo = new TaskinfoPlanVO(); |
| | | String str = ""; |
| | |
| | | str = vo.getNo(); |
| | | } |
| | | entity.setNo(NumberUtils.autoCreateNumber(NoConstant.XJJH__PREFIX_NO,str)); |
| | | return super.save(entity); |
| | | EnhancementServicesTool tool = new EnhancementServicesTool<TaskinfoPlanEntity>(); |
| | | tool.resolveEntity(entity); |
| | | |
| | | return SqlHelper.retBool(baseMapper.saveTaskinfoPlan(entity)); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return baseMapper.getMaxNo(); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public boolean updateById(TaskinfoPlanEntity entity) { |
| | | return SqlHelper.retBool(baseMapper.updateTaskinfoPlan(entity)); |
| | | } |
| | | } |