lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/controller/MdcTorqueConfigController.java
@@ -1,6 +1,5 @@ package org.jeecg.modules.mdc.controller; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/entity/MdcTorqueConfig.java
@@ -7,7 +7,6 @@ import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiOperation; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; @@ -63,10 +62,17 @@ private Date torqueDate; /** * 扭矩值 * 参数类型 */ @Excel(name = "扭矩值", width = 15) @ApiModelProperty("扭矩值") @Excel(name = "参数类型", width = 15) @ApiModelProperty("参数类型") private String argumentType; /** * 参数值 */ @Excel(name = "参数值", width = 15) @ApiModelProperty("参数值") private float torqueValue; /** lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcTorqueConfigMapper.xml
@@ -3,7 +3,7 @@ <mapper namespace="org.jeecg.modules.mdc.mapper.MdcTorqueConfigMapper"> <!--根据扭矩值生成主轴运行曲线--> <select id="findSpindleRunningCurve" resultType="org.jeecg.modules.mdc.entity.MdcTorqueConfig"> select mtc.* from mdc_torque_config mtc where mtc.torque_value=#{torqueValue} and mtc.equipment_id=#{equipmentId} select mtc.* from mdc_torque_config mtc where mtc.torque_value=#{torqueValue} and mtc.equipment_id=#{equipmentId} AND mtc.argument_type = '扭矩' </select> <!--根据车间层级查询扭矩配置列表--> @@ -25,6 +25,7 @@ #{ id } </foreach> </if> AND argument_type = '扭矩' ORDER BY torque_date ASC </where> </select> @@ -35,7 +36,7 @@ FROM mdc_torque_config WHERE equipment_id = #{ equipmentId } equipment_id = #{ equipmentId } AND argument_type = '扭矩' ORDER BY torque_date DESC </select> lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/service/impl/MdcTorqueConfigServiceImpl.java
@@ -49,6 +49,7 @@ MdcEquipment mdcEquipment = mdcEquipmentService.findEquipmentNameByEquipmentId(equipmentId); MdcTorqueConfig torqueConfig = new MdcTorqueConfig(); torqueConfig.setEquipmentId(equipmentId); torqueConfig.setArgumentType(mdcTorqueConfig.getArgumentType()); torqueConfig.setEquipmentName(mdcEquipment.getEquipmentName()); torqueConfig.setTorqueDate(mdcTorqueConfig.getTorqueDate()); torqueConfig.setTorqueValue(mdcTorqueConfig.getTorqueValue());