bug修改
This commit is contained in:
parent
f99aa9aa31
commit
ff893914d9
|
|
@ -243,7 +243,7 @@ public class TmTaskController extends BaseController {
|
||||||
} else {
|
} else {
|
||||||
return AjaxResult.error("创建任务失败");
|
return AjaxResult.error("创建任务失败");
|
||||||
}
|
}
|
||||||
return AjaxResult.success("任务创建成功,已完成");
|
return AjaxResult.success("任务创建成功");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return AjaxResult.error("创建任务失败," + e.getCause().toString() + "," + e.getMessage());
|
return AjaxResult.error("创建任务失败," + e.getCause().toString() + "," + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,9 +78,9 @@ public class MaPropInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "根据类型名称查询类型")
|
@ApiOperation(value = "根据类型名称查询类型")
|
||||||
@GetMapping("/getMaTypeList")
|
@GetMapping("/getMaTypeList")
|
||||||
public TableDataInfo getMaTypeList(String typeName) {
|
public TableDataInfo getMaTypeList(MaPropInfo maPropInfo) {
|
||||||
startPage();
|
startPage();
|
||||||
List<MaType> maTypeList = maPropInfoService.selectMaType(typeName);
|
List<MaType> maTypeList = maPropInfoService.selectMaType(maPropInfo);
|
||||||
return getDataTable(maTypeList);
|
return getDataTable(maTypeList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -170,13 +170,13 @@ public class MaPropInfoController extends BaseController {
|
||||||
* 资产属性配置导出
|
* 资产属性配置导出
|
||||||
*
|
*
|
||||||
* @param response
|
* @param response
|
||||||
* @param typeName
|
* @param maPropInfo
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value = "资产属性配置导出")
|
@ApiOperation(value = "资产属性配置导出")
|
||||||
@Log(title = "资产属性配置导出", businessType = BusinessType.EXPORT)
|
@Log(title = "资产属性配置导出", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/exportConfig")
|
@PostMapping("/exportConfig")
|
||||||
public void exportConfig(HttpServletResponse response, String typeName) {
|
public void exportConfig(HttpServletResponse response, MaPropInfo maPropInfo) {
|
||||||
List<MaType> list = maPropInfoService.selectMaType(typeName);
|
List<MaType> list = maPropInfoService.selectMaType(maPropInfo);
|
||||||
ExcelUtil<MaType> util = new ExcelUtil<MaType>(MaType.class);
|
ExcelUtil<MaType> util = new ExcelUtil<MaType>(MaType.class);
|
||||||
util.exportExcel(response, list, "资产属性配置数据");
|
util.exportExcel(response, list, "资产属性配置数据");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class BmProjectInfo {
|
public class BmProjectInfo {
|
||||||
/**工程ID*/
|
/**工程ID*/
|
||||||
|
|
@ -68,6 +70,17 @@ public class BmProjectInfo {
|
||||||
@ApiModelProperty(value = "工程类型名称")
|
@ApiModelProperty(value = "工程类型名称")
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
|
||||||
|
/** 导出选中列表 */
|
||||||
|
private List<Long> dataCondition;
|
||||||
|
|
||||||
|
public List<Long> getDataCondition() {
|
||||||
|
return dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCondition(List<Long> dataCondition) {
|
||||||
|
this.dataCondition = dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
public long getProId() {
|
public long getProId() {
|
||||||
return proId;
|
return proId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class BmProjectLot {
|
public class BmProjectLot {
|
||||||
|
|
@ -125,6 +126,17 @@ public class BmProjectLot {
|
||||||
@ApiModelProperty(value = "工程类型名称")
|
@ApiModelProperty(value = "工程类型名称")
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
|
||||||
|
/** 导出选中列表 */
|
||||||
|
private List<Long> dataCondition;
|
||||||
|
|
||||||
|
public List<Long> getDataCondition() {
|
||||||
|
return dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCondition(List<Long> dataCondition) {
|
||||||
|
this.dataCondition = dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
public long getLotId() {
|
public long getLotId() {
|
||||||
return lotId;
|
return lotId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@ package com.bonus.sgzb.base.domain;
|
||||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class MaPropInfo {
|
public class MaPropInfo {
|
||||||
/**
|
/**
|
||||||
|
|
@ -61,6 +63,19 @@ public class MaPropInfo {
|
||||||
@Excel(name = "所属上级")
|
@Excel(name = "所属上级")
|
||||||
private String deptName;
|
private String deptName;
|
||||||
|
|
||||||
|
private String typeName;
|
||||||
|
|
||||||
|
/** 导出选中列表 */
|
||||||
|
private List<Long> dataCondition;
|
||||||
|
|
||||||
|
public List<Long> getDataCondition() {
|
||||||
|
return dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCondition(List<Long> dataCondition) {
|
||||||
|
this.dataCondition = dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
public long getPropId() {
|
public long getPropId() {
|
||||||
return propId;
|
return propId;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ public interface MaPropInfoMapper {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<MaPropSet> checkPropIdUnique(MaPropSet maPropSet);
|
List<MaPropSet> checkPropIdUnique(MaPropSet maPropSet);
|
||||||
List<MaType> selectMaType(String typeName);
|
List<MaType> selectMaType(MaPropInfo maPropInfo);
|
||||||
/**
|
/**
|
||||||
* 删除资产项目
|
* 删除资产项目
|
||||||
* @param propId
|
* @param propId
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ public interface IMaPropInfoService {
|
||||||
* @param
|
* @param
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<MaType> selectMaType(String typeName);
|
List<MaType> selectMaType(MaPropInfo maPropInfo);
|
||||||
/**
|
/**
|
||||||
* 校验资产项目名称唯一性
|
* 校验资产项目名称唯一性
|
||||||
* @param maPropInfo
|
* @param maPropInfo
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ public class MaPropInfoServiceImpl implements IMaPropInfoService {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<MaType> selectMaType(String typeName) {
|
public List<MaType> selectMaType(MaPropInfo maPropInfo) {
|
||||||
return maPropInfoMapper.selectMaType(typeName);
|
return maPropInfoMapper.selectMaType(maPropInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="companyId != null and companyId != ''">
|
<if test="companyId != null and companyId != ''">
|
||||||
and a.company_id = #{companyId}
|
and a.company_id = #{companyId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dataCondition != null and dataCondition.size()>0">
|
||||||
|
AND a.pro_id in
|
||||||
|
<foreach collection="dataCondition" item="proId" index="index" open="(" separator="," close=")">
|
||||||
|
#{proId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
ORDER BY a.pro_id DESC
|
ORDER BY a.pro_id DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="getProjectLot" parameterType="com.bonus.sgzb.base.domain.BmProjectInfo" resultMap="BmProjectInfoResult">
|
<select id="getProjectLot" parameterType="com.bonus.sgzb.base.domain.BmProjectInfo" resultMap="BmProjectInfoResult">
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="companyId != null and companyId != ''">
|
<if test="companyId != null and companyId != ''">
|
||||||
and company_id = #{companyId}
|
and company_id = #{companyId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dataCondition != null and dataCondition.size()>0">
|
||||||
|
AND a.lot_id in
|
||||||
|
<foreach collection="dataCondition" item="lotId" index="index" open="(" separator="," close=")">
|
||||||
|
#{lotId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
ORDER BY a.lot_id DESC
|
ORDER BY a.lot_id DESC
|
||||||
</select>
|
</select>
|
||||||
<select id="selectByName" resultType="com.bonus.sgzb.base.domain.BmProjectLot">
|
<select id="selectByName" resultType="com.bonus.sgzb.base.domain.BmProjectLot">
|
||||||
|
|
|
||||||
|
|
@ -93,6 +93,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="typeName != null and typeName !=''">
|
<if test="typeName != null and typeName !=''">
|
||||||
AND type_name like concat('%',#{typeName},'%')
|
AND type_name like concat('%',#{typeName},'%')
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dataCondition != null and dataCondition.size()>0">
|
||||||
|
AND m.type_id in
|
||||||
|
<foreach collection="dataCondition" item="typeId" index="index" open="(" separator="," close=")">
|
||||||
|
#{typeId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
@ -211,6 +217,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="propId != null and propId != ''">
|
<if test="propId != null and propId != ''">
|
||||||
AND a.prop_id = #{propId}
|
AND a.prop_id = #{propId}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dataCondition != null and dataCondition.size()>0">
|
||||||
|
AND a.prop_id in
|
||||||
|
<foreach collection="dataCondition" item="propId" index="index" open="(" separator="," close=")">
|
||||||
|
#{propId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="selectMaPropSets" resultType="com.bonus.sgzb.base.domain.MaPropInfo" resultMap="MaPropInfoResult">
|
<select id="selectMaPropSets" resultType="com.bonus.sgzb.base.domain.MaPropInfo" resultMap="MaPropInfoResult">
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="getMaintenanceGangInfoAll" resultType="com.bonus.sgzb.base.domain.MaintenanceGang">
|
<select id="getMaintenanceGangInfoAll" resultType="com.bonus.sgzb.base.domain.MaintenanceGang">
|
||||||
SELECT mt.type_id as modelId ,mt.type_name as modelName,
|
SELECT mt.type_id as modelId ,mt.type_name as modelName,
|
||||||
mt2.type_id, mt2.type_name,
|
mt2.type_id, mt2.type_name as typeName,
|
||||||
mt3.type_id as typeId,mt3.type_name as typeName,
|
mt3.type_id as typeId,mt3.type_name,
|
||||||
mt3.type_id as kindId,mt4.type_name as kindName,
|
mt3.type_id as kindId,mt4.type_name as kindName,
|
||||||
su.user_id as userId, su.nick_name as userName
|
su.user_id as userId, su.nick_name as userName
|
||||||
FROM ma_type mt
|
FROM ma_type mt
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue