| | |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.zy.crm.common.entity.UserYear; |
| | | import com.zy.crm.manager.entity.CompanyMoney; |
| | | import com.zy.crm.manager.entity.Plan; |
| | | import com.zy.crm.manager.mapper.PlanMapper; |
| | | import com.zy.crm.manager.service.PlanService; |
| | | import io.swagger.models.License; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Service("planService") |
| | | public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements PlanService { |
| | |
| | | @Override |
| | | public Plan selectByUuid(Long hostId, String uuid) { |
| | | return this.baseMapper.selectByUuid(hostId, uuid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectPendingTaskCount(Long director) { |
| | | return this.baseMapper.selectPendingTaskCount(director); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Page<Plan> getPage(Page<Plan> page, Long hostId, String deptId, Long userId, String condition) { |
| | | return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId, condition)); |
| | | public Page<Plan> getPage(Page<Plan> page, Long hostId, String deptId, Long userId, Long director,String condition) { |
| | | return page.setRecords(baseMapper.listByPage(page, hostId, deptId, userId,director, condition)); |
| | | } |
| | | |
| | | private String getNextUuid(Long hostId) { |
| | | Plan plan = this.baseMapper.selectPlanByNewestUuid(hostId); |
| | | if (plan == null) { |
| | | return "0001"; |
| | | return "00001"; |
| | | } |
| | | return zerofill(String.valueOf(Integer.parseInt(plan.getUuid()) + 1), 4); |
| | | return zerofill(String.valueOf(Integer.parseInt(plan.getUuid()) + 1), 5); |
| | | } |
| | | |
| | | public static String zerofill(String msg, Integer count){ |
| | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<Plan> selctPlanListByDirector(Long userId){ |
| | | return this.baseMapper.selctPlanListByDirector(userId); |
| | | } |
| | | |
| | | @Override |
| | | public List<Plan> getApproval(Integer settle, Integer assistantHostSign){ |
| | | return this.baseMapper.getApproval(settle,assistantHostSign); |
| | | } |
| | | |
| | | @Override |
| | | public List<Object> selectMonth(){ |
| | | return this.baseMapper.selectMonth(); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserYear> selectUserYear(Long user){ |
| | | return this.baseMapper.selectUserYear(user); |
| | | } |
| | | |
| | | } |