中扬CRM客户关系管理系统
#
LSH
2023-12-02 afa3bc1e2f39f66f59ee9b15d6af16593acdc9a4
src/main/java/com/zy/crm/manager/service/impl/PlanServiceImpl.java
@@ -6,7 +6,10 @@
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;
@Service("planService")
public class PlanServiceImpl extends ServiceImpl<PlanMapper, Plan> implements PlanService {
@@ -14,6 +17,11 @@
    @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
@@ -32,16 +40,16 @@
    }
    @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){