16 changed files with 402 additions and 34 deletions
@ -0,0 +1,19 @@ |
|||||
|
package com.yxt.supervise.crm.api.projectengineeringprogress; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.yxt.common.core.domain.BaseEntity; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/7/19 15:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "项目阶段 ", description = "项目阶段") |
||||
|
@TableName("project_phase") |
||||
|
public class ProjectEngineeringProgress extends BaseEntity { |
||||
|
private String projectSid; |
||||
|
private String nodeKey; |
||||
|
private String nodeValue; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.supervise.crm.api.projectengineeringprogress; |
||||
|
|
||||
|
import com.yxt.common.core.dto.Dto; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/7/19 15:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectEngineeringProgressDto implements Dto { |
||||
|
private String sid; |
||||
|
private String projectSid; |
||||
|
private String nodeKey; |
||||
|
private String nodeValue; |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.supervise.crm.api.projectengineeringprogress; |
||||
|
|
||||
|
import com.yxt.common.core.query.Query; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/7/19 15:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectEngineeringProgressQuery implements Query { |
||||
|
private String id; |
||||
|
private String sid; |
||||
|
private String shSid; |
||||
|
private String projectSid; |
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.supervise.crm.api.projectengineeringprogress; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/7/19 15:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectEngineeringProgressVo implements Vo { |
||||
|
private String projectSid; |
||||
|
private String orderDate; |
||||
|
private String progressDescription; |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
package com.yxt.supervise.crm.biz.projectengineeringprogress; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgress; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressVo; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/23 11:49 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface ProjectEngineeringProgressMapper extends BaseMapper<ProjectEngineeringProgress> { |
||||
|
IPage<ProjectEngineeringProgressVo> selectPageVo(IPage<ProjectEngineeringProgress> page, @Param(Constants.WRAPPER) Wrapper<ProjectEngineeringProgress> qw); |
||||
|
List<ProjectEngineeringProgressVo> getNodeByEnterpriseSid(@Param("enterpriseSid") String enterpriseSid); |
||||
|
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
|
<mapper namespace="com.yxt.supervise.crm.biz.projectengineeringprogress.ProjectEngineeringProgressMapper"> |
||||
|
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
|
<!-- ${ew.customSqlSegment} --> |
||||
|
<select id="selectPageVo" resultType="com.yxt.supervise.crm.api.projectphase.ProjectPhaseVo"> |
||||
|
SELECT cct.* |
||||
|
FROM project_phase cct |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
<select id="getNodeByEnterpriseSid" resultType="com.yxt.supervise.crm.api.projectphase.ProjectPhaseVo"> |
||||
|
select * from project_phase_dictionary where enterpriseSid=#{enterpriseSid} |
||||
|
</select> |
||||
|
</mapper> |
@ -0,0 +1,78 @@ |
|||||
|
package com.yxt.supervise.crm.biz.projectengineeringprogress; |
||||
|
|
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressDto; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressQuery; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/23 11:49 |
||||
|
*/ |
||||
|
@Api(tags = "银行负责人信息") |
||||
|
@RestController |
||||
|
@RequestMapping("v1/ProjectEngineeringProgress") |
||||
|
public class ProjectEngineeringProgressRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private ProjectEngineeringProgressService projectEngineeringProgressService; |
||||
|
@ApiOperation("根据条件分页查询数据的列表") |
||||
|
@PostMapping("/listPage") |
||||
|
public ResultBean<PagerVo<ProjectEngineeringProgressVo>> listPage(@RequestBody PagerQuery<ProjectEngineeringProgressQuery> pq) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
PagerVo<ProjectEngineeringProgressVo> pv = projectEngineeringProgressService.listPageVo(pq); |
||||
|
return rb.success().setData(pv); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
@ApiOperation("保存") |
||||
|
@PostMapping("/save") |
||||
|
public ResultBean save(@RequestBody ProjectEngineeringProgressDto dto) { |
||||
|
return projectEngineeringProgressService.saveProjectEngineeringProgress(dto); |
||||
|
} |
||||
|
|
||||
|
// @ApiOperation("修改")
|
||||
|
// @PostMapping("/update")
|
||||
|
// public ResultBean update(@RequestBody ProjectEngineeringProgressDto dto) {
|
||||
|
// ResultBean rb = ResultBean.fireFail();
|
||||
|
//
|
||||
|
// ResultBean resultBean = ProjectEngineeringProgressService.updateProjectEngineeringProgress(dto);
|
||||
|
// if (!resultBean.getSuccess()) {
|
||||
|
// return rb.setMsg(resultBean.getMsg());
|
||||
|
// }
|
||||
|
// return rb.success().setMsg(resultBean.getMsg());
|
||||
|
// }
|
||||
|
|
||||
|
@ApiOperation("删除") |
||||
|
@DeleteMapping("/delete") |
||||
|
public ResultBean del(@RequestBody String[] sids) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
projectEngineeringProgressService.delBySids(sids); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
@ApiOperation("根据sid查询") |
||||
|
@GetMapping("/getManagerBySid/{sid}") |
||||
|
public ResultBean<ProjectEngineeringProgressVo> getManagerBySid(@PathVariable String sid) { |
||||
|
ResultBean<ProjectEngineeringProgressVo> rb = ResultBean.fireFail(); |
||||
|
ProjectEngineeringProgressVo vo = projectEngineeringProgressService.getManagerBySid(sid); |
||||
|
if (vo == null) { |
||||
|
return rb.setMsg("该银行联系人不存在"); |
||||
|
} |
||||
|
return rb.success().setData(vo); |
||||
|
} |
||||
|
@ApiOperation("根据sid查询") |
||||
|
@GetMapping("/getNodeByProjectSid") |
||||
|
public ResultBean<List<ProjectEngineeringProgressVo>> getNodeByProjectSid(@RequestParam("projectSid") String projectSid) { |
||||
|
return projectEngineeringProgressService.getNodeByProjectSid(projectSid); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,89 @@ |
|||||
|
package com.yxt.supervise.crm.biz.projectengineeringprogress; |
||||
|
|
||||
|
import cn.hutool.core.bean.BeanUtil; |
||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
|
import com.yxt.common.base.service.MybatisBaseService; |
||||
|
import com.yxt.common.base.utils.PagerUtil; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import com.yxt.supervise.crm.api.enterpriseproject.EnterpriseProjectVo; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgress; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressDto; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressQuery; |
||||
|
import com.yxt.supervise.crm.api.projectengineeringprogress.ProjectEngineeringProgressVo; |
||||
|
import com.yxt.supervise.crm.biz.enterpriseproject.EnterpriseProjectService; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/4/23 11:49 |
||||
|
*/ |
||||
|
@Service |
||||
|
public class ProjectEngineeringProgressService extends MybatisBaseService<ProjectEngineeringProgressMapper, ProjectEngineeringProgress> { |
||||
|
@Autowired |
||||
|
com.yxt.supervise.crm.feign.system.SysUserFeign sysUserFeign; |
||||
|
@Autowired |
||||
|
EnterpriseProjectService enterpriseProjectService; |
||||
|
|
||||
|
public PagerVo<ProjectEngineeringProgressVo> listPageVo(PagerQuery<ProjectEngineeringProgressQuery> pq) { |
||||
|
ProjectEngineeringProgressQuery query = pq.getParams(); |
||||
|
QueryWrapper<ProjectEngineeringProgress> qw = new QueryWrapper<>(); |
||||
|
// if(StringUtils.isNotBlank(query.getEnterpriseName())){
|
||||
|
// qw.like("enterpriseName",query.getEnterpriseName());
|
||||
|
// }
|
||||
|
// if(StringUtils.isNotBlank(query.getTelephone())){
|
||||
|
// qw.like("telephone",query.getTelephone());
|
||||
|
// }
|
||||
|
IPage<ProjectEngineeringProgress> page = PagerUtil.queryToPage(pq); |
||||
|
IPage<ProjectEngineeringProgressVo> pagging = baseMapper.selectPageVo(page, qw); |
||||
|
PagerVo<ProjectEngineeringProgressVo> p = PagerUtil.pageToVo(pagging, null); |
||||
|
return p; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 新增 |
||||
|
* @param dto 数据传输对象 |
||||
|
* @return |
||||
|
*/ |
||||
|
public ResultBean saveProjectEngineeringProgress(ProjectEngineeringProgressDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
ProjectEngineeringProgress entity=new ProjectEngineeringProgress(); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.insert(entity); |
||||
|
return rb.success(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 编辑保存银行负责人 |
||||
|
* @param dto 数据传输对象 |
||||
|
* @return |
||||
|
*/ |
||||
|
public ResultBean updateProjectEngineeringProgress(ProjectEngineeringProgressDto dto) { |
||||
|
ResultBean rb = ResultBean.fireFail(); |
||||
|
String dtoSid = dto.getSid(); |
||||
|
ProjectEngineeringProgress entity=fetchBySid(dtoSid); |
||||
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
||||
|
baseMapper.updateById(entity); |
||||
|
return rb.success().setMsg("更新成功"); |
||||
|
} |
||||
|
|
||||
|
public ProjectEngineeringProgressVo getManagerBySid(String sid) { |
||||
|
ProjectEngineeringProgressVo vo = new ProjectEngineeringProgressVo(); |
||||
|
ProjectEngineeringProgress ProjectEngineeringProgress = this.fetchBySid(sid); |
||||
|
BeanUtil.copyProperties(ProjectEngineeringProgress, vo); |
||||
|
return vo; |
||||
|
} |
||||
|
public ResultBean<List<ProjectEngineeringProgressVo>> getNodeByProjectSid(String projectSid) { |
||||
|
ResultBean rb =new ResultBean().fail(); |
||||
|
List<EnterpriseProjectVo> list=enterpriseProjectService.getEnterpriseByProjectSid(projectSid); |
||||
|
List<ProjectEngineeringProgressVo> ProjectEngineeringProgressVoList=baseMapper.getNodeByEnterpriseSid(list.get(0).getEnterpriseSid()); |
||||
|
return rb.success().setData(ProjectEngineeringProgressVoList); |
||||
|
} |
||||
|
} |
@ -0,0 +1,41 @@ |
|||||
|
package com.yxt.supervise.report.biz.datacenter; |
||||
|
|
||||
|
import com.yxt.supervise.report.ds.crm.ShCreditBalanceCrmVo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/10/17 15:17 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectDetailsVo { |
||||
|
private String sid; |
||||
|
private String warehouseName;//仓库名称
|
||||
|
private String warehouseCode;//仓库编码
|
||||
|
private String contacts;//联系人
|
||||
|
private String mob;//手机
|
||||
|
private String telephone;//联系电话
|
||||
|
private String manager;//主管
|
||||
|
private String address;//地址
|
||||
|
private String lngAndLat;//经纬度
|
||||
|
private String longitude;//经度
|
||||
|
private String latitude;//纬度
|
||||
|
private String squareMeter;//平方米
|
||||
|
private String supplierName; |
||||
|
private String supplierType; |
||||
|
private String goodsDetail; |
||||
|
private String tbdate;//放款日期
|
||||
|
private BigDecimal money=new BigDecimal(0);//用信金额
|
||||
|
private String expectedCompletionDate;//预计完工日期
|
||||
|
private String expectedDeliveryDate;//预计到货日期
|
||||
|
private String creditNature;//用信性质
|
||||
|
private String creditStage;//用信阶段
|
||||
|
private BigDecimal hkMoney=new BigDecimal(0); |
||||
|
// List<ShCreditBalanceCrmVo> creditList =new ArrayList<>();
|
||||
|
List<ProjectEngineeringProgressVo> projectEngineeringList=new ArrayList<>(); |
||||
|
List<ProjectSupervisionLogVo> projectSupervisionLogList=new ArrayList<>(); |
||||
|
} |
@ -0,0 +1,15 @@ |
|||||
|
package com.yxt.supervise.report.biz.datacenter; |
||||
|
|
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2023/7/19 15:37 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectEngineeringProgressVo implements Vo { |
||||
|
private String projectSid; |
||||
|
private String orderDate;//日期
|
||||
|
private String progressDescription;//进度
|
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
package com.yxt.supervise.report.biz.datacenter; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
/** |
||||
|
* @author wangpengfei |
||||
|
* @date 2024/10/18 16:11 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ProjectSupervisionLogVo { |
||||
|
private String projectSid; |
||||
|
private String orderDate;//日期
|
||||
|
private String regulatoryWork;//监管工作
|
||||
|
private String workArrangement;//下一步工作安排
|
||||
|
private String remarks;//备注
|
||||
|
} |
Loading…
Reference in new issue