提交合同模块
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.yunzhupaas</groupId>
|
<groupId>com.yunzhupaas</groupId>
|
||||||
<artifactId>yunzhupaas-crm-entity</artifactId>
|
<artifactId>yunzhupaas-cm-entity</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.AssetSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface AssetSubjectMapper extends SuperMapper<AssetSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.ContractEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface ContractMapper extends SuperMapper<ContractEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.MaterialSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface MaterialSubjectMapper extends SuperMapper<MaterialSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.PaymentPlanEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface PaymentPlanMapper extends SuperMapper<PaymentPlanEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.ProductSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface ProductSubjectMapper extends SuperMapper<ProductSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.TaskSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface TaskSubjectMapper extends SuperMapper<TaskSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package com.yunzhupaas.cm.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.WorktypeSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yunzhupaas.base.mapper.SuperMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface WorktypeSubjectMapper extends SuperMapper<WorktypeSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface AssetSubjectService extends SuperService<AssetSubjectEntity> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import java.util.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface ContractService extends SuperService<ContractEntity> {
|
||||||
|
List<ContractEntity> getList(ContractPagination contractPagination);
|
||||||
|
|
||||||
|
List<ContractEntity> getTypeList(ContractPagination contractPagination,String dataType);
|
||||||
|
|
||||||
|
ContractEntity getInfo(String contractid);
|
||||||
|
|
||||||
|
void delete(ContractEntity entity);
|
||||||
|
|
||||||
|
void create(ContractEntity entity);
|
||||||
|
|
||||||
|
boolean update(String contractid, ContractEntity entity);
|
||||||
|
|
||||||
|
String checkForm(ContractForm form,int i);
|
||||||
|
|
||||||
|
void saveOrUpdate(ContractForm contractForm,String id, boolean isSave) throws Exception;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface MaterialSubjectService extends SuperService<MaterialSubjectEntity> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface PaymentPlanService extends SuperService<PaymentPlanEntity> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface ProductSubjectService extends SuperService<ProductSubjectEntity> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface TaskSubjectService extends SuperService<TaskSubjectEntity> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yunzhupaas.cm.service;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.base.service.SuperService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
public interface WorktypeSubjectService extends SuperService<WorktypeSubjectEntity> {
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
package com.yunzhupaas.cm.service.impl;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.cm.mapper.AssetSubjectMapper;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yunzhupaas.base.service.SuperServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import com.yunzhupaas.util.GeneraterSwapUtil;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface;
|
||||||
|
import com.yunzhupaas.database.util.DynamicDataSourceUtil;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import com.yunzhupaas.i18n.util.I18nUtil;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class AssetSubjectServiceImpl extends SuperServiceImpl<AssetSubjectMapper, AssetSubjectEntity> implements AssetSubjectService{
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
package com.yunzhupaas.cm.service.impl;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.cm.mapper.MaterialSubjectMapper;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yunzhupaas.base.service.SuperServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import com.yunzhupaas.util.GeneraterSwapUtil;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface;
|
||||||
|
import com.yunzhupaas.database.util.DynamicDataSourceUtil;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import com.yunzhupaas.i18n.util.I18nUtil;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class MaterialSubjectServiceImpl extends SuperServiceImpl<MaterialSubjectMapper, MaterialSubjectEntity> implements MaterialSubjectService{
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
package com.yunzhupaas.cm.service.impl;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.cm.mapper.PaymentPlanMapper;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yunzhupaas.base.service.SuperServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import com.yunzhupaas.util.GeneraterSwapUtil;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface;
|
||||||
|
import com.yunzhupaas.database.util.DynamicDataSourceUtil;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import com.yunzhupaas.i18n.util.I18nUtil;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class PaymentPlanServiceImpl extends SuperServiceImpl<PaymentPlanMapper, PaymentPlanEntity> implements PaymentPlanService{
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
package com.yunzhupaas.cm.service.impl;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.cm.mapper.ProductSubjectMapper;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yunzhupaas.base.service.SuperServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import com.yunzhupaas.util.GeneraterSwapUtil;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface;
|
||||||
|
import com.yunzhupaas.database.util.DynamicDataSourceUtil;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import com.yunzhupaas.i18n.util.I18nUtil;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class ProductSubjectServiceImpl extends SuperServiceImpl<ProductSubjectMapper, ProductSubjectEntity> implements ProductSubjectService{
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
package com.yunzhupaas.cm.service.impl;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.cm.mapper.TaskSubjectMapper;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yunzhupaas.base.service.SuperServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import com.yunzhupaas.util.GeneraterSwapUtil;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface;
|
||||||
|
import com.yunzhupaas.database.util.DynamicDataSourceUtil;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import com.yunzhupaas.i18n.util.I18nUtil;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TaskSubjectServiceImpl extends SuperServiceImpl<TaskSubjectMapper, TaskSubjectEntity> implements TaskSubjectService{
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
|
||||||
|
package com.yunzhupaas.cm.service.impl;
|
||||||
|
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.cm.mapper.WorktypeSubjectMapper;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.yunzhupaas.base.service.SuperServiceImpl;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import com.yunzhupaas.util.GeneraterSwapUtil;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.database.plugins.DynamicSourceGeneratorInterface;
|
||||||
|
import com.yunzhupaas.database.util.DynamicDataSourceUtil;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
|
import com.yunzhupaas.i18n.util.I18nUtil;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class WorktypeSubjectServiceImpl extends SuperServiceImpl<WorktypeSubjectMapper, WorktypeSubjectEntity> implements WorktypeSubjectService{
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.yunzhupaas</groupId>
|
<groupId>com.yunzhupaas</groupId>
|
||||||
<artifactId>yunzhupaas-crm-biz</artifactId>
|
<artifactId>yunzhupaas-cm-biz</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,833 @@
|
|||||||
|
package com.yunzhupaas.cm.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import com.yunzhupaas.base.ActionResult;
|
||||||
|
import com.yunzhupaas.base.UserInfo;
|
||||||
|
import com.yunzhupaas.exception.DataException;
|
||||||
|
import com.yunzhupaas.permission.entity.UserEntity;
|
||||||
|
import com.yunzhupaas.constant.MsgCode;
|
||||||
|
import com.yunzhupaas.cm.service.*;
|
||||||
|
import com.yunzhupaas.cm.entity.*;
|
||||||
|
import com.yunzhupaas.util.*;
|
||||||
|
import com.yunzhupaas.cm.model.contract.*;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import com.yunzhupaas.flowable.entity.TaskEntity;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import java.util.*;
|
||||||
|
import com.yunzhupaas.model.ExcelModel;
|
||||||
|
import com.yunzhupaas.excel.ExcelExportStyler;
|
||||||
|
import com.yunzhupaas.excel.ExcelHelper;
|
||||||
|
import com.yunzhupaas.annotation.YunzhupaasField;
|
||||||
|
import com.yunzhupaas.base.vo.PageListVO;
|
||||||
|
import com.yunzhupaas.base.vo.PaginationVO;
|
||||||
|
import com.yunzhupaas.base.vo.DownloadVO;
|
||||||
|
import com.yunzhupaas.config.ConfigValueUtil;
|
||||||
|
import com.yunzhupaas.base.entity.ProvinceEntity;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
import com.yunzhupaas.flowable.entity.TaskEntity;
|
||||||
|
import com.yunzhupaas.exception.WorkFlowException;
|
||||||
|
import com.yunzhupaas.model.visualJson.UploaderTemplateModel;
|
||||||
|
import com.yunzhupaas.base.util.FormExecelUtils;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
import cn.afterturn.easypoi.excel.ExcelExportUtil;
|
||||||
|
import cn.afterturn.easypoi.excel.ExcelImportUtil;
|
||||||
|
import cn.afterturn.easypoi.excel.entity.ExportParams;
|
||||||
|
import cn.afterturn.easypoi.excel.entity.ImportParams;
|
||||||
|
import cn.afterturn.easypoi.excel.entity.params.ExcelExportEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.entity.enmus.ExcelType;
|
||||||
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||||
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.io.InputStream;
|
||||||
|
import com.yunzhupaas.onlinedev.model.ExcelImFieldModel;
|
||||||
|
import com.yunzhupaas.base.model.OnlineImport.ImportDataModel;
|
||||||
|
import com.yunzhupaas.base.model.OnlineImport.ImportFormCheckUniqueModel;
|
||||||
|
import com.yunzhupaas.base.model.OnlineImport.ExcelImportModel;
|
||||||
|
import com.yunzhupaas.base.model.OnlineImport.VisualImportModel;
|
||||||
|
import cn.xuyanwu.spring.file.storage.FileInfo;
|
||||||
|
import lombok.Cleanup;
|
||||||
|
import com.yunzhupaas.model.visualJson.config.HeaderModel;
|
||||||
|
import com.yunzhupaas.base.model.ColumnDataModel;
|
||||||
|
import com.yunzhupaas.base.util.VisualUtils;
|
||||||
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@RestController
|
||||||
|
@Tag(name = "合同管理" , description = "4")
|
||||||
|
@RequestMapping("/api/cm/Contract")
|
||||||
|
public class ContractController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private GeneraterSwapUtil generaterSwapUtil;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private UserProvider userProvider;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ContractService contractService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ProductSubjectService productSubjectService;
|
||||||
|
@Autowired
|
||||||
|
private MaterialSubjectService materialSubjectService;
|
||||||
|
@Autowired
|
||||||
|
private WorktypeSubjectService worktypeSubjectService;
|
||||||
|
@Autowired
|
||||||
|
private AssetSubjectService assetSubjectService;
|
||||||
|
@Autowired
|
||||||
|
private TaskSubjectService taskSubjectService;
|
||||||
|
@Autowired
|
||||||
|
private PaymentPlanService paymentPlanService;
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ConfigValueUtil configValueUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*
|
||||||
|
* @param contractPagination
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Operation(summary = "获取列表")
|
||||||
|
@PostMapping("/getList")
|
||||||
|
public ActionResult list(@RequestBody ContractPagination contractPagination)throws Exception{
|
||||||
|
List<ContractEntity> list= contractService.getList(contractPagination);
|
||||||
|
List<Map<String, Object>> realList=new ArrayList<>();
|
||||||
|
for (ContractEntity entity : list) {
|
||||||
|
Map<String, Object> contractMap=JsonUtil.entityToMap(entity);
|
||||||
|
contractMap.put("id", contractMap.get("contract_id"));
|
||||||
|
//副表数据
|
||||||
|
//子表数据
|
||||||
|
List<ProductSubjectEntity> productSubjectList = entity.getProductSubject();
|
||||||
|
contractMap.put("tableProductList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
contractMap.put("productSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
List<MaterialSubjectEntity> materialSubjectList = entity.getMaterialSubject();
|
||||||
|
contractMap.put("tableMaterialList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
contractMap.put("materialSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
List<WorktypeSubjectEntity> worktypeSubjectList = entity.getWorktypeSubject();
|
||||||
|
contractMap.put("tableWorktypeList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
contractMap.put("worktypeSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
List<AssetSubjectEntity> assetSubjectList = entity.getAssetSubject();
|
||||||
|
contractMap.put("tableAssetList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
contractMap.put("assetSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
List<TaskSubjectEntity> taskSubjectList = entity.getTaskSubject();
|
||||||
|
contractMap.put("tableTaskList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
contractMap.put("taskSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
List<PaymentPlanEntity> paymentPlanList = entity.getPaymentPlan();
|
||||||
|
contractMap.put("tableField3494b2",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
contractMap.put("paymentPlanList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
realList.add(contractMap);
|
||||||
|
}
|
||||||
|
//数据转换
|
||||||
|
boolean isPc = "pc".equals(ServletUtil.getHeader("yunzhupaas-origin" ));
|
||||||
|
realList = generaterSwapUtil.swapDataList(realList, ContractConstant.getFormData(), ContractConstant.getColumnData(), contractPagination.getModuleId(),isPc?false:false);
|
||||||
|
|
||||||
|
//流程状态添加
|
||||||
|
generaterSwapUtil.getFlowStatus(realList);
|
||||||
|
//返回对象
|
||||||
|
PageListVO vo = new PageListVO();
|
||||||
|
vo.setList(realList);
|
||||||
|
PaginationVO page = JsonUtil.getJsonToBean(contractPagination, PaginationVO.class);
|
||||||
|
vo.setPagination(page);
|
||||||
|
return ActionResult.success(vo);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 创建
|
||||||
|
*
|
||||||
|
* @param contractForm
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/{id}")
|
||||||
|
@Operation(summary = "创建")
|
||||||
|
public ActionResult create(@PathVariable("id") String id, @RequestBody @Valid ContractForm contractForm) {
|
||||||
|
String b = contractService.checkForm(contractForm,0);
|
||||||
|
if (StringUtil.isNotEmpty(b)){
|
||||||
|
return ActionResult.fail(b );
|
||||||
|
}
|
||||||
|
try{
|
||||||
|
contractService.saveOrUpdate(contractForm, id ,true);
|
||||||
|
}catch(Exception e){
|
||||||
|
return ActionResult.fail(MsgCode.FA028.get());
|
||||||
|
}
|
||||||
|
return ActionResult.success(MsgCode.SU001.get());
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 导出Excel
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Operation(summary = "导出Excel")
|
||||||
|
@PostMapping("/Actions/Export")
|
||||||
|
public ActionResult Export(@RequestBody ContractPagination contractPagination) throws IOException {
|
||||||
|
if (StringUtil.isEmpty(contractPagination.getSelectKey())){
|
||||||
|
return ActionResult.fail(MsgCode.IMP011.get());
|
||||||
|
}
|
||||||
|
List<ContractEntity> list= contractService.getList(contractPagination);
|
||||||
|
List<Map<String, Object>> realList=new ArrayList<>();
|
||||||
|
for (ContractEntity entity : list) {
|
||||||
|
Map<String, Object> contractMap=JsonUtil.entityToMap(entity);
|
||||||
|
contractMap.put("id", contractMap.get("contract_id"));
|
||||||
|
//副表数据
|
||||||
|
//子表数据
|
||||||
|
List<ProductSubjectEntity> productSubjectList = entity.getProductSubject();
|
||||||
|
contractMap.put("tableProductList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
contractMap.put("productSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
List<MaterialSubjectEntity> materialSubjectList = entity.getMaterialSubject();
|
||||||
|
contractMap.put("tableMaterialList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
contractMap.put("materialSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
List<WorktypeSubjectEntity> worktypeSubjectList = entity.getWorktypeSubject();
|
||||||
|
contractMap.put("tableWorktypeList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
contractMap.put("worktypeSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
List<AssetSubjectEntity> assetSubjectList = entity.getAssetSubject();
|
||||||
|
contractMap.put("tableAssetList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
contractMap.put("assetSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
List<TaskSubjectEntity> taskSubjectList = entity.getTaskSubject();
|
||||||
|
contractMap.put("tableTaskList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
contractMap.put("taskSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
List<PaymentPlanEntity> paymentPlanList = entity.getPaymentPlan();
|
||||||
|
contractMap.put("tableField3494b2",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
contractMap.put("paymentPlanList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
realList.add(contractMap);
|
||||||
|
}
|
||||||
|
//数据转换
|
||||||
|
realList = generaterSwapUtil.swapDataList(realList, ContractConstant.getFormData(), ContractConstant.getColumnData(), contractPagination.getModuleId(),false);
|
||||||
|
String[]keys=!StringUtil.isEmpty(contractPagination.getSelectKey())?contractPagination.getSelectKey():new String[0];
|
||||||
|
UserInfo userInfo=userProvider.get();
|
||||||
|
String menuFullName = generaterSwapUtil.getMenuName(contractPagination.getMenuId());
|
||||||
|
|
||||||
|
DownloadVO vo=this.creatModelExcel(configValueUtil.getTemporaryFilePath(),realList,keys,userInfo,menuFullName);
|
||||||
|
return ActionResult.success(vo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出表格方法
|
||||||
|
*/
|
||||||
|
public DownloadVO creatModelExcel(String path,List<Map<String, Object>>list,String[]keys,UserInfo userInfo,String menuFullName){
|
||||||
|
DownloadVO vo=DownloadVO.builder().build();
|
||||||
|
List<ExcelExportEntity> entitys=new ArrayList<>();
|
||||||
|
if(keys.length>0){
|
||||||
|
ExcelExportEntity tableProductListExcelEntity = new ExcelExportEntity("产品清单(tableProductList)","tableProductList");
|
||||||
|
List<ExcelExportEntity> tableProductListList = new ArrayList<>();
|
||||||
|
ExcelExportEntity tableMaterialListExcelEntity = new ExcelExportEntity("材料清单(tableMaterialList)","tableMaterialList");
|
||||||
|
List<ExcelExportEntity> tableMaterialListList = new ArrayList<>();
|
||||||
|
ExcelExportEntity tableWorktypeListExcelEntity = new ExcelExportEntity("人力清单(tableWorktypeList)","tableWorktypeList");
|
||||||
|
List<ExcelExportEntity> tableWorktypeListList = new ArrayList<>();
|
||||||
|
ExcelExportEntity tableAssetListExcelEntity = new ExcelExportEntity("资产租赁(tableAssetList)","tableAssetList");
|
||||||
|
List<ExcelExportEntity> tableAssetListList = new ArrayList<>();
|
||||||
|
ExcelExportEntity tableTaskListExcelEntity = new ExcelExportEntity("工作量清单(tableTaskList)","tableTaskList");
|
||||||
|
List<ExcelExportEntity> tableTaskListList = new ArrayList<>();
|
||||||
|
ExcelExportEntity tableField3494b2ExcelEntity = new ExcelExportEntity("付款计划(tableField3494b2)","tableField3494b2");
|
||||||
|
List<ExcelExportEntity> tableField3494b2List = new ArrayList<>();
|
||||||
|
for(String key:keys){
|
||||||
|
switch(key){
|
||||||
|
case "contract_type" :
|
||||||
|
entitys.add(new ExcelExportEntity("合同类型" ,"contract_type"));
|
||||||
|
break;
|
||||||
|
case "contract_temp_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("引用模版" ,"contract_temp_id"));
|
||||||
|
break;
|
||||||
|
case "contract_name" :
|
||||||
|
entitys.add(new ExcelExportEntity("合同名称" ,"contract_name"));
|
||||||
|
break;
|
||||||
|
case "contract_code" :
|
||||||
|
entitys.add(new ExcelExportEntity("合同编码" ,"contract_code"));
|
||||||
|
break;
|
||||||
|
case "org_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("归属组织" ,"org_id"));
|
||||||
|
break;
|
||||||
|
case "project_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("归属项目" ,"project_id"));
|
||||||
|
break;
|
||||||
|
case "contract_category" :
|
||||||
|
entitys.add(new ExcelExportEntity("合同分类" ,"contract_category"));
|
||||||
|
break;
|
||||||
|
case "contract_date" :
|
||||||
|
entitys.add(new ExcelExportEntity("签约日期" ,"contract_date"));
|
||||||
|
break;
|
||||||
|
case "effective_date" :
|
||||||
|
entitys.add(new ExcelExportEntity("开始日期" ,"effective_date"));
|
||||||
|
break;
|
||||||
|
case "expiry_date" :
|
||||||
|
entitys.add(new ExcelExportEntity("结束日期" ,"expiry_date"));
|
||||||
|
break;
|
||||||
|
case "is_sub_contract" :
|
||||||
|
entitys.add(new ExcelExportEntity("是否子合同" ,"is_sub_contract"));
|
||||||
|
break;
|
||||||
|
case "ref_contract_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("关联合同" ,"ref_contract_id"));
|
||||||
|
break;
|
||||||
|
case "major_person_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("经办人" ,"major_person_id"));
|
||||||
|
break;
|
||||||
|
case "print_temp_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("打印合同模版" ,"print_temp_id"));
|
||||||
|
break;
|
||||||
|
case "remark" :
|
||||||
|
entitys.add(new ExcelExportEntity("备注" ,"remark"));
|
||||||
|
break;
|
||||||
|
case "our_company_type" :
|
||||||
|
entitys.add(new ExcelExportEntity("我方类型" ,"our_company_type"));
|
||||||
|
break;
|
||||||
|
case "our_company_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("我方单位" ,"our_company_id"));
|
||||||
|
break;
|
||||||
|
case "our_company_name" :
|
||||||
|
entitys.add(new ExcelExportEntity("我方名称" ,"our_company_name"));
|
||||||
|
break;
|
||||||
|
case "second_party_type" :
|
||||||
|
entitys.add(new ExcelExportEntity("合作方类型" ,"second_party_type"));
|
||||||
|
break;
|
||||||
|
case "second_party_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("合作单位" ,"second_party_id"));
|
||||||
|
break;
|
||||||
|
case "second_party_name" :
|
||||||
|
entitys.add(new ExcelExportEntity("合作方名称" ,"second_party_name"));
|
||||||
|
break;
|
||||||
|
case "third_party_type" :
|
||||||
|
entitys.add(new ExcelExportEntity("第三方类型" ,"third_party_type"));
|
||||||
|
break;
|
||||||
|
case "third_party_id" :
|
||||||
|
entitys.add(new ExcelExportEntity("第三方单位" ,"third_party_id"));
|
||||||
|
break;
|
||||||
|
case "third_party_name" :
|
||||||
|
entitys.add(new ExcelExportEntity("第三方名称" ,"third_party_name"));
|
||||||
|
break;
|
||||||
|
case "contract_money" :
|
||||||
|
entitys.add(new ExcelExportEntity("原合同金额" ,"contract_money"));
|
||||||
|
break;
|
||||||
|
case "final_contract_amount" :
|
||||||
|
entitys.add(new ExcelExportEntity("最终签约金额" ,"final_contract_amount"));
|
||||||
|
break;
|
||||||
|
case "final_amount_upper" :
|
||||||
|
entitys.add(new ExcelExportEntity("签约金额大写" ,"final_amount_upper"));
|
||||||
|
break;
|
||||||
|
case "tax_amount" :
|
||||||
|
entitys.add(new ExcelExportEntity("税额" ,"tax_amount"));
|
||||||
|
break;
|
||||||
|
case "excluding_tax_amount" :
|
||||||
|
entitys.add(new ExcelExportEntity("不含税金额" ,"excluding_tax_amount"));
|
||||||
|
break;
|
||||||
|
case "contract_files" :
|
||||||
|
entitys.add(new ExcelExportEntity("合同附件" ,"contract_files"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-product_id":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("产品名称" ,"product_id"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-brand":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("品牌" ,"brand"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-product_model":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("规格型号" ,"product_model"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-quantity":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("数量" ,"quantity"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-unit_price":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("单价" ,"unit_price"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-quantity_unit":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("单位" ,"quantity_unit"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-currency":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("币种" ,"currency"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-total_amount":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("总金额" ,"total_amount"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-discount_type":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("折扣类型" ,"discount_type"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-discount_value":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("折扣值" ,"discount_value"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-final_amount":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("最终金额" ,"final_amount"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-tax_rate":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("税率" ,"tax_rate"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-tax_amount":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("税额" ,"tax_amount"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-warranty_period":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("保修期" ,"warranty_period"));
|
||||||
|
break;
|
||||||
|
case "tableProductList-warranty_terms":
|
||||||
|
tableProductListList.add(new ExcelExportEntity("保修条款" ,"warranty_terms"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-material_id":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("材料名称" ,"material_id"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-brand":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("品牌" ,"brand"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-quantity":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("数量" ,"quantity"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-unit_price":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("单价" ,"unit_price"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-quantity_unit":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("单位" ,"quantity_unit"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-currency":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("币种" ,"currency"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-total_amount":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("总金额" ,"total_amount"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-tax_rate":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("税率" ,"tax_rate"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-tax_amount":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("税额" ,"tax_amount"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-warranty_period":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("保修期" ,"warranty_period"));
|
||||||
|
break;
|
||||||
|
case "tableMaterialList-warranty_terms":
|
||||||
|
tableMaterialListList.add(new ExcelExportEntity("保修条款" ,"warranty_terms"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-work_type_id":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("工种" ,"work_type_id"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-quantity":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("数量" ,"quantity"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-unit_price":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("销售单价" ,"unit_price"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-quantity_unit":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("数量单位" ,"quantity_unit"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-currency":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("币种" ,"currency"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-total_amount":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("总金额" ,"total_amount"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-discount_type":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("折扣类型" ,"discount_type"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-discount_value":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("折扣值" ,"discount_value"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-final_amount":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("最终金额" ,"final_amount"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-tax_rate":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("税率" ,"tax_rate"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-tax_amount":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("税额" ,"tax_amount"));
|
||||||
|
break;
|
||||||
|
case "tableWorktypeList-work_description":
|
||||||
|
tableWorktypeListList.add(new ExcelExportEntity("工种描述" ,"work_description"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-asset_id":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("资产名称" ,"asset_id"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-begin_date":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("开始日期" ,"begin_date"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-end_date":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("结束日期" ,"end_date"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-quantity":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("租赁天数" ,"quantity"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-unit_price":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("租赁单价" ,"unit_price"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-quantity_unit":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("单位" ,"quantity_unit"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-currency":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("币种" ,"currency"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-total_amount":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("总金额" ,"total_amount"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-discount_type":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("折扣类型" ,"discount_type"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-discount_value":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("折扣值" ,"discount_value"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-final_amount":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("最终金额" ,"final_amount"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-tax_rate":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("税率" ,"tax_rate"));
|
||||||
|
break;
|
||||||
|
case "tableAssetList-tax_amount":
|
||||||
|
tableAssetListList.add(new ExcelExportEntity("税额" ,"tax_amount"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-task_name":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("任务名称" ,"task_name"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-task_description":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("任务描述" ,"task_description"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-quantity":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("数量" ,"quantity"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-unit_price":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("单价" ,"unit_price"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-quantity_unit":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("单位" ,"quantity_unit"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-currency":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("币种" ,"currency"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-total_amount":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("总金额" ,"total_amount"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-discount_type":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("折扣类型" ,"discount_type"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-discount_value":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("折扣值" ,"discount_value"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-final_amount":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("最终金额" ,"final_amount"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-tax_rate":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("税率" ,"tax_rate"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-tax_amount":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("税额" ,"tax_amount"));
|
||||||
|
break;
|
||||||
|
case "tableTaskList-remark":
|
||||||
|
tableTaskListList.add(new ExcelExportEntity("备注" ,"remark"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-plan_seq_num":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("序号" ,"plan_seq_num"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-payment_name":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("款项名称" ,"payment_name"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-billing_item_id":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("款项类型" ,"billing_item_id"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-payment_condition":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("付款条件" ,"payment_condition"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-plan_date":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("预计付款日期" ,"plan_date"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-payment_ratio":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("付款比例" ,"payment_ratio"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-payment_amount":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("付款金额" ,"payment_amount"));
|
||||||
|
break;
|
||||||
|
case "tableField3494b2-remark":
|
||||||
|
tableField3494b2List.add(new ExcelExportEntity("备注" ,"remark"));
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(tableProductListList.size() > 0){
|
||||||
|
tableProductListExcelEntity.setList(tableProductListList);
|
||||||
|
entitys.add(tableProductListExcelEntity);
|
||||||
|
}
|
||||||
|
if(tableMaterialListList.size() > 0){
|
||||||
|
tableMaterialListExcelEntity.setList(tableMaterialListList);
|
||||||
|
entitys.add(tableMaterialListExcelEntity);
|
||||||
|
}
|
||||||
|
if(tableWorktypeListList.size() > 0){
|
||||||
|
tableWorktypeListExcelEntity.setList(tableWorktypeListList);
|
||||||
|
entitys.add(tableWorktypeListExcelEntity);
|
||||||
|
}
|
||||||
|
if(tableAssetListList.size() > 0){
|
||||||
|
tableAssetListExcelEntity.setList(tableAssetListList);
|
||||||
|
entitys.add(tableAssetListExcelEntity);
|
||||||
|
}
|
||||||
|
if(tableTaskListList.size() > 0){
|
||||||
|
tableTaskListExcelEntity.setList(tableTaskListList);
|
||||||
|
entitys.add(tableTaskListExcelEntity);
|
||||||
|
}
|
||||||
|
if(tableField3494b2List.size() > 0){
|
||||||
|
tableField3494b2ExcelEntity.setList(tableField3494b2List);
|
||||||
|
entitys.add(tableField3494b2ExcelEntity);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ExportParams exportParams = new ExportParams(null, "表单信息");
|
||||||
|
exportParams.setType(ExcelType.XSSF);
|
||||||
|
try{
|
||||||
|
@Cleanup Workbook workbook = new HSSFWorkbook();
|
||||||
|
if (entitys.size()>0){
|
||||||
|
if (list.size()==0){
|
||||||
|
list.add(new HashMap<>());
|
||||||
|
}
|
||||||
|
//去除空数据
|
||||||
|
List<Map<String, Object>> dataList = new ArrayList<>();
|
||||||
|
for (Map<String, Object> map : list) {
|
||||||
|
int i = 0;
|
||||||
|
for (String key : keys) {
|
||||||
|
//子表
|
||||||
|
if (key.toLowerCase().startsWith("tablefield")) {
|
||||||
|
String tableField = key.substring(0, key.indexOf("-" ));
|
||||||
|
String field = key.substring(key.indexOf("-" ) + 1);
|
||||||
|
Object o = map.get(tableField);
|
||||||
|
if (o != null) {
|
||||||
|
List<Map<String, Object>> childList = (List<Map<String, Object>>) o;
|
||||||
|
for (Map<String, Object> childMap : childList) {
|
||||||
|
if (childMap.get(field) != null) {
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Object o = map.get(key);
|
||||||
|
if (o != null) {
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (i > 0) {
|
||||||
|
dataList.add(map);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
List<ExcelExportEntity> mergerEntitys = new ArrayList<>(entitys);
|
||||||
|
List<Map<String, Object>> mergerList=new ArrayList<>(dataList);
|
||||||
|
//复杂表头-表头和数据处理
|
||||||
|
ColumnDataModel columnDataModel = JsonUtil.getJsonToBean(ContractConstant.getColumnData(), ColumnDataModel.class);
|
||||||
|
List<HeaderModel> complexHeaderList = columnDataModel.getComplexHeaderList();
|
||||||
|
if (!Objects.equals(columnDataModel.getType(), 3) && !Objects.equals(columnDataModel.getType(), 5)) {
|
||||||
|
entitys = VisualUtils.complexHeaderHandel(entitys, complexHeaderList, Objects.equals(columnDataModel.getType(), 4));
|
||||||
|
dataList = VisualUtils.complexHeaderDataHandel(dataList, complexHeaderList, Objects.equals(columnDataModel.getType(), 4));
|
||||||
|
}
|
||||||
|
|
||||||
|
exportParams.setStyle(ExcelExportStyler.class);
|
||||||
|
workbook = ExcelExportUtil.exportExcel(exportParams, entitys, dataList);
|
||||||
|
VisualUtils.mergerVertical(workbook, mergerEntitys, mergerList);
|
||||||
|
ExcelModel excelModel = generaterSwapUtil.getExcelParams(ContractConstant.getFormData(),Arrays.asList(keys));
|
||||||
|
ExcelHelper helper = new ExcelHelper();
|
||||||
|
helper.init(workbook, exportParams, entitys, excelModel);
|
||||||
|
helper.doPreHandle();
|
||||||
|
helper.doPostHandle();
|
||||||
|
}
|
||||||
|
String fileName = menuFullName +"_"+ DateUtil.dateNow("yyyyMMddHHmmss") + ".xls";
|
||||||
|
MultipartFile multipartFile = ExcelUtil.workbookToCommonsMultipartFile(workbook, fileName);
|
||||||
|
String temporaryFilePath = configValueUtil.getTemporaryFilePath();
|
||||||
|
FileInfo fileInfo = FileUploadUtils.uploadFile(multipartFile, temporaryFilePath, fileName);
|
||||||
|
vo.setName(fileInfo.getFilename());
|
||||||
|
vo.setUrl(UploaderUtil.uploaderFile(fileInfo.getFilename() + "#" + "Temporary") + "&name=" + fileName);
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.error("信息导出Excel错误:{}", e.getMessage());
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
return vo;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Operation(summary = "删除")
|
||||||
|
@DeleteMapping("/{id}")
|
||||||
|
@Transactional
|
||||||
|
public ActionResult delete(@PathVariable("id") String id,@RequestParam(name = "forceDel",defaultValue = "false") boolean forceDel) throws Exception{
|
||||||
|
ContractEntity entity= contractService.getInfo(id);
|
||||||
|
if(entity!=null){
|
||||||
|
if(!forceDel){
|
||||||
|
String errMsg = generaterSwapUtil.deleteFlowTask(entity.getFlowTaskId());
|
||||||
|
if (StringUtil.isNotEmpty(errMsg)) {
|
||||||
|
throw new DataException(errMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//主表数据删除
|
||||||
|
contractService.delete(entity);
|
||||||
|
QueryWrapper<ProductSubjectEntity> queryWrapperProductSubject=new QueryWrapper<>();
|
||||||
|
queryWrapperProductSubject.lambda().eq(ProductSubjectEntity::getContractId,entity.getContractId());
|
||||||
|
//子表数据删除
|
||||||
|
productSubjectService.remove(queryWrapperProductSubject);
|
||||||
|
QueryWrapper<MaterialSubjectEntity> queryWrapperMaterialSubject=new QueryWrapper<>();
|
||||||
|
queryWrapperMaterialSubject.lambda().eq(MaterialSubjectEntity::getContractId,entity.getContractId());
|
||||||
|
//子表数据删除
|
||||||
|
materialSubjectService.remove(queryWrapperMaterialSubject);
|
||||||
|
QueryWrapper<WorktypeSubjectEntity> queryWrapperWorktypeSubject=new QueryWrapper<>();
|
||||||
|
queryWrapperWorktypeSubject.lambda().eq(WorktypeSubjectEntity::getContractId,entity.getContractId());
|
||||||
|
//子表数据删除
|
||||||
|
worktypeSubjectService.remove(queryWrapperWorktypeSubject);
|
||||||
|
QueryWrapper<AssetSubjectEntity> queryWrapperAssetSubject=new QueryWrapper<>();
|
||||||
|
queryWrapperAssetSubject.lambda().eq(AssetSubjectEntity::getContractId,entity.getContractId());
|
||||||
|
//子表数据删除
|
||||||
|
assetSubjectService.remove(queryWrapperAssetSubject);
|
||||||
|
QueryWrapper<TaskSubjectEntity> queryWrapperTaskSubject=new QueryWrapper<>();
|
||||||
|
queryWrapperTaskSubject.lambda().eq(TaskSubjectEntity::getContractId,entity.getContractId());
|
||||||
|
//子表数据删除
|
||||||
|
taskSubjectService.remove(queryWrapperTaskSubject);
|
||||||
|
QueryWrapper<PaymentPlanEntity> queryWrapperPaymentPlan=new QueryWrapper<>();
|
||||||
|
queryWrapperPaymentPlan.lambda().eq(PaymentPlanEntity::getContractId,entity.getContractId());
|
||||||
|
//子表数据删除
|
||||||
|
paymentPlanService.remove(queryWrapperPaymentPlan);
|
||||||
|
}
|
||||||
|
return ActionResult.success(MsgCode.SU003.get());
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
* @param obj
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@DeleteMapping("/batchRemove")
|
||||||
|
@Transactional
|
||||||
|
@Operation(summary = "批量删除")
|
||||||
|
public ActionResult batchRemove(@RequestBody Object obj){
|
||||||
|
Map<String, Object> objectMap = JsonUtil.entityToMap(obj);
|
||||||
|
List<String> idList = JsonUtil.getJsonToList(objectMap.get("ids"), String.class);
|
||||||
|
String errInfo = "";
|
||||||
|
List<String> successList = new ArrayList<>();
|
||||||
|
for (String allId : idList){
|
||||||
|
try {
|
||||||
|
this.delete(allId,false);
|
||||||
|
successList.add(allId);
|
||||||
|
} catch (Exception e) {
|
||||||
|
errInfo = e.getMessage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (successList.size() == 0 && StringUtil.isNotEmpty(errInfo)){
|
||||||
|
return ActionResult.fail(errInfo);
|
||||||
|
}
|
||||||
|
return ActionResult.success(MsgCode.SU003.get());
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
* @param id
|
||||||
|
* @param contractForm
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PutMapping("/{id}")
|
||||||
|
@Operation(summary = "更新")
|
||||||
|
public ActionResult update(@PathVariable("id") String id,@RequestBody @Valid ContractForm contractForm,
|
||||||
|
@RequestParam(value = "isImport", required = false) boolean isImport){
|
||||||
|
ContractEntity entity= contractService.getInfo(id);
|
||||||
|
if(entity!=null){
|
||||||
|
contractForm.setContractId(String.valueOf(entity.getContractId()));
|
||||||
|
|
||||||
|
if (!isImport) {
|
||||||
|
String b = contractService.checkForm(contractForm,1);
|
||||||
|
if (StringUtil.isNotEmpty(b)){
|
||||||
|
return ActionResult.fail(b );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
try{
|
||||||
|
contractService.saveOrUpdate(contractForm,id,false);
|
||||||
|
}catch (DataException e1){
|
||||||
|
return ActionResult.fail(e1.getMessage());
|
||||||
|
}catch(Exception e){
|
||||||
|
return ActionResult.fail(MsgCode.FA029.get());
|
||||||
|
}
|
||||||
|
return ActionResult.success(MsgCode.SU004.get());
|
||||||
|
}else{
|
||||||
|
return ActionResult.fail(MsgCode.FA002.get());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 表单信息(详情页)
|
||||||
|
* 详情页面使用-转换数据
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Operation(summary = "表单信息(详情页)")
|
||||||
|
@GetMapping("/detail/{id}")
|
||||||
|
public ActionResult detailInfo(@PathVariable("id") String id){
|
||||||
|
ContractEntity entity= contractService.getInfo(id);
|
||||||
|
if(entity==null){
|
||||||
|
return ActionResult.fail(MsgCode.FA001.get());
|
||||||
|
}
|
||||||
|
Map<String, Object> contractMap=JsonUtil.entityToMap(entity);
|
||||||
|
contractMap.put("id", contractMap.get("contract_id"));
|
||||||
|
//副表数据
|
||||||
|
//子表数据
|
||||||
|
List<ProductSubjectEntity> productSubjectList = entity.getProductSubject();
|
||||||
|
contractMap.put("tableProductList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
contractMap.put("productSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
List<MaterialSubjectEntity> materialSubjectList = entity.getMaterialSubject();
|
||||||
|
contractMap.put("tableMaterialList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
contractMap.put("materialSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
List<WorktypeSubjectEntity> worktypeSubjectList = entity.getWorktypeSubject();
|
||||||
|
contractMap.put("tableWorktypeList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
contractMap.put("worktypeSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
List<AssetSubjectEntity> assetSubjectList = entity.getAssetSubject();
|
||||||
|
contractMap.put("tableAssetList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
contractMap.put("assetSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
List<TaskSubjectEntity> taskSubjectList = entity.getTaskSubject();
|
||||||
|
contractMap.put("tableTaskList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
contractMap.put("taskSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
List<PaymentPlanEntity> paymentPlanList = entity.getPaymentPlan();
|
||||||
|
contractMap.put("tableField3494b2",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
contractMap.put("paymentPlanList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
boolean isPc = "pc".equals(ServletUtil.getHeader("yunzhupaas-origin" ));
|
||||||
|
contractMap = generaterSwapUtil.swapDataDetail(contractMap,ContractConstant.getFormData(),"822512474837222405",isPc?false:false);
|
||||||
|
//子表数据
|
||||||
|
contractMap.put("productSubjectList",contractMap.get("tableProductList"));
|
||||||
|
contractMap.put("materialSubjectList",contractMap.get("tableMaterialList"));
|
||||||
|
contractMap.put("worktypeSubjectList",contractMap.get("tableWorktypeList"));
|
||||||
|
contractMap.put("assetSubjectList",contractMap.get("tableAssetList"));
|
||||||
|
contractMap.put("taskSubjectList",contractMap.get("tableTaskList"));
|
||||||
|
contractMap.put("paymentPlanList",contractMap.get("tableField3494b2"));
|
||||||
|
return ActionResult.success(contractMap);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 获取详情(编辑页)
|
||||||
|
* 编辑页面使用-不转换数据
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Operation(summary = "信息")
|
||||||
|
@GetMapping("/{id}")
|
||||||
|
public ActionResult info(@PathVariable("id") String id){
|
||||||
|
ContractEntity entity= contractService.getInfo(id);
|
||||||
|
if(entity==null){
|
||||||
|
return ActionResult.fail(MsgCode.FA001.get());
|
||||||
|
}
|
||||||
|
Map<String, Object> contractMap=JsonUtil.entityToMap(entity);
|
||||||
|
contractMap.put("id", contractMap.get("contract_id"));
|
||||||
|
//副表数据
|
||||||
|
//子表数据
|
||||||
|
List<ProductSubjectEntity> productSubjectList = entity.getProductSubject();
|
||||||
|
contractMap.put("tableProductList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
contractMap.put("productSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(productSubjectList)));
|
||||||
|
List<MaterialSubjectEntity> materialSubjectList = entity.getMaterialSubject();
|
||||||
|
contractMap.put("tableMaterialList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
contractMap.put("materialSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(materialSubjectList)));
|
||||||
|
List<WorktypeSubjectEntity> worktypeSubjectList = entity.getWorktypeSubject();
|
||||||
|
contractMap.put("tableWorktypeList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
contractMap.put("worktypeSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(worktypeSubjectList)));
|
||||||
|
List<AssetSubjectEntity> assetSubjectList = entity.getAssetSubject();
|
||||||
|
contractMap.put("tableAssetList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
contractMap.put("assetSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(assetSubjectList)));
|
||||||
|
List<TaskSubjectEntity> taskSubjectList = entity.getTaskSubject();
|
||||||
|
contractMap.put("tableTaskList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
contractMap.put("taskSubjectList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(taskSubjectList)));
|
||||||
|
List<PaymentPlanEntity> paymentPlanList = entity.getPaymentPlan();
|
||||||
|
contractMap.put("tableField3494b2",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
contractMap.put("paymentPlanList",JsonUtil.getJsonToList(JsonUtil.getListToJsonArray(paymentPlanList)));
|
||||||
|
contractMap = generaterSwapUtil.swapDataForm(contractMap,ContractConstant.getFormData(),ContractConstant.TABLEFIELDKEY,ContractConstant.TABLERENAMES);
|
||||||
|
return ActionResult.success(contractMap);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同标的物表(资产)
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_asset_subject")
|
||||||
|
public class AssetSubjectEntity {
|
||||||
|
@TableId(value ="subject_id" )
|
||||||
|
@JSONField(name = "subject_id")
|
||||||
|
private String subjectId;
|
||||||
|
@TableField("contract_id")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "asset_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "asset_id")
|
||||||
|
private String assetId;
|
||||||
|
@TableField(value = "quantity" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
@TableField(value = "quantity_unit" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
@TableField(value = "unit_price" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
@TableField(value = "begin_date" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "begin_date")
|
||||||
|
private Date beginDate;
|
||||||
|
@TableField(value = "end_date" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "end_date")
|
||||||
|
private Date endDate;
|
||||||
|
@TableField(value = "currency" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private String currency;
|
||||||
|
@TableField(value = "total_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
@TableField(value = "tax_rate" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
@TableField("tax_code_id")
|
||||||
|
@JSONField(name = "tax_code_id")
|
||||||
|
private String taxCodeId;
|
||||||
|
@TableField(value = "tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
@TableField(value = "discount_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private String discountType;
|
||||||
|
@TableField(value = "discount_value" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
@TableField(value = "final_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
@TableField("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField("create_by")
|
||||||
|
@JSONField(name = "create_by")
|
||||||
|
private String createBy;
|
||||||
|
@TableField("create_time")
|
||||||
|
@JSONField(name = "create_time")
|
||||||
|
private Date createTime;
|
||||||
|
@TableField("update_by")
|
||||||
|
@JSONField(name = "update_by")
|
||||||
|
private String updateBy;
|
||||||
|
@TableField("update_time")
|
||||||
|
@JSONField(name = "update_time")
|
||||||
|
private Date updateTime;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,156 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同基本信息
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_contract")
|
||||||
|
public class ContractEntity {
|
||||||
|
@TableId(value ="contract_id" )
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "contract_code" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_code")
|
||||||
|
private String contractCode;
|
||||||
|
@TableField(value = "contract_name" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_name")
|
||||||
|
private String contractName;
|
||||||
|
@TableField(value = "contract_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_type")
|
||||||
|
private String contractType;
|
||||||
|
@TableField(value = "contract_temp_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_temp_id")
|
||||||
|
private String contractTempId;
|
||||||
|
@TableField(value = "org_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "org_id")
|
||||||
|
private String orgId;
|
||||||
|
@TableField(value = "project_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "project_id")
|
||||||
|
private String projectId;
|
||||||
|
@TableField(value = "contract_category" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_category")
|
||||||
|
private String contractCategory;
|
||||||
|
@TableField(value = "effective_date" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "effective_date")
|
||||||
|
private Date effectiveDate;
|
||||||
|
@TableField(value = "expiry_date" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "expiry_date")
|
||||||
|
private Date expiryDate;
|
||||||
|
@TableField(value = "contract_date" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_date")
|
||||||
|
private Date contractDate;
|
||||||
|
@TableField(value = "contract_money" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_money")
|
||||||
|
private BigDecimal contractMoney;
|
||||||
|
@TableField(value = "final_contract_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "final_contract_amount")
|
||||||
|
private BigDecimal finalContractAmount;
|
||||||
|
@TableField(value = "tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
@TableField(value = "excluding_tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "excluding_tax_amount")
|
||||||
|
private BigDecimal excludingTaxAmount;
|
||||||
|
@TableField(value = "final_amount_upper" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "final_amount_upper")
|
||||||
|
private String finalAmountUpper;
|
||||||
|
@TableField(value = "our_company_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "our_company_id")
|
||||||
|
private String ourCompanyId;
|
||||||
|
@TableField(value = "our_company_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "our_company_type")
|
||||||
|
private String ourCompanyType;
|
||||||
|
@TableField(value = "second_party_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "second_party_id")
|
||||||
|
private String secondPartyId;
|
||||||
|
@TableField(value = "second_party_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "second_party_type")
|
||||||
|
private String secondPartyType;
|
||||||
|
@TableField(value = "third_party_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "third_party_id")
|
||||||
|
private String thirdPartyId;
|
||||||
|
@TableField(value = "third_party_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "third_party_type")
|
||||||
|
private String thirdPartyType;
|
||||||
|
@TableField(value = "print_temp_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "print_temp_id")
|
||||||
|
private String printTempId;
|
||||||
|
@TableField(value = "is_sub_contract" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "is_sub_contract")
|
||||||
|
private String isSubContract;
|
||||||
|
@TableField(value = "ref_contract_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "ref_contract_id")
|
||||||
|
private String refContractId;
|
||||||
|
@TableField(value = "major_person_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "major_person_id")
|
||||||
|
private String majorPersonId;
|
||||||
|
@TableField(value = "contract_files" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "contract_files")
|
||||||
|
private String contractFiles;
|
||||||
|
@TableField(value = "remark" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField("create_by")
|
||||||
|
@JSONField(name = "create_by")
|
||||||
|
private String createBy;
|
||||||
|
@TableField("create_time")
|
||||||
|
@JSONField(name = "create_time")
|
||||||
|
private Date createTime;
|
||||||
|
@TableField("update_by")
|
||||||
|
@JSONField(name = "update_by")
|
||||||
|
private String updateBy;
|
||||||
|
@TableField("update_time")
|
||||||
|
@JSONField(name = "update_time")
|
||||||
|
private Date updateTime;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
@TableField("f_flow_id")
|
||||||
|
@JSONField(name = "f_flow_id")
|
||||||
|
private String flowId;
|
||||||
|
@TableField("f_flow_task_id")
|
||||||
|
@JSONField(name = "f_flow_task_id")
|
||||||
|
private String flowTaskId;
|
||||||
|
@TableField(value = "our_company_name" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "our_company_name")
|
||||||
|
private String ourCompanyName;
|
||||||
|
@TableField(value = "second_party_name" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "second_party_name")
|
||||||
|
private String secondPartyName;
|
||||||
|
@TableField(value = "third_party_name" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "third_party_name")
|
||||||
|
private String thirdPartyName;
|
||||||
|
|
||||||
|
@JSONField(name = "productSubject")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<ProductSubjectEntity> productSubject;
|
||||||
|
@JSONField(name = "worktypeSubject")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<WorktypeSubjectEntity> worktypeSubject;
|
||||||
|
@JSONField(name = "assetSubject")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<AssetSubjectEntity> assetSubject;
|
||||||
|
@JSONField(name = "materialSubject")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<MaterialSubjectEntity> materialSubject;
|
||||||
|
@JSONField(name = "taskSubject")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<TaskSubjectEntity> taskSubject;
|
||||||
|
@JSONField(name = "paymentPlan")
|
||||||
|
@TableField(exist = false)
|
||||||
|
private List<PaymentPlanEntity> paymentPlan;
|
||||||
|
}
|
||||||
@@ -0,0 +1,96 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同标的物表(材料)
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_material_subject")
|
||||||
|
public class MaterialSubjectEntity {
|
||||||
|
@TableId(value ="subject_id" )
|
||||||
|
@JSONField(name = "subject_id")
|
||||||
|
private String subjectId;
|
||||||
|
@TableField("contract_id")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "material_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "material_id")
|
||||||
|
private String materialId;
|
||||||
|
@TableField(value = "brand" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "brand")
|
||||||
|
private String brand;
|
||||||
|
@TableField(value = "quantity" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
@TableField(value = "quantity_unit" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
@TableField(value = "unit_price" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
@TableField(value = "currency" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private String currency;
|
||||||
|
@TableField(value = "total_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
@TableField(value = "tax_rate" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
@TableField("tax_code_id")
|
||||||
|
@JSONField(name = "tax_code_id")
|
||||||
|
private String taxCodeId;
|
||||||
|
@TableField(value = "tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
@TableField("discount_type")
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private String discountType;
|
||||||
|
@TableField("discount_value")
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
@TableField("final_amount")
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
@TableField(value = "warranty_period" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "warranty_period")
|
||||||
|
private Integer warrantyPeriod;
|
||||||
|
@TableField(value = "warranty_terms" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "warranty_terms")
|
||||||
|
private String warrantyTerms;
|
||||||
|
@TableField("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField("create_by")
|
||||||
|
@JSONField(name = "create_by")
|
||||||
|
private String createBy;
|
||||||
|
@TableField("create_time")
|
||||||
|
@JSONField(name = "create_time")
|
||||||
|
private Date createTime;
|
||||||
|
@TableField("update_by")
|
||||||
|
@JSONField(name = "update_by")
|
||||||
|
private String updateBy;
|
||||||
|
@TableField("update_time")
|
||||||
|
@JSONField(name = "update_time")
|
||||||
|
private Date updateTime;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同付款计划
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_payment_plan")
|
||||||
|
public class PaymentPlanEntity {
|
||||||
|
@TableId(value ="payment_plan_id" )
|
||||||
|
@JSONField(name = "payment_plan_id")
|
||||||
|
private String paymentPlanId;
|
||||||
|
@TableField("contract_id")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "plan_seq_num" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "plan_seq_num")
|
||||||
|
private Integer planSeqNum;
|
||||||
|
@TableField(value = "billing_item_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "billing_item_id")
|
||||||
|
private String billingItemId;
|
||||||
|
@TableField(value = "payment_name" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "payment_name")
|
||||||
|
private String paymentName;
|
||||||
|
@TableField(value = "payment_condition" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "payment_condition")
|
||||||
|
private String paymentCondition;
|
||||||
|
@TableField(value = "payment_ratio" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "payment_ratio")
|
||||||
|
private BigDecimal paymentRatio;
|
||||||
|
@TableField(value = "payment_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "payment_amount")
|
||||||
|
private BigDecimal paymentAmount;
|
||||||
|
@TableField(value = "plan_date" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "plan_date")
|
||||||
|
private Date planDate;
|
||||||
|
@TableField(value = "remark" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同标的物表(产品)
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_product_subject")
|
||||||
|
public class ProductSubjectEntity {
|
||||||
|
@TableId(value ="subject_id" )
|
||||||
|
@JSONField(name = "subject_id")
|
||||||
|
private String subjectId;
|
||||||
|
@TableField("contract_id")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "product_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "product_id")
|
||||||
|
private String productId;
|
||||||
|
@TableField(value = "brand" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "brand")
|
||||||
|
private String brand;
|
||||||
|
@TableField(value = "product_model" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "product_model")
|
||||||
|
private String productModel;
|
||||||
|
@TableField(value = "quantity" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
@TableField(value = "quantity_unit" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
@TableField(value = "unit_price" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
@TableField(value = "currency" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private String currency;
|
||||||
|
@TableField(value = "total_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
@TableField(value = "tax_rate" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
@TableField("tax_code_id")
|
||||||
|
@JSONField(name = "tax_code_id")
|
||||||
|
private String taxCodeId;
|
||||||
|
@TableField(value = "tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
@TableField(value = "discount_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private String discountType;
|
||||||
|
@TableField(value = "discount_value" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
@TableField(value = "final_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
@TableField(value = "warranty_period" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "warranty_period")
|
||||||
|
private Integer warrantyPeriod;
|
||||||
|
@TableField(value = "warranty_terms" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "warranty_terms")
|
||||||
|
private String warrantyTerms;
|
||||||
|
@TableField("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField("create_by")
|
||||||
|
@JSONField(name = "create_by")
|
||||||
|
private String createBy;
|
||||||
|
@TableField("create_time")
|
||||||
|
@JSONField(name = "create_time")
|
||||||
|
private Date createTime;
|
||||||
|
@TableField("update_by")
|
||||||
|
@JSONField(name = "update_by")
|
||||||
|
private String updateBy;
|
||||||
|
@TableField("update_time")
|
||||||
|
@JSONField(name = "update_time")
|
||||||
|
private Date updateTime;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同标的物表(任务)
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_task_subject")
|
||||||
|
public class TaskSubjectEntity {
|
||||||
|
@TableId(value ="subject_id" )
|
||||||
|
@JSONField(name = "subject_id")
|
||||||
|
private String subjectId;
|
||||||
|
@TableField("contract_id")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "task_name" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "task_name")
|
||||||
|
private String taskName;
|
||||||
|
@TableField(value = "task_description" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "task_description")
|
||||||
|
private String taskDescription;
|
||||||
|
@TableField(value = "quantity" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
@TableField(value = "quantity_unit" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
@TableField(value = "unit_price" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
@TableField(value = "currency" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private String currency;
|
||||||
|
@TableField(value = "total_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
@TableField(value = "tax_rate" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
@TableField("tax_code_id")
|
||||||
|
@JSONField(name = "tax_code_id")
|
||||||
|
private String taxCodeId;
|
||||||
|
@TableField(value = "tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
@TableField(value = "discount_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private String discountType;
|
||||||
|
@TableField(value = "discount_value" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
@TableField(value = "final_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
@TableField(value = "remark" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField("create_by")
|
||||||
|
@JSONField(name = "create_by")
|
||||||
|
private String createBy;
|
||||||
|
@TableField("create_time")
|
||||||
|
@JSONField(name = "create_time")
|
||||||
|
private Date createTime;
|
||||||
|
@TableField("update_by")
|
||||||
|
@JSONField(name = "update_by")
|
||||||
|
private String updateBy;
|
||||||
|
@TableField("update_time")
|
||||||
|
@JSONField(name = "update_time")
|
||||||
|
private Date updateTime;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package com.yunzhupaas.cm.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 合同标的物表(人工)
|
||||||
|
*
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cm_worktype_subject")
|
||||||
|
public class WorktypeSubjectEntity {
|
||||||
|
@TableId(value ="subject_id" )
|
||||||
|
@JSONField(name = "subject_id")
|
||||||
|
private String subjectId;
|
||||||
|
@TableField("contract_id")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
@TableField(value = "work_type_id" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "work_type_id")
|
||||||
|
private String workTypeId;
|
||||||
|
@TableField(value = "work_description" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "work_description")
|
||||||
|
private String workDescription;
|
||||||
|
@TableField(value = "quantity" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
@TableField(value = "quantity_unit" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
@TableField(value = "unit_price" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
@TableField(value = "currency" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private String currency;
|
||||||
|
@TableField(value = "total_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
@TableField(value = "tax_rate" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
@TableField("tax_code_id")
|
||||||
|
@JSONField(name = "tax_code_id")
|
||||||
|
private String taxCodeId;
|
||||||
|
@TableField(value = "tax_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
@TableField(value = "discount_type" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private String discountType;
|
||||||
|
@TableField(value = "discount_value" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
@TableField(value = "final_amount" , updateStrategy = FieldStrategy.IGNORED)
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
@TableField("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
@TableField("create_by")
|
||||||
|
@JSONField(name = "create_by")
|
||||||
|
private String createBy;
|
||||||
|
@TableField("create_time")
|
||||||
|
@JSONField(name = "create_time")
|
||||||
|
private Date createTime;
|
||||||
|
@TableField("update_by")
|
||||||
|
@JSONField(name = "update_by")
|
||||||
|
private String updateBy;
|
||||||
|
@TableField("update_time")
|
||||||
|
@JSONField(name = "update_time")
|
||||||
|
private Date updateTime;
|
||||||
|
@TableField(value = "f_tenant_id",fill = FieldFill.INSERT_UPDATE)
|
||||||
|
@JSONField(name = "f_tenant_id")
|
||||||
|
private String tenantId;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class AssetSubjectExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "AssetSubject子表参数")
|
||||||
|
public class AssetSubjectModel {
|
||||||
|
|
||||||
|
/** 子表:AssetSubject 主键:subject_id **/
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JsonProperty("subject_id")
|
||||||
|
private String subject_id;
|
||||||
|
/** 资产名称 **/
|
||||||
|
@Schema(description = "资产名称")
|
||||||
|
@JsonProperty("asset_id")
|
||||||
|
@JSONField(name = "asset_id")
|
||||||
|
private String assetId;
|
||||||
|
private String asset_id_id;
|
||||||
|
/** 开始日期 **/
|
||||||
|
@Schema(description = "开始日期")
|
||||||
|
@JsonProperty("begin_date")
|
||||||
|
@JSONField(name = "begin_date")
|
||||||
|
private Long beginDate;
|
||||||
|
/** 结束日期 **/
|
||||||
|
@Schema(description = "结束日期")
|
||||||
|
@JsonProperty("end_date")
|
||||||
|
@JSONField(name = "end_date")
|
||||||
|
private Long endDate;
|
||||||
|
/** 租赁天数 **/
|
||||||
|
@Schema(description = "租赁天数")
|
||||||
|
@JsonProperty("quantity")
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
/** 租赁单价 **/
|
||||||
|
@Schema(description = "租赁单价")
|
||||||
|
@JsonProperty("unit_price")
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
/** 单位 **/
|
||||||
|
@Schema(description = "单位")
|
||||||
|
@JsonProperty("quantity_unit")
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
/** 币种 **/
|
||||||
|
@Schema(description = "币种")
|
||||||
|
@JsonProperty("currency")
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private Object currency;
|
||||||
|
/** 总金额 **/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
@JsonProperty("total_amount")
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
/** 折扣类型 **/
|
||||||
|
@Schema(description = "折扣类型")
|
||||||
|
@JsonProperty("discount_type")
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private Object discountType;
|
||||||
|
/** 折扣值 **/
|
||||||
|
@Schema(description = "折扣值")
|
||||||
|
@JsonProperty("discount_value")
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
/** 最终金额 **/
|
||||||
|
@Schema(description = "最终金额")
|
||||||
|
@JsonProperty("final_amount")
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
/** 税率 **/
|
||||||
|
@Schema(description = "税率")
|
||||||
|
@JsonProperty("tax_rate")
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
/** 税额 **/
|
||||||
|
@Schema(description = "税额")
|
||||||
|
@JsonProperty("tax_amount")
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
|
||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ContractExcelErrorVO extends ContractExcelVO{
|
||||||
|
|
||||||
|
@Excel(name = "异常原因",orderNum = "-999")
|
||||||
|
@JSONField(name = "errorsInfo")
|
||||||
|
private String errorsInfo;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ContractExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.*;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "表单参数")
|
||||||
|
public class ContractForm {
|
||||||
|
/** 主键 */
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JSONField(name = "contract_id")
|
||||||
|
private String contractId;
|
||||||
|
|
||||||
|
/** 流程id **/
|
||||||
|
@Schema(description = "流程id")
|
||||||
|
@JsonProperty("flowId")
|
||||||
|
@JSONField(name = "f_flow_id")
|
||||||
|
private String flowId;
|
||||||
|
/** 流程权限列表 **/
|
||||||
|
@JsonProperty("formOperates")
|
||||||
|
private List<Map<String,Object>> formOperates = new ArrayList<>();
|
||||||
|
|
||||||
|
/** 合同类型 **/
|
||||||
|
@Schema(description = "合同类型")
|
||||||
|
@JsonProperty("contract_type")
|
||||||
|
@JSONField(name = "contract_type")
|
||||||
|
private String contractType;
|
||||||
|
/** 引用模版 **/
|
||||||
|
@Schema(description = "引用模版")
|
||||||
|
@JsonProperty("contract_temp_id")
|
||||||
|
@JSONField(name = "contract_temp_id")
|
||||||
|
private String contractTempId;
|
||||||
|
/** 合同名称 **/
|
||||||
|
@Schema(description = "合同名称")
|
||||||
|
@JsonProperty("contract_name")
|
||||||
|
@JSONField(name = "contract_name")
|
||||||
|
private String contractName;
|
||||||
|
/** 合同编码 **/
|
||||||
|
@Schema(description = "合同编码")
|
||||||
|
@JsonProperty("contract_code")
|
||||||
|
@JSONField(name = "contract_code")
|
||||||
|
private String contractCode;
|
||||||
|
/** 归属组织 **/
|
||||||
|
@Schema(description = "归属组织")
|
||||||
|
@JsonProperty("org_id")
|
||||||
|
@JSONField(name = "org_id")
|
||||||
|
private Object orgId;
|
||||||
|
/** 归属项目 **/
|
||||||
|
@Schema(description = "归属项目")
|
||||||
|
@JsonProperty("project_id")
|
||||||
|
@JSONField(name = "project_id")
|
||||||
|
private Object projectId;
|
||||||
|
/** 合同分类 **/
|
||||||
|
@Schema(description = "合同分类")
|
||||||
|
@JsonProperty("contract_category")
|
||||||
|
@JSONField(name = "contract_category")
|
||||||
|
private Object contractCategory;
|
||||||
|
/** 签约日期 **/
|
||||||
|
@Schema(description = "签约日期")
|
||||||
|
@JsonProperty("contract_date")
|
||||||
|
@JSONField(name = "contract_date")
|
||||||
|
private String contractDate;
|
||||||
|
/** 开始日期 **/
|
||||||
|
@Schema(description = "开始日期")
|
||||||
|
@JsonProperty("effective_date")
|
||||||
|
@JSONField(name = "effective_date")
|
||||||
|
private String effectiveDate;
|
||||||
|
/** 结束日期 **/
|
||||||
|
@Schema(description = "结束日期")
|
||||||
|
@JsonProperty("expiry_date")
|
||||||
|
@JSONField(name = "expiry_date")
|
||||||
|
private String expiryDate;
|
||||||
|
/** 是否子合同 **/
|
||||||
|
@Schema(description = "是否子合同")
|
||||||
|
@JsonProperty("is_sub_contract")
|
||||||
|
@JSONField(name = "is_sub_contract")
|
||||||
|
private Integer isSubContract;
|
||||||
|
/** 关联合同 **/
|
||||||
|
@Schema(description = "关联合同")
|
||||||
|
@JsonProperty("ref_contract_id")
|
||||||
|
@JSONField(name = "ref_contract_id")
|
||||||
|
private String refContractId;
|
||||||
|
/** 经办人 **/
|
||||||
|
@Schema(description = "经办人")
|
||||||
|
@JsonProperty("major_person_id")
|
||||||
|
@JSONField(name = "major_person_id")
|
||||||
|
private Object majorPersonId;
|
||||||
|
/** 打印合同模版 **/
|
||||||
|
@Schema(description = "打印合同模版")
|
||||||
|
@JsonProperty("print_temp_id")
|
||||||
|
@JSONField(name = "print_temp_id")
|
||||||
|
private Object printTempId;
|
||||||
|
/** 备注 **/
|
||||||
|
@Schema(description = "备注")
|
||||||
|
@JsonProperty("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
/** 我方类型 **/
|
||||||
|
@Schema(description = "我方类型")
|
||||||
|
@JsonProperty("our_company_type")
|
||||||
|
@JSONField(name = "our_company_type")
|
||||||
|
private Object ourCompanyType;
|
||||||
|
/** 我方单位 **/
|
||||||
|
@Schema(description = "我方单位")
|
||||||
|
@JsonProperty("our_company_id")
|
||||||
|
@JSONField(name = "our_company_id")
|
||||||
|
private String ourCompanyId;
|
||||||
|
/** 我方名称 **/
|
||||||
|
@Schema(description = "我方名称")
|
||||||
|
@JsonProperty("our_company_name")
|
||||||
|
@JSONField(name = "our_company_name")
|
||||||
|
private String ourCompanyName;
|
||||||
|
/** 合作方类型 **/
|
||||||
|
@Schema(description = "合作方类型")
|
||||||
|
@JsonProperty("second_party_type")
|
||||||
|
@JSONField(name = "second_party_type")
|
||||||
|
private Object secondPartyType;
|
||||||
|
/** 合作单位 **/
|
||||||
|
@Schema(description = "合作单位")
|
||||||
|
@JsonProperty("second_party_id")
|
||||||
|
@JSONField(name = "second_party_id")
|
||||||
|
private String secondPartyId;
|
||||||
|
/** 合作方名称 **/
|
||||||
|
@Schema(description = "合作方名称")
|
||||||
|
@JsonProperty("second_party_name")
|
||||||
|
@JSONField(name = "second_party_name")
|
||||||
|
private String secondPartyName;
|
||||||
|
/** 第三方类型 **/
|
||||||
|
@Schema(description = "第三方类型")
|
||||||
|
@JsonProperty("third_party_type")
|
||||||
|
@JSONField(name = "third_party_type")
|
||||||
|
private Object thirdPartyType;
|
||||||
|
/** 第三方单位 **/
|
||||||
|
@Schema(description = "第三方单位")
|
||||||
|
@JsonProperty("third_party_id")
|
||||||
|
@JSONField(name = "third_party_id")
|
||||||
|
private String thirdPartyId;
|
||||||
|
/** 第三方名称 **/
|
||||||
|
@Schema(description = "第三方名称")
|
||||||
|
@JsonProperty("third_party_name")
|
||||||
|
@JSONField(name = "third_party_name")
|
||||||
|
private String thirdPartyName;
|
||||||
|
/** 原合同金额 **/
|
||||||
|
@Schema(description = "原合同金额")
|
||||||
|
@JsonProperty("contract_money")
|
||||||
|
@JSONField(name = "contract_money")
|
||||||
|
private BigDecimal contractMoney;
|
||||||
|
/** 最终签约金额 **/
|
||||||
|
@Schema(description = "最终签约金额")
|
||||||
|
@JsonProperty("final_contract_amount")
|
||||||
|
@JSONField(name = "final_contract_amount")
|
||||||
|
private BigDecimal finalContractAmount;
|
||||||
|
/** 签约金额大写 **/
|
||||||
|
@Schema(description = "签约金额大写")
|
||||||
|
@JsonProperty("final_amount_upper")
|
||||||
|
@JSONField(name = "final_amount_upper")
|
||||||
|
private BigDecimal finalAmountUpper;
|
||||||
|
/** 税额 **/
|
||||||
|
@Schema(description = "税额")
|
||||||
|
@JsonProperty("tax_amount")
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
/** 不含税金额 **/
|
||||||
|
@Schema(description = "不含税金额")
|
||||||
|
@JsonProperty("excluding_tax_amount")
|
||||||
|
@JSONField(name = "excluding_tax_amount")
|
||||||
|
private BigDecimal excludingTaxAmount;
|
||||||
|
/** 合同附件 **/
|
||||||
|
@Schema(description = "合同附件")
|
||||||
|
@JsonProperty("contract_files")
|
||||||
|
@JSONField(name = "contract_files")
|
||||||
|
private Object contractFiles;
|
||||||
|
|
||||||
|
/** 子表数据 **/
|
||||||
|
@Schema(description = "productSubject子表数据")
|
||||||
|
@JsonProperty("productSubjectList")
|
||||||
|
private List<ProductSubjectModel> productSubjectList;
|
||||||
|
/** 子表数据 **/
|
||||||
|
@Schema(description = "materialSubject子表数据")
|
||||||
|
@JsonProperty("materialSubjectList")
|
||||||
|
private List<MaterialSubjectModel> materialSubjectList;
|
||||||
|
/** 子表数据 **/
|
||||||
|
@Schema(description = "worktypeSubject子表数据")
|
||||||
|
@JsonProperty("worktypeSubjectList")
|
||||||
|
private List<WorktypeSubjectModel> worktypeSubjectList;
|
||||||
|
/** 子表数据 **/
|
||||||
|
@Schema(description = "assetSubject子表数据")
|
||||||
|
@JsonProperty("assetSubjectList")
|
||||||
|
private List<AssetSubjectModel> assetSubjectList;
|
||||||
|
/** 子表数据 **/
|
||||||
|
@Schema(description = "taskSubject子表数据")
|
||||||
|
@JsonProperty("taskSubjectList")
|
||||||
|
private List<TaskSubjectModel> taskSubjectList;
|
||||||
|
/** 子表数据 **/
|
||||||
|
@Schema(description = "paymentPlan子表数据")
|
||||||
|
@JsonProperty("paymentPlanList")
|
||||||
|
private List<PaymentPlanModel> paymentPlanList;
|
||||||
|
}
|
||||||
@@ -0,0 +1,68 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import com.yunzhupaas.base.Pagination;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "列表查询参数")
|
||||||
|
public class ContractPagination extends Pagination {
|
||||||
|
/** 流程模板id */
|
||||||
|
@Schema(description = "流程模板id")
|
||||||
|
private String flowId;
|
||||||
|
/** 关键词搜索 */
|
||||||
|
@Schema(description = "关键词搜索")
|
||||||
|
private String yunzhupaasKeyword;
|
||||||
|
/** 查询key */
|
||||||
|
@Schema(description = "查询key")
|
||||||
|
private String[] selectKey;
|
||||||
|
/** 选中数据数组id */
|
||||||
|
@Schema(description = "选中数据数组id")
|
||||||
|
private Object[] selectIds;
|
||||||
|
/** json */
|
||||||
|
@Schema(description = "json")
|
||||||
|
private String json;
|
||||||
|
/** 数据类型 0-当前页,1-全部数据 */
|
||||||
|
@Schema(description = "数据类型 0-当前页,1-全部数据")
|
||||||
|
private String dataType;
|
||||||
|
/** 高级查询 */
|
||||||
|
@Schema(description = "高级查询")
|
||||||
|
private String superQueryJson;
|
||||||
|
/** 功能id */
|
||||||
|
@Schema(description = "功能id")
|
||||||
|
private String moduleId;
|
||||||
|
/** 菜单id */
|
||||||
|
@Schema(description = "菜单id")
|
||||||
|
private String menuId;
|
||||||
|
/** 合同名称 */
|
||||||
|
@Schema(description = "合同名称")
|
||||||
|
@JsonProperty("contract_name")
|
||||||
|
@JSONField(name = "contractName")
|
||||||
|
private Object contractName;
|
||||||
|
/** 归属组织 */
|
||||||
|
@Schema(description = "归属组织")
|
||||||
|
@JsonProperty("org_id")
|
||||||
|
@JSONField(name = "orgId")
|
||||||
|
private Object orgId;
|
||||||
|
/** 合同分类 */
|
||||||
|
@Schema(description = "合同分类")
|
||||||
|
@JsonProperty("contract_category")
|
||||||
|
@JSONField(name = "contractCategory")
|
||||||
|
private Object contractCategory;
|
||||||
|
/** 合同编码 */
|
||||||
|
@Schema(description = "合同编码")
|
||||||
|
@JsonProperty("contract_code")
|
||||||
|
@JSONField(name = "contractCode")
|
||||||
|
private Object contractCode;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class MaterialSubjectExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "MaterialSubject子表参数")
|
||||||
|
public class MaterialSubjectModel {
|
||||||
|
|
||||||
|
/** 子表:MaterialSubject 主键:subject_id **/
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JsonProperty("subject_id")
|
||||||
|
private String subject_id;
|
||||||
|
/** 材料名称 **/
|
||||||
|
@Schema(description = "材料名称")
|
||||||
|
@JsonProperty("material_id")
|
||||||
|
@JSONField(name = "material_id")
|
||||||
|
private String materialId;
|
||||||
|
private String material_id_id;
|
||||||
|
/** 品牌 **/
|
||||||
|
@Schema(description = "品牌")
|
||||||
|
@JsonProperty("brand")
|
||||||
|
@JSONField(name = "brand")
|
||||||
|
private String brand;
|
||||||
|
/** 数量 **/
|
||||||
|
@Schema(description = "数量")
|
||||||
|
@JsonProperty("quantity")
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
/** 单价 **/
|
||||||
|
@Schema(description = "单价")
|
||||||
|
@JsonProperty("unit_price")
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
/** 单位 **/
|
||||||
|
@Schema(description = "单位")
|
||||||
|
@JsonProperty("quantity_unit")
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
/** 币种 **/
|
||||||
|
@Schema(description = "币种")
|
||||||
|
@JsonProperty("currency")
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private Object currency;
|
||||||
|
/** 总金额 **/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
@JsonProperty("total_amount")
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
/** 税率 **/
|
||||||
|
@Schema(description = "税率")
|
||||||
|
@JsonProperty("tax_rate")
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
/** 税额 **/
|
||||||
|
@Schema(description = "税额")
|
||||||
|
@JsonProperty("tax_amount")
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
/** 保修期 **/
|
||||||
|
@Schema(description = "保修期")
|
||||||
|
@JsonProperty("warranty_period")
|
||||||
|
@JSONField(name = "warranty_period")
|
||||||
|
private BigDecimal warrantyPeriod;
|
||||||
|
/** 保修条款 **/
|
||||||
|
@Schema(description = "保修条款")
|
||||||
|
@JsonProperty("warranty_terms")
|
||||||
|
@JSONField(name = "warranty_terms")
|
||||||
|
private String warrantyTerms;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class PaymentPlanExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "PaymentPlan子表参数")
|
||||||
|
public class PaymentPlanModel {
|
||||||
|
|
||||||
|
/** 子表:PaymentPlan 主键:payment_plan_id **/
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JsonProperty("payment_plan_id")
|
||||||
|
private String payment_plan_id;
|
||||||
|
/** 序号 **/
|
||||||
|
@Schema(description = "序号")
|
||||||
|
@JsonProperty("plan_seq_num")
|
||||||
|
@JSONField(name = "plan_seq_num")
|
||||||
|
private String planSeqNum;
|
||||||
|
/** 款项名称 **/
|
||||||
|
@Schema(description = "款项名称")
|
||||||
|
@JsonProperty("payment_name")
|
||||||
|
@JSONField(name = "payment_name")
|
||||||
|
private String paymentName;
|
||||||
|
/** 款项类型 **/
|
||||||
|
@Schema(description = "款项类型")
|
||||||
|
@JsonProperty("billing_item_id")
|
||||||
|
@JSONField(name = "billing_item_id")
|
||||||
|
private String billingItemId;
|
||||||
|
private String billing_item_id_id;
|
||||||
|
/** 付款条件 **/
|
||||||
|
@Schema(description = "付款条件")
|
||||||
|
@JsonProperty("payment_condition")
|
||||||
|
@JSONField(name = "payment_condition")
|
||||||
|
private String paymentCondition;
|
||||||
|
/** 预计付款日期 **/
|
||||||
|
@Schema(description = "预计付款日期")
|
||||||
|
@JsonProperty("plan_date")
|
||||||
|
@JSONField(name = "plan_date")
|
||||||
|
private Long planDate;
|
||||||
|
/** 付款比例 **/
|
||||||
|
@Schema(description = "付款比例")
|
||||||
|
@JsonProperty("payment_ratio")
|
||||||
|
@JSONField(name = "payment_ratio")
|
||||||
|
private BigDecimal paymentRatio;
|
||||||
|
/** 付款金额 **/
|
||||||
|
@Schema(description = "付款金额")
|
||||||
|
@JsonProperty("payment_amount")
|
||||||
|
@JSONField(name = "payment_amount")
|
||||||
|
private BigDecimal paymentAmount;
|
||||||
|
/** 备注 **/
|
||||||
|
@Schema(description = "备注")
|
||||||
|
@JsonProperty("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ProductSubjectExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "ProductSubject子表参数")
|
||||||
|
public class ProductSubjectModel {
|
||||||
|
|
||||||
|
/** 子表:ProductSubject 主键:subject_id **/
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JsonProperty("subject_id")
|
||||||
|
private String subject_id;
|
||||||
|
/** 产品名称 **/
|
||||||
|
@Schema(description = "产品名称")
|
||||||
|
@JsonProperty("product_id")
|
||||||
|
@JSONField(name = "product_id")
|
||||||
|
private String productId;
|
||||||
|
private String product_id_id;
|
||||||
|
/** 品牌 **/
|
||||||
|
@Schema(description = "品牌")
|
||||||
|
@JsonProperty("brand")
|
||||||
|
@JSONField(name = "brand")
|
||||||
|
private String brand;
|
||||||
|
/** 规格型号 **/
|
||||||
|
@Schema(description = "规格型号")
|
||||||
|
@JsonProperty("product_model")
|
||||||
|
@JSONField(name = "product_model")
|
||||||
|
private String productModel;
|
||||||
|
/** 数量 **/
|
||||||
|
@Schema(description = "数量")
|
||||||
|
@JsonProperty("quantity")
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
/** 单价 **/
|
||||||
|
@Schema(description = "单价")
|
||||||
|
@JsonProperty("unit_price")
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
/** 单位 **/
|
||||||
|
@Schema(description = "单位")
|
||||||
|
@JsonProperty("quantity_unit")
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
/** 币种 **/
|
||||||
|
@Schema(description = "币种")
|
||||||
|
@JsonProperty("currency")
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private Object currency;
|
||||||
|
/** 总金额 **/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
@JsonProperty("total_amount")
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
/** 折扣类型 **/
|
||||||
|
@Schema(description = "折扣类型")
|
||||||
|
@JsonProperty("discount_type")
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private Object discountType;
|
||||||
|
/** 折扣值 **/
|
||||||
|
@Schema(description = "折扣值")
|
||||||
|
@JsonProperty("discount_value")
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
/** 最终金额 **/
|
||||||
|
@Schema(description = "最终金额")
|
||||||
|
@JsonProperty("final_amount")
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
/** 税率 **/
|
||||||
|
@Schema(description = "税率")
|
||||||
|
@JsonProperty("tax_rate")
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
/** 税额 **/
|
||||||
|
@Schema(description = "税额")
|
||||||
|
@JsonProperty("tax_amount")
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
/** 保修期 **/
|
||||||
|
@Schema(description = "保修期")
|
||||||
|
@JsonProperty("warranty_period")
|
||||||
|
@JSONField(name = "warranty_period")
|
||||||
|
private BigDecimal warrantyPeriod;
|
||||||
|
/** 保修条款 **/
|
||||||
|
@Schema(description = "保修条款")
|
||||||
|
@JsonProperty("warranty_terms")
|
||||||
|
@JSONField(name = "warranty_terms")
|
||||||
|
private String warrantyTerms;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class TaskSubjectExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,93 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "TaskSubject子表参数")
|
||||||
|
public class TaskSubjectModel {
|
||||||
|
|
||||||
|
/** 子表:TaskSubject 主键:subject_id **/
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JsonProperty("subject_id")
|
||||||
|
private String subject_id;
|
||||||
|
/** 任务名称 **/
|
||||||
|
@Schema(description = "任务名称")
|
||||||
|
@JsonProperty("task_name")
|
||||||
|
@JSONField(name = "task_name")
|
||||||
|
private String taskName;
|
||||||
|
/** 任务描述 **/
|
||||||
|
@Schema(description = "任务描述")
|
||||||
|
@JsonProperty("task_description")
|
||||||
|
@JSONField(name = "task_description")
|
||||||
|
private String taskDescription;
|
||||||
|
/** 数量 **/
|
||||||
|
@Schema(description = "数量")
|
||||||
|
@JsonProperty("quantity")
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
/** 单价 **/
|
||||||
|
@Schema(description = "单价")
|
||||||
|
@JsonProperty("unit_price")
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private BigDecimal unitPrice;
|
||||||
|
/** 单位 **/
|
||||||
|
@Schema(description = "单位")
|
||||||
|
@JsonProperty("quantity_unit")
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private String quantityUnit;
|
||||||
|
/** 币种 **/
|
||||||
|
@Schema(description = "币种")
|
||||||
|
@JsonProperty("currency")
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private Object currency;
|
||||||
|
/** 总金额 **/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
@JsonProperty("total_amount")
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
/** 折扣类型 **/
|
||||||
|
@Schema(description = "折扣类型")
|
||||||
|
@JsonProperty("discount_type")
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private Object discountType;
|
||||||
|
/** 折扣值 **/
|
||||||
|
@Schema(description = "折扣值")
|
||||||
|
@JsonProperty("discount_value")
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
/** 最终金额 **/
|
||||||
|
@Schema(description = "最终金额")
|
||||||
|
@JsonProperty("final_amount")
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
/** 税率 **/
|
||||||
|
@Schema(description = "税率")
|
||||||
|
@JsonProperty("tax_rate")
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
/** 税额 **/
|
||||||
|
@Schema(description = "税额")
|
||||||
|
@JsonProperty("tax_amount")
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
/** 备注 **/
|
||||||
|
@Schema(description = "备注")
|
||||||
|
@JsonProperty("remark")
|
||||||
|
@JSONField(name = "remark")
|
||||||
|
private String remark;
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.sql.Time;
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* @版本: V5.2.7
|
||||||
|
* @版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* @作者: 深圳市乐程软件有限公司
|
||||||
|
* @日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class WorktypeSubjectExcelVO{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package com.yunzhupaas.cm.model.contract;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import cn.afterturn.easypoi.excel.annotation.Excel;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 合同管理
|
||||||
|
* 版本: V5.2.7
|
||||||
|
* 版权: Copyright @ 2025 深圳市乐程软件有限公司版权所有
|
||||||
|
* 作者: 深圳市乐程软件有限公司
|
||||||
|
* 日期: 2026-05-20
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@Schema(description = "WorktypeSubject子表参数")
|
||||||
|
public class WorktypeSubjectModel {
|
||||||
|
|
||||||
|
/** 子表:WorktypeSubject 主键:subject_id **/
|
||||||
|
@Schema(description = "主键")
|
||||||
|
@JsonProperty("subject_id")
|
||||||
|
private String subject_id;
|
||||||
|
/** 工种 **/
|
||||||
|
@Schema(description = "工种")
|
||||||
|
@JsonProperty("work_type_id")
|
||||||
|
@JSONField(name = "work_type_id")
|
||||||
|
private String workTypeId;
|
||||||
|
private String work_type_id_id;
|
||||||
|
/** 数量 **/
|
||||||
|
@Schema(description = "数量")
|
||||||
|
@JsonProperty("quantity")
|
||||||
|
@JSONField(name = "quantity")
|
||||||
|
private BigDecimal quantity;
|
||||||
|
/** 销售单价 **/
|
||||||
|
@Schema(description = "销售单价")
|
||||||
|
@JsonProperty("unit_price")
|
||||||
|
@JSONField(name = "unit_price")
|
||||||
|
private String unitPrice;
|
||||||
|
/** 数量单位 **/
|
||||||
|
@Schema(description = "数量单位")
|
||||||
|
@JsonProperty("quantity_unit")
|
||||||
|
@JSONField(name = "quantity_unit")
|
||||||
|
private BigDecimal quantityUnit;
|
||||||
|
/** 币种 **/
|
||||||
|
@Schema(description = "币种")
|
||||||
|
@JsonProperty("currency")
|
||||||
|
@JSONField(name = "currency")
|
||||||
|
private Object currency;
|
||||||
|
/** 总金额 **/
|
||||||
|
@Schema(description = "总金额")
|
||||||
|
@JsonProperty("total_amount")
|
||||||
|
@JSONField(name = "total_amount")
|
||||||
|
private BigDecimal totalAmount;
|
||||||
|
/** 折扣类型 **/
|
||||||
|
@Schema(description = "折扣类型")
|
||||||
|
@JsonProperty("discount_type")
|
||||||
|
@JSONField(name = "discount_type")
|
||||||
|
private Object discountType;
|
||||||
|
/** 折扣值 **/
|
||||||
|
@Schema(description = "折扣值")
|
||||||
|
@JsonProperty("discount_value")
|
||||||
|
@JSONField(name = "discount_value")
|
||||||
|
private BigDecimal discountValue;
|
||||||
|
/** 最终金额 **/
|
||||||
|
@Schema(description = "最终金额")
|
||||||
|
@JsonProperty("final_amount")
|
||||||
|
@JSONField(name = "final_amount")
|
||||||
|
private BigDecimal finalAmount;
|
||||||
|
/** 税率 **/
|
||||||
|
@Schema(description = "税率")
|
||||||
|
@JsonProperty("tax_rate")
|
||||||
|
@JSONField(name = "tax_rate")
|
||||||
|
private BigDecimal taxRate;
|
||||||
|
/** 税额 **/
|
||||||
|
@Schema(description = "税额")
|
||||||
|
@JsonProperty("tax_amount")
|
||||||
|
@JSONField(name = "tax_amount")
|
||||||
|
private BigDecimal taxAmount;
|
||||||
|
/** 工种描述 **/
|
||||||
|
@Schema(description = "工种描述")
|
||||||
|
@JsonProperty("work_description")
|
||||||
|
@JSONField(name = "work_description")
|
||||||
|
private String workDescription;
|
||||||
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
package com.yunzhupaas.mapper;
|
|
||||||
|
|
||||||
import com.yunzhupaas.base.mapper.SuperMapper;
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
||||||
import com.yunzhupaas.entity.ContractEntity;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author 云筑产品开发平台组
|
|
||||||
* @version V3.1.0
|
|
||||||
* @copyright 深圳市乐程软件有限公司
|
|
||||||
* @date 2024/3/16 9:47
|
|
||||||
*/
|
|
||||||
public interface ContractMapper extends SuperMapper<ContractEntity> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
package com.yunzhupaas.service;
|
|
||||||
|
|
||||||
import com.yunzhupaas.base.service.SuperService;
|
|
||||||
import com.baomidou.mybatisplus.extension.service.IService;
|
|
||||||
import com.yunzhupaas.base.Pagination;
|
|
||||||
import com.yunzhupaas.entity.ContractEntity;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author 云筑产品开发平台组
|
|
||||||
* @version V3.1.0
|
|
||||||
* @copyright 深圳市乐程软件有限公司
|
|
||||||
* @date 2024/3/16 9:47
|
|
||||||
*/
|
|
||||||
public interface ContractService extends SuperService<ContractEntity> {
|
|
||||||
|
|
||||||
List<ContractEntity> getlist(Pagination pagination);
|
|
||||||
|
|
||||||
ContractEntity getInfo(String id);
|
|
||||||
|
|
||||||
void create(ContractEntity entity);
|
|
||||||
|
|
||||||
void update(String id, ContractEntity entity);
|
|
||||||
|
|
||||||
void delete(ContractEntity entity);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -4,16 +4,10 @@ import com.yunzhupaas.base.service.SuperServiceImpl;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
||||||
import com.yunzhupaas.base.Pagination;
|
import com.yunzhupaas.base.Pagination;
|
||||||
import com.yunzhupaas.base.UserInfo;
|
|
||||||
import com.yunzhupaas.mapper.ContractMapper;
|
|
||||||
import com.yunzhupaas.service.ContractService;
|
|
||||||
import com.yunzhupaas.entity.ContractEntity;
|
import com.yunzhupaas.entity.ContractEntity;
|
||||||
import com.yunzhupaas.util.RandomUtil;
|
import com.yunzhupaas.util.RandomUtil;
|
||||||
import com.yunzhupaas.util.StringUtil;
|
import com.yunzhupaas.util.StringUtil;
|
||||||
import com.yunzhupaas.util.UserProvider;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
||||||
|
|
||||||
|
|||||||
@@ -1,125 +0,0 @@
|
|||||||
package com.yunzhupaas.controller;
|
|
||||||
|
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
|
||||||
import io.swagger.v3.oas.annotations.Parameters;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import com.yunzhupaas.base.ActionResult;
|
|
||||||
import com.yunzhupaas.base.Pagination;
|
|
||||||
import com.yunzhupaas.base.controller.SuperController;
|
|
||||||
import com.yunzhupaas.base.vo.PageListVO;
|
|
||||||
import com.yunzhupaas.base.vo.PaginationVO;
|
|
||||||
import com.yunzhupaas.constant.MsgCode;
|
|
||||||
import com.yunzhupaas.entity.ContractEntity;
|
|
||||||
import com.yunzhupaas.model.ContractForm;
|
|
||||||
import com.yunzhupaas.model.ContractInfoVO;
|
|
||||||
import com.yunzhupaas.model.ContractListVO;
|
|
||||||
import com.yunzhupaas.service.ContractService;
|
|
||||||
import com.yunzhupaas.util.JsonUtil;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
|
||||||
|
|
||||||
import jakarta.validation.Valid;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Contract
|
|
||||||
* 版本: V3.0.0
|
|
||||||
* 版权: 深圳市乐程软件有限公司(http://www.szlecheng.cn)
|
|
||||||
* 作者: 云筑产品开发平台组
|
|
||||||
* 日期: 2020-12-31
|
|
||||||
*/
|
|
||||||
@RestController
|
|
||||||
@Tag(name = "示例接口", description = "Contract")
|
|
||||||
@RequestMapping("/Contract")
|
|
||||||
public class ContractController extends SuperController<ContractService, ContractEntity> {
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private ContractService contractService;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取列表
|
|
||||||
*
|
|
||||||
* @param pagination 分页模型
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Operation(summary = "获取列表")
|
|
||||||
@GetMapping("/List")
|
|
||||||
public ActionResult<PageListVO<ContractListVO>> list(Pagination pagination) {
|
|
||||||
List<ContractEntity> entity = contractService.getlist(pagination);
|
|
||||||
List<ContractListVO> listVo = JsonUtil.getJsonToList(JsonUtil.getObjectToStringDateFormat(entity, "yyyy-MM-dd HH:mm:ss"), ContractListVO.class);
|
|
||||||
PaginationVO vo = JsonUtil.getJsonToBean(pagination, PaginationVO.class);
|
|
||||||
return ActionResult.page(listVo, vo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取详情
|
|
||||||
*
|
|
||||||
* @param id 主键
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Operation(summary = "获取详情")
|
|
||||||
@GetMapping("/{id}")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "id", description = "主键", required = true),
|
|
||||||
})
|
|
||||||
public ActionResult<ContractInfoVO> info(@PathVariable("id") String id) {
|
|
||||||
ContractEntity entity = contractService.getInfo(id);
|
|
||||||
ContractInfoVO vo = JsonUtil.getJsonToBean(entity, ContractInfoVO.class);
|
|
||||||
return ActionResult.success(vo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 新建
|
|
||||||
*
|
|
||||||
* @param contractForm 新建模型
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Operation(summary = "新建")
|
|
||||||
@PostMapping
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "contractForm", description = "示例模型",required = true),
|
|
||||||
})
|
|
||||||
public ActionResult create(@RequestBody @Valid ContractForm contractForm) {
|
|
||||||
ContractEntity entity = JsonUtil.getJsonToBean(contractForm, ContractEntity.class);
|
|
||||||
contractService.create(entity);
|
|
||||||
return ActionResult.success(MsgCode.SU002.get());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param id 主键
|
|
||||||
* @param contractForm 修改模型
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Operation(summary = "修改")
|
|
||||||
@PutMapping("/{id}")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "contractForm", description = "示例模型",required = true),
|
|
||||||
@Parameter(name = "id", description = "主键", required = true),
|
|
||||||
})
|
|
||||||
public ActionResult update(@PathVariable("id") String id, @RequestBody @Valid ContractForm contractForm) {
|
|
||||||
ContractEntity entity = JsonUtil.getJsonToBean(contractForm, ContractEntity.class);
|
|
||||||
contractService.update(id, entity);
|
|
||||||
return ActionResult.success(MsgCode.SU004.get());
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除
|
|
||||||
*
|
|
||||||
* @param id 主键
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Operation(summary = "删除")
|
|
||||||
@DeleteMapping("/{id}")
|
|
||||||
@Parameters({
|
|
||||||
@Parameter(name = "id", description = "主键", required = true),
|
|
||||||
})
|
|
||||||
public ActionResult delete(@PathVariable("id") String id) {
|
|
||||||
ContractEntity entity = contractService.getInfo(id);
|
|
||||||
contractService.delete(entity);
|
|
||||||
return ActionResult.success(MsgCode.SU003.get());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user