|
@@ -16,49 +16,45 @@ import static com.ruoyi.common.constant.CommonConstants.*;
|
|
|
|
|
|
/**
|
|
|
* 政协委员招商引资Service业务层处理
|
|
|
- *
|
|
|
+ *
|
|
|
* @author boman
|
|
|
* @date 2024-03-27
|
|
|
*/
|
|
|
@Service
|
|
|
-public class ZxInvestmentServiceImpl implements IZxInvestmentService
|
|
|
-{
|
|
|
+public class ZxInvestmentServiceImpl implements IZxInvestmentService {
|
|
|
@Autowired
|
|
|
private ZxInvestmentMapper zxInvestmentMapper;
|
|
|
|
|
|
/**
|
|
|
* 查询政协委员招商引资
|
|
|
- *
|
|
|
+ *
|
|
|
* @param investmentId 政协委员招商引资主键
|
|
|
* @return 政协委员招商引资
|
|
|
*/
|
|
|
@Override
|
|
|
- public ZxInvestment selectZxInvestmentByInvestmentId(Long investmentId)
|
|
|
- {
|
|
|
+ public ZxInvestment selectZxInvestmentByInvestmentId(Long investmentId) {
|
|
|
return zxInvestmentMapper.selectZxInvestmentByInvestmentId(investmentId);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询政协委员招商引资列表
|
|
|
- *
|
|
|
+ *
|
|
|
* @param zxInvestment 政协委员招商引资
|
|
|
* @return 政协委员招商引资
|
|
|
*/
|
|
|
@Override
|
|
|
- public List<ZxInvestment> selectZxInvestmentList(ZxInvestment zxInvestment)
|
|
|
- {
|
|
|
+ public List<ZxInvestment> selectZxInvestmentList(ZxInvestment zxInvestment) {
|
|
|
return zxInvestmentMapper.selectZxInvestmentList(zxInvestment);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 新增政协委员招商引资
|
|
|
- *
|
|
|
+ *
|
|
|
* @param zxInvestment 政协委员招商引资
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int insertZxInvestment(ZxInvestment zxInvestment)
|
|
|
- {
|
|
|
+ public int insertZxInvestment(ZxInvestment zxInvestment) {
|
|
|
zxInvestment.setUserId(SecurityUtils.getUserId());
|
|
|
zxInvestment.setName(SecurityUtils.getUsername());
|
|
|
zxInvestment.setCreateTime(DateUtils.getNowDate());
|
|
@@ -67,46 +63,36 @@ public class ZxInvestmentServiceImpl implements IZxInvestmentService
|
|
|
|
|
|
/**
|
|
|
* 修改政协委员招商引资
|
|
|
- *
|
|
|
+ *
|
|
|
* @param zxInvestment 政协委员招商引资
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public AjaxResult updateZxInvestment(ZxInvestment zxInvestment)
|
|
|
- {
|
|
|
- ZxInvestment zxInvestmentNew = zxInvestmentMapper.selectZxInvestmentByInvestmentId(zxInvestment.getInvestmentId());
|
|
|
- if (!zxInvestment.getType().equals(zxInvestmentNew.getType()) && zxInvestment.getType().equals(TWO) && !zxInvestmentNew.getType().equals(ONE)){
|
|
|
- return AjaxResult.error("项目已签约");
|
|
|
- }
|
|
|
- if (!zxInvestment.getType().equals(zxInvestmentNew.getType()) && zxInvestment.getType().equals(THR) && !zxInvestmentNew.getType().equals(TWO)){
|
|
|
- return AjaxResult.error("项目未审核");
|
|
|
- }
|
|
|
+ public AjaxResult updateZxInvestment(ZxInvestment zxInvestment) {
|
|
|
zxInvestment.setUpdateTime(DateUtils.getNowDate());
|
|
|
- zxInvestmentMapper.updateZxInvestment(zxInvestment);
|
|
|
+ zxInvestmentMapper.updateZxInvestment(zxInvestment);
|
|
|
return AjaxResult.success();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 批量删除政协委员招商引资
|
|
|
- *
|
|
|
+ *
|
|
|
* @param investmentIds 需要删除的政协委员招商引资主键
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int deleteZxInvestmentByInvestmentIds(Long[] investmentIds)
|
|
|
- {
|
|
|
+ public int deleteZxInvestmentByInvestmentIds(Long[] investmentIds) {
|
|
|
return zxInvestmentMapper.deleteZxInvestmentByInvestmentIds(investmentIds);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 删除政协委员招商引资信息
|
|
|
- *
|
|
|
+ *
|
|
|
* @param investmentId 政协委员招商引资主键
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
- public int deleteZxInvestmentByInvestmentId(Long investmentId)
|
|
|
- {
|
|
|
+ public int deleteZxInvestmentByInvestmentId(Long investmentId) {
|
|
|
return zxInvestmentMapper.deleteZxInvestmentByInvestmentId(investmentId);
|
|
|
}
|
|
|
}
|