|
@@ -3,6 +3,7 @@ package com.zhongzheng.modules.base.service.impl;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.modules.base.bo.ProfileTpAddBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpAddBo;
|
|
|
import com.zhongzheng.modules.base.bo.ProfileTpBusinessAddBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpBusinessAddBo;
|
|
|
import com.zhongzheng.modules.base.bo.ProfileTpEditBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpEditBo;
|
|
@@ -44,6 +45,9 @@ public class ProfileTpServiceImpl extends ServiceImpl<ProfileTpMapper, ProfileTp
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IProfileTpBusinessService iProfileTpBusinessService;
|
|
private IProfileTpBusinessService iProfileTpBusinessService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ProfileTpMapper profileTpMapper;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public ProfileTpVo queryById(Long profileTpId){
|
|
public ProfileTpVo queryById(Long profileTpId){
|
|
|
ProfileTp db = this.baseMapper.selectById(profileTpId);
|
|
ProfileTp db = this.baseMapper.selectById(profileTpId);
|
|
@@ -59,6 +63,11 @@ public class ProfileTpServiceImpl extends ServiceImpl<ProfileTpMapper, ProfileTp
|
|
|
return entity2Vo(this.list(lqw));
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public List<ProfileTpVo> selectList(ProfileTpQueryBo bo) {
|
|
|
|
|
+ return profileTpMapper.selectList(bo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
* 实体类转化成视图对象
|
|
|
*
|
|
*
|
|
@@ -84,6 +93,7 @@ public class ProfileTpServiceImpl extends ServiceImpl<ProfileTpMapper, ProfileTp
|
|
|
public Boolean insertByAddBo(ProfileTpAddBo bo) {
|
|
public Boolean insertByAddBo(ProfileTpAddBo bo) {
|
|
|
ProfileTp add = BeanUtil.toBean(bo, ProfileTp.class);
|
|
ProfileTp add = BeanUtil.toBean(bo, ProfileTp.class);
|
|
|
validEntityBeforeSave(add);
|
|
validEntityBeforeSave(add);
|
|
|
|
|
+ add.setCode(ServletUtils.getEncoded("ZL"));
|
|
|
add.setCreateTime(DateUtils.getNowTime());
|
|
add.setCreateTime(DateUtils.getNowTime());
|
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
add.setUpdateTime(DateUtils.getNowTime());
|
|
|
boolean result = this.save(add);
|
|
boolean result = this.save(add);
|