结算修改

This commit is contained in:
hongchao 2025-10-14 17:26:29 +08:00
parent de2fb68076
commit 2ea92e78a6
5 changed files with 33 additions and 6 deletions

View File

@ -524,7 +524,7 @@ public class PoiOutPage {
/** /**
* 租赁费用明细 * 租赁费用明细
*/ */
rowNum = createTitleRowStyleCost(sheet, rowNum, "租赁费用明细", titleStyle, listLease.size()); rowNum = createTitleRowStyleCost(sheet, rowNum, "租赁(超期)费用明细", titleStyle, listLease.size());
// 填充表头 // 填充表头
rowNum = createHeaderRow(sheet, rowNum, listLease, headerStyle); rowNum = createHeaderRow(sheet, rowNum, listLease, headerStyle);

View File

@ -219,7 +219,7 @@ public class ClzSltAgreementInfoController extends BaseController {
} }
} }
String fileName = "租赁费用明细表"; String fileName = "租赁(超期)费用明细表";
String projectName = handleData(projectNames); String projectName = handleData(projectNames);
String unitName = handleData(unitNames); String unitName = handleData(unitNames);
String actualTimeAndName = handleData(actualTimeAndNames); String actualTimeAndName = handleData(actualTimeAndNames);
@ -720,6 +720,7 @@ public class ClzSltAgreementInfoController extends BaseController {
maps.put("modelName", bean.getModelName()); maps.put("modelName", bean.getModelName());
maps.put("mtUnitName", bean.getMtUnitName()); maps.put("mtUnitName", bean.getMtUnitName());
maps.put("num", bean.getNum()); maps.put("num", bean.getNum());
maps.put("buyPrice", bean.getBuyPrice());
maps.put("costs", bean.getCosts()); maps.put("costs", bean.getCosts());
}else{ }else{
maps.put("unitName", bean.getUnitName()); maps.put("unitName", bean.getUnitName());
@ -727,12 +728,12 @@ public class ClzSltAgreementInfoController extends BaseController {
maps.put("modelName", bean.getModelName()); maps.put("modelName", bean.getModelName());
maps.put("mtUnitName", bean.getMtUnitName()); maps.put("mtUnitName", bean.getMtUnitName());
maps.put("num", bean.getNum()); maps.put("num", bean.getNum());
maps.put("buyPrice", bean.getBuyPrice());
maps.put("costs", bean.getCosts()); maps.put("costs", bean.getCosts());
maps.put("t1", ""); maps.put("t1", "");
maps.put("t2", ""); maps.put("t2", "");
maps.put("t3", ""); maps.put("t3", "");
maps.put("t4", ""); maps.put("t4", "");
maps.put("t5", "");
} }
}else if(type==3){ }else if(type==3){
if(flag==0){ if(flag==0){
@ -836,6 +837,7 @@ public class ClzSltAgreementInfoController extends BaseController {
list.add("规格型号"); list.add("规格型号");
list.add("计量单位"); list.add("计量单位");
list.add("丢失数量"); list.add("丢失数量");
list.add("原值(元)");
list.add("丢失费用(元)"); list.add("丢失费用(元)");
}else{ }else{
list.add("单位名称"); list.add("单位名称");
@ -843,12 +845,12 @@ public class ClzSltAgreementInfoController extends BaseController {
list.add("规格型号"); list.add("规格型号");
list.add("计量单位"); list.add("计量单位");
list.add("丢失数量"); list.add("丢失数量");
list.add("原值(元)");
list.add("丢失费用(元)"); list.add("丢失费用(元)");
list.add(" "); list.add(" ");
list.add(" "); list.add(" ");
list.add(" "); list.add(" ");
list.add(" "); list.add(" ");
list.add(" ");
} }
}else if(type==3){ }else if(type==3){

View File

@ -352,6 +352,18 @@ public class MaterialMachineController extends BaseController {
return AjaxResult.success(getDataTable(list)); return AjaxResult.success(getDataTable(list));
} }
/**
* 后台班组在用库存查询二级页面不分页
* @param bean
* @return
*/
@ApiOperation(value = "后台班组在用库存查询二级页面")
@GetMapping("/getTeamNumSecondListNoPage")
public AjaxResult getTeamNumSecondListNoPage(MaterialRetainedEquipmentInfo bean) {
List<MaterialRetainedTeamVo> list = materialMachineService.getTeamNumSecondList(bean);
return AjaxResult.success(getDataTable(list));
}
/** /**
* 后台班组在用库存查询二级页面 * 后台班组在用库存查询二级页面
* @param response * @param response

View File

@ -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.math.BigDecimal; import java.math.BigDecimal;
@ -41,8 +42,11 @@ public class MaterialRetainedTeamVo {
@Excel(name = "规格型号") @Excel(name = "规格型号")
private String typeModelName; private String typeModelName;
@Excel(name = "单位")
private String unitName;
@ApiModelProperty(value = "在用数量") @ApiModelProperty(value = "在用数量")
@Excel(name = "库存") @Excel(name = "库存",align = HorizontalAlignment.RIGHT, cellType = Excel.ColumnType.NUMERIC)
private BigDecimal usNum; private BigDecimal usNum;
@ApiModelProperty(value = "关键字") @ApiModelProperty(value = "关键字")
@ -64,5 +68,4 @@ public class MaterialRetainedTeamVo {
@ApiModelProperty(value = "领料ID") @ApiModelProperty(value = "领料ID")
private Long leaseId; private Long leaseId;
private String unitName;
} }

View File

@ -1607,6 +1607,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sbd_audit.sg_project_department sp ON sd.company_code = sp.parent_id LEFT JOIN sbd_audit.sg_project_department sp ON sd.company_code = sp.parent_id
WHERE WHERE
sp.`name` IS NOT NULL sp.`name` IS NOT NULL
and sp.`name` not in ('第一项目管理部(金上)','第十项目管理部(川渝)')
<if test="impUnitName != null and impUnitName != ''"> <if test="impUnitName != null and impUnitName != ''">
AND sd.dept_name LIKE CONCAT('%', #{impUnitName}, '%') AND sd.dept_name LIKE CONCAT('%', #{impUnitName}, '%')
</if> </if>
@ -1626,6 +1627,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND bp.imp_unit = #{impUnit} AND bp.imp_unit = #{impUnit}
</if> </if>
GROUP BY sp.`name` GROUP BY sp.`name`
ORDER BY
-- 先判断是否是数字部门(排在前面)
CASE WHEN SUBSTRING(sp.name,2,1) IN ('一','二','三','四','五','六','七','八','九','十') THEN 0 ELSE 1 END,
-- 数字部门按中文数字排序
field(SUBSTRING(sp.name,2,1),'一','二','三','四','五','六','七','八','九','十'),
-- 处理十一、十二等
field(SUBSTRING(sp.name,3,1),'一','二','三','四','五','六','七','八','九','十'),
sp.name
</select> </select>
<select id="getProjectList" resultType="com.bonus.material.clz.domain.vo.MaterialRetainedEquipmentInfo"> <select id="getProjectList" resultType="com.bonus.material.clz.domain.vo.MaterialRetainedEquipmentInfo">
@ -1638,6 +1647,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
WHERE WHERE
bp.pro_center IS NOT NULL bp.pro_center IS NOT NULL
AND bp.external_id IS NOT NULL AND bp.external_id IS NOT NULL
and bp.pro_id not in (3414,1192)
<if test="impUnitName != null and impUnitName != ''"> <if test="impUnitName != null and impUnitName != ''">
AND sd.dept_name LIKE CONCAT('%', #{impUnitName}, '%') AND sd.dept_name LIKE CONCAT('%', #{impUnitName}, '%')
</if> </if>