Commit 4ae79e82 authored by 徐俊's avatar 徐俊

xujun

parent 0c2bb490
package com.yiboshi.science.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yiboshi.science.base.BaseDAO;
import com.yiboshi.science.entity.ComProjectEquipment;
import com.yiboshi.science.param.dto.ComProjectEquipmentDTO;
import com.yiboshi.science.param.query.ComProjectEquipmentQueryVO;
import java.util.List;
/**
* 试制设备预算明细表 DAO
*
* @author lkl
* @version 2021-08-26
*/
public interface ComProjectManufactureDAO extends BaseMapper<ComProjectEquipment>, BaseDAO<ComProjectEquipmentQueryVO,ComProjectEquipmentDTO, ComProjectEquipment> {
List<ComProjectEquipmentDTO> getListByObjectId(String objectId);
}
\ No newline at end of file
package com.yiboshi.science.entity;
import com.yiboshi.science.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.math.BigDecimal;
/**
* 试制设备预算明细表
*
* @author xujun
* @version 2024-12-16
*/
@Data
@EqualsAndHashCode(callSuper=true)
@ApiModel(description = "试制设备预算明细表")
public class ComProjectManufacture extends BaseEntity {
@ApiModelProperty(value = "对象id(项目Id/任务书Id)", position = 2 )
@Length(max=36, message = "对象id(项目Id/任务书Id)不能大于36")
private String objectId;
/** 设备仪器名称 */
@ApiModelProperty(value = "设备仪器名称", position = 1 )
@Length(max=100, message = "设备仪器名称不能大于100")
private String name;
/** 功能和技术指标 */
@ApiModelProperty(value = "功能和技术指标", position = 1 )
@Length(max=200, message = "功能和技术指标不能大于200")
private String functionTarget;
/** 单价(万元/台套) */
@ApiModelProperty(value = "单价(万元/台套)", position = 3)
private BigDecimal unitPrice;
/** 数量 */
@ApiModelProperty(value = "数量", position = 1)
private Integer quantity;
/** 金额 */
@ApiModelProperty(value = "金额", position = 3)
private BigDecimal totalBudget;
/** 财政资金 */
@ApiModelProperty(value = "财政资金", position = 3)
private BigDecimal fundAmount;
/** 自筹资金 */
@ApiModelProperty(value = "自筹资金", position = 3)
private BigDecimal selfAmount;
/** 试制单位 */
@ApiModelProperty(value = "试制单位", position = 1)
@Length(max=100, message = "试制单位不能大于100")
private String manufactureUnit;
/** 安置单位 */
@ApiModelProperty(value = "安置单位", position = 1)
@Length(max=100, message = "安置单位不能大于100")
private String storageUnit;
}
\ No newline at end of file
package com.yiboshi.science.param.dto;
import com.yiboshi.science.base.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.math.BigDecimal;
/**
* 试制设备预算明细表DTO
*
* @author xujun
* @version 2024-12-16
*/
@Data
@EqualsAndHashCode(callSuper=true)
@ApiModel(description = "试制设备预算明细表DTO")
public class ComProjectManufactureDTO extends BaseDTO {
@ApiModelProperty(value = "对象id(项目Id/任务书Id)", position = 2 )
@Length(max=36, message = "对象id(项目Id/任务书Id)不能大于36")
private String objectId;
/** 设备仪器名称 */
@ApiModelProperty(value = "设备仪器名称", position = 1 )
@Length(max=100, message = "设备仪器名称不能大于100")
private String name;
/** 功能和技术指标 */
@ApiModelProperty(value = "功能和技术指标", position = 1 )
@Length(max=200, message = "功能和技术指标不能大于200")
private String functionTarget;
/** 单价(万元/台套) */
@ApiModelProperty(value = "单价(万元/台套)", position = 3)
private BigDecimal unitPrice;
/** 数量 */
@ApiModelProperty(value = "数量", position = 1)
private Integer quantity;
/** 金额 */
@ApiModelProperty(value = "金额", position = 3)
private BigDecimal totalBudget;
/** 财政资金 */
@ApiModelProperty(value = "财政资金", position = 3)
private BigDecimal fundAmount;
/** 自筹资金 */
@ApiModelProperty(value = "自筹资金", position = 3)
private BigDecimal selfAmount;
/** 试制单位 */
@ApiModelProperty(value = "试制单位", position = 1)
@Length(max=100, message = "试制单位不能大于100")
private String manufactureUnit;
/** 安置单位 */
@ApiModelProperty(value = "安置单位", position = 1)
@Length(max=100, message = "安置单位不能大于100")
private String storageUnit;
}
\ No newline at end of file
package com.yiboshi.science.param.query;
import com.yiboshi.science.base.PaginationVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.math.BigDecimal;
/**
* 试制设备预算明细表VO
*
* @author xujun
* @version 2024-12-16
*/
@Data
@EqualsAndHashCode(callSuper=true)
@ApiModel(description = "试制设备预算明细表VO")
public class ComProjectManufactureQueryVO extends PaginationVO{
@ApiModelProperty(value = "对象id(项目Id/任务书Id)", position = 2 )
@Length(max=36, message = "对象id(项目Id/任务书Id)不能大于36")
private String objectId;
/** 设备仪器名称 */
@ApiModelProperty(value = "设备仪器名称", position = 1 )
@Length(max=100, message = "设备仪器名称不能大于100")
private String name;
/** 功能和技术指标 */
@ApiModelProperty(value = "功能和技术指标", position = 1 )
@Length(max=200, message = "功能和技术指标不能大于200")
private String functionTarget;
/** 单价(万元/台套) */
@ApiModelProperty(value = "单价(万元/台套)", position = 3)
private BigDecimal unitPrice;
/** 数量 */
@ApiModelProperty(value = "数量", position = 1)
private Integer quantity;
/** 金额 */
@ApiModelProperty(value = "金额", position = 3)
private BigDecimal totalBudget;
/** 财政资金 */
@ApiModelProperty(value = "财政资金", position = 3)
private BigDecimal fundAmount;
/** 自筹资金 */
@ApiModelProperty(value = "自筹资金", position = 3)
private BigDecimal selfAmount;
/** 试制单位 */
@ApiModelProperty(value = "试制单位", position = 1)
@Length(max=100, message = "试制单位不能大于100")
private String manufactureUnit;
/** 安置单位 */
@ApiModelProperty(value = "安置单位", position = 1)
@Length(max=100, message = "安置单位不能大于100")
private String storageUnit;
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!-- 试制设备预算明细表 -->
<mapper namespace="com.yiboshi.science.dao.ComProjectManufactureDAO">
<sql id="allColumns">
t.id as id, t.object_id as objectId, t.total_budget as totalBudget, t.gov_budget as govBudget, t.unit_budget as unitBudget, t.remark as remark, t.created as created,
t.updated as updated
</sql>
<select id="getListByObjectId" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComProjectManufactureDTO">
SELECT
a.*
FROM com_project_manufacture a
where object_id=#{objectId} order by created asc
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment