This commit is contained in:
parent
d2267cd583
commit
2a76c27522
|
|
@ -94,7 +94,7 @@ public class LeaseApplyInfo extends BaseEntity{
|
||||||
|
|
||||||
/** 任务编号: 业务联系单号 */
|
/** 任务编号: 业务联系单号 */
|
||||||
@ApiModelProperty(value = "业务联系单号")
|
@ApiModelProperty(value = "业务联系单号")
|
||||||
@Excel(name = "业务联系单号")
|
//@Excel(name = "业务联系单号")
|
||||||
private String businessCode;
|
private String businessCode;
|
||||||
|
|
||||||
/** 任务ID */
|
/** 任务ID */
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import com.bonus.common.core.annotation.Excel;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
@ -69,39 +70,39 @@ public class ProjUsingRecordExport implements Serializable {
|
||||||
private BigDecimal backNum;
|
private BigDecimal backNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "需求数量")
|
@ApiModelProperty(value = "需求数量")
|
||||||
@Excel(name = "需求数量")
|
@Excel(name = "需求数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private String needNum;
|
private String needNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "已供数量")
|
@ApiModelProperty(value = "已供数量")
|
||||||
@Excel(name = "已供数量")
|
@Excel(name = "已供数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private String supplyNum;
|
private String supplyNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "差值")
|
@ApiModelProperty(value = "差值")
|
||||||
@Excel(name = "差值")
|
@Excel(name = "差值", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private String diffNum;
|
private String diffNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "在用数量")
|
@ApiModelProperty(value = "在用数量")
|
||||||
@Excel(name = "在用数量")
|
@Excel(name = "在用数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal usNum;
|
private BigDecimal usNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "在库数量")
|
@ApiModelProperty(value = "在库数量")
|
||||||
@Excel(name = "库存数量")
|
@Excel(name = "库存数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal storeNum;
|
private BigDecimal storeNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "在修数量")
|
@ApiModelProperty(value = "在修数量")
|
||||||
@Excel(name = "在修数量")
|
@Excel(name = "在修数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal repairNum;
|
private BigDecimal repairNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "待入库数量")
|
@ApiModelProperty(value = "待入库数量")
|
||||||
@Excel(name = "待入库数量")
|
@Excel(name = "待入库数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal inputNum;
|
private BigDecimal inputNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "总保有量")
|
@ApiModelProperty(value = "总保有量")
|
||||||
@Excel(name = "总保有量")
|
@Excel(name = "总保有量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal allNum;
|
private BigDecimal allNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "总在用数量")
|
@ApiModelProperty(value = "总在用数量")
|
||||||
@Excel(name = "总在用工程明细")
|
@Excel(name = "总在用工程明细", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal allUsNum;
|
private BigDecimal allUsNum;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -312,4 +312,11 @@ public interface LeaseApplyInfoMapper {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
BigDecimal getInCountNum(LeaseApplyInfo leaseApplyInfo);
|
BigDecimal getInCountNum(LeaseApplyInfo leaseApplyInfo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取领用该批次的签名数据
|
||||||
|
* @param applyInfo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
List<Long> selectPublishSignList(LeaseApplyInfo applyInfo);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -844,6 +844,13 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
|
||||||
list.addAll(leaseApplyOutList);
|
list.addAll(leaseApplyOutList);
|
||||||
}
|
}
|
||||||
for (LeaseApplyInfo applyInfo : list) {
|
for (LeaseApplyInfo applyInfo : list) {
|
||||||
|
if (StringUtils.isBlank(applyInfo.getSignUrl()) && applyInfo.getSignId() == null) {
|
||||||
|
// 如果签名url或者签名id都为空,则根据id或者发布批次去出库表查询该单据是否存在其他签名
|
||||||
|
List<Long> leaseApplyInfoList = leaseApplyInfoMapper.selectPublishSignList(applyInfo);
|
||||||
|
if (!CollectionUtils.isEmpty(leaseApplyInfoList)) {
|
||||||
|
applyInfo.setSignId(leaseApplyInfoList.get(0));
|
||||||
|
}
|
||||||
|
}
|
||||||
// 判断协议号是否为空
|
// 判断协议号是否为空
|
||||||
if (StringUtils.isBlank(applyInfo.getAgreementCode())) {
|
if (StringUtils.isBlank(applyInfo.getAgreementCode())) {
|
||||||
if (applyInfo.getLeaseUnit() != null && applyInfo.getLeaseProjectId() != null) {
|
if (applyInfo.getLeaseUnit() != null && applyInfo.getLeaseProjectId() != null) {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import com.bonus.common.core.annotation.Excel;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
@ -31,9 +32,9 @@ public class MaTypeHistory {
|
||||||
private String maName;
|
private String maName;
|
||||||
@Excel(name = "规格型号")
|
@Excel(name = "规格型号")
|
||||||
private String maModel;
|
private String maModel;
|
||||||
@Excel(name = "修改前租赁价格(元)")
|
@Excel(name = "修改前租赁价格(元)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal beforePrice;
|
private BigDecimal beforePrice;
|
||||||
@Excel(name = "修改后租赁价格(元)")
|
@Excel(name = "修改后租赁价格(元)", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal afterPrice;
|
private BigDecimal afterPrice;
|
||||||
@Excel(name = "修改人")
|
@Excel(name = "修改人")
|
||||||
private String createBy;
|
private String createBy;
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ public class PartType extends BaseEntity
|
||||||
private BigDecimal buyPrice;
|
private BigDecimal buyPrice;
|
||||||
|
|
||||||
/** 实时库存 */
|
/** 实时库存 */
|
||||||
@Excel(name = "数量",sort=6, align = HorizontalAlignment.RIGHT)
|
@Excel(name = "数量",sort=6, align = HorizontalAlignment.RIGHT, cellType = Excel.ColumnType.NUMERIC)
|
||||||
@ApiModelProperty(value = "实时库存")
|
@ApiModelProperty(value = "实时库存")
|
||||||
private Long storageNum;
|
private Long storageNum;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,6 @@ public class PartInventory {
|
||||||
private String unit;
|
private String unit;
|
||||||
|
|
||||||
@ApiModelProperty(value = "在库数量")
|
@ApiModelProperty(value = "在库数量")
|
||||||
@Excel(name = "库存",cellType = Excel.ColumnType.NUMERIC)
|
@Excel(name = "库存",cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal storeNum;
|
private BigDecimal storeNum;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
import javax.validation.constraints.Size;
|
import javax.validation.constraints.Size;
|
||||||
|
|
@ -84,7 +85,7 @@ public class PartTypeCheckInfo extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 采购数量
|
* 采购数量
|
||||||
*/
|
*/
|
||||||
@Excel(name = "采购数量", sort = 3)
|
@Excel(name = "采购数量", sort = 3, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "采购数量--外层Table字段")
|
@ApiModelProperty(value = "采购数量--外层Table字段")
|
||||||
private BigDecimal purchaseMaNumber;
|
private BigDecimal purchaseMaNumber;
|
||||||
|
|
||||||
|
|
@ -109,21 +110,21 @@ public class PartTypeCheckInfo extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 采购单价(不含税)
|
* 采购单价(不含税)
|
||||||
*/
|
*/
|
||||||
@Excel(name = "采购单价(不含税)", sort = 5)
|
@Excel(name = "采购单价(不含税)", sort = 5, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "采购单价(不含税)--外层Table字段")
|
@ApiModelProperty(value = "采购单价(不含税)--外层Table字段")
|
||||||
private BigDecimal purchasePrice;
|
private BigDecimal purchasePrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 采购单价(含税)
|
* 采购单价(含税)
|
||||||
*/
|
*/
|
||||||
@Excel(name = "采购单价(含税)", sort = 4)
|
@Excel(name = "采购单价(含税)", sort = 4, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "采购单价(含税)--外层Table字段")
|
@ApiModelProperty(value = "采购单价(含税)--外层Table字段")
|
||||||
private BigDecimal purchaseTaxPrice;
|
private BigDecimal purchaseTaxPrice;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 税率
|
* 税率
|
||||||
*/
|
*/
|
||||||
@Excel(name = "税率", sort = 6)
|
@Excel(name = "税率", sort = 6, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "税率 0~100")
|
@ApiModelProperty(value = "税率 0~100")
|
||||||
@Size(max = 100, message = "税率长度必须介于 0 和 100 之间")
|
@Size(max = 100, message = "税率长度必须介于 0 和 100 之间")
|
||||||
private BigDecimal taxRate;
|
private BigDecimal taxRate;
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.NotBlank;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
@ -171,7 +172,7 @@ public class IwsCostPushBean implements Serializable {
|
||||||
private BigDecimal pendingNum;
|
private BigDecimal pendingNum;
|
||||||
|
|
||||||
@ApiModelProperty(value = "出库数量")
|
@ApiModelProperty(value = "出库数量")
|
||||||
@Excel(name = "出库数量")
|
@Excel(name = "出库数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
private BigDecimal outNum;
|
private BigDecimal outNum;
|
||||||
// 工程id数组
|
// 工程id数组
|
||||||
private String[] projectIds;
|
private String[] projectIds;
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
package com.bonus.material.repair.domain;
|
package com.bonus.material.repair.domain;
|
||||||
|
|
||||||
import com.bonus.common.biz.domain.BmFileInfo;
|
|
||||||
import com.bonus.common.core.annotation.Excel;
|
import com.bonus.common.core.annotation.Excel;
|
||||||
import com.bonus.common.core.web.domain.BaseEntity;
|
import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
import lombok.experimental.Accessors;
|
import lombok.experimental.Accessors;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 维修配件详细对象 repair_part_details
|
* 维修配件详细对象 repair_part_details
|
||||||
|
|
@ -58,7 +57,7 @@ public class PartDetails extends BaseEntity {
|
||||||
@ApiModelProperty(value = "物资名称")
|
@ApiModelProperty(value = "物资名称")
|
||||||
private String typeModelName;
|
private String typeModelName;
|
||||||
|
|
||||||
@Excel(name = "规格型号",sort = 5)
|
@Excel(name = "规格型号",sort = 5, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "规格型号")
|
@ApiModelProperty(value = "规格型号")
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
|
||||||
|
|
@ -72,7 +71,7 @@ public class PartDetails extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 配件数量
|
* 配件数量
|
||||||
*/
|
*/
|
||||||
@Excel(name = "使用数量",sort = 10)
|
@Excel(name = "使用数量",sort = 10, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "配件数量")
|
@ApiModelProperty(value = "配件数量")
|
||||||
private Integer partNum;
|
private Integer partNum;
|
||||||
|
|
||||||
|
|
@ -82,7 +81,7 @@ public class PartDetails extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 配件费用
|
* 配件费用
|
||||||
*/
|
*/
|
||||||
@Excel(name = "金额(元)",sort = 12)
|
@Excel(name = "金额(元)",sort = 12, cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "配件费用")
|
@ApiModelProperty(value = "配件费用")
|
||||||
private BigDecimal partCost;
|
private BigDecimal partCost;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import com.bonus.common.core.web.domain.BaseEntity;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.ToString;
|
import lombok.ToString;
|
||||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
|
@ -64,7 +65,7 @@ public class RepairProjectInfo extends BaseEntity {
|
||||||
private String unitName;
|
private String unitName;
|
||||||
|
|
||||||
/** 在修数量 */
|
/** 在修数量 */
|
||||||
@Excel(name = "在修数量")
|
@Excel(name = "在修数量", cellType = Excel.ColumnType.NUMERIC, align = HorizontalAlignment.RIGHT)
|
||||||
@ApiModelProperty(value = "在修数量(定损+维修)")
|
@ApiModelProperty(value = "在修数量(定损+维修)")
|
||||||
private BigDecimal repairNum;
|
private BigDecimal repairNum;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1153,4 +1153,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectPublishSignList" resultType="java.lang.Long">
|
||||||
|
SELECT DISTINCT
|
||||||
|
lease_sign_id
|
||||||
|
FROM
|
||||||
|
lease_out_details
|
||||||
|
<where>
|
||||||
|
<if test="publishTask != null and publishTask != ''">
|
||||||
|
and publish_task = #{publishTask}
|
||||||
|
</if>
|
||||||
|
<if test="id != null">
|
||||||
|
and parent_id = #{id}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -1293,11 +1293,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
LEFT JOIN sys_user su2 ON mtr.user_id = su2.user_id
|
LEFT JOIN sys_user su2 ON mtr.user_id = su2.user_id
|
||||||
GROUP BY type_id
|
GROUP BY type_id
|
||||||
) AS mtr ON m.type_id = mtr.type_id
|
) AS mtr ON m.type_id = mtr.type_id
|
||||||
WHERE m.del_flag = '0' and
|
WHERE m.del_flag = '0'
|
||||||
m.parent_id in
|
<if test="list != null and list.size > 0">
|
||||||
|
and m.parent_id in
|
||||||
<foreach item="id" collection="list" open="(" separator="," close=")">
|
<foreach item="id" collection="list" open="(" separator="," close=")">
|
||||||
#{id}
|
#{id}
|
||||||
</foreach>
|
</foreach>
|
||||||
|
</if>
|
||||||
<if test="type.keyword != null and type.keyword !=''">
|
<if test="type.keyword != null and type.keyword !=''">
|
||||||
AND (m.type_name like concat('%',#{type.keyword},'%')
|
AND (m.type_name like concat('%',#{type.keyword},'%')
|
||||||
or m1.type_name like concat('%',#{type.keyword},'%')
|
or m1.type_name like concat('%',#{type.keyword},'%')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue