|
|
@ -5,7 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.kms.yg.df.service.BsSgcDfSafeJbxxService; |
|
|
|
import com.kms.system.service.SysUserService; |
|
|
|
import com.kms.yxgh.base.DfException; |
|
|
|
import com.kms.yxgh.common.ApprovalStatusEnum; |
|
|
|
import com.kms.yxgh.common.dto.*; |
|
|
@ -16,9 +16,10 @@ import com.kms.yxgh.df.dto.DfYhPlanSearchDto; |
|
|
|
import com.kms.yxgh.df.mapper.DfYhPlanMapper; |
|
|
|
import com.kms.yxgh.util.BeanCopyUtils; |
|
|
|
import com.shuili.common.core.domain.SearchParam; |
|
|
|
import com.shuili.common.core.domain.entity.SysUser; |
|
|
|
import com.shuili.common.core.service.BaseService; |
|
|
|
import com.shuili.common.utils.StringUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
@ -33,10 +34,10 @@ import java.util.Optional; |
|
|
|
* @date 2023-11-20 |
|
|
|
*/ |
|
|
|
@Service |
|
|
|
@AllArgsConstructor |
|
|
|
public class DfYhPlanService extends BaseService<DfYhPlanMapper, DfYhPlan> implements ApprovalBusinessService<DfYhPlanSearchDto, DfYhPlanDetailDto, DfYhPlan> { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BsSgcDfSafeJbxxService bsSgcDfSafeJbxxService; |
|
|
|
private final SysUserService sysUserService; |
|
|
|
|
|
|
|
public DfYhPlanDetailDto getDetailById(String id) { |
|
|
|
DfYhPlan dfPlan = this.getById(id); |
|
|
@ -124,6 +125,13 @@ public class DfYhPlanService extends BaseService<DfYhPlanMapper, DfYhPlan> imple |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<OperatorDto> getOperatorList(String formId) { |
|
|
|
SysUser user = sysUserService.getById("1"); |
|
|
|
if (user != null) { |
|
|
|
OperatorDto operatorDto = new OperatorDto(); |
|
|
|
operatorDto.setUid(user.getId()); |
|
|
|
operatorDto.setName(user.getNickName()); |
|
|
|
return Collections.singletonList(operatorDto); |
|
|
|
} |
|
|
|
return Collections.emptyList(); |
|
|
|
} |
|
|
|
|
|
|
|