提交相关代码

This commit is contained in:
zfhai 2023-12-05 16:17:54 +08:00
parent c6da517c99
commit df3004236c
18 changed files with 95 additions and 159 deletions

View File

@ -1,4 +1,5 @@
package com.bonus.zlpt.company.controller; package com.bonus.zlpt.company.controller;
import cn.hutool.core.lang.tree.Tree;
import com.bonus.zlpt.common.core.domain.equip.TypeInfo; import com.bonus.zlpt.common.core.domain.equip.TypeInfo;
import com.bonus.zlpt.common.core.web.controller.BaseController; import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.domain.AjaxResult; import com.bonus.zlpt.common.core.web.domain.AjaxResult;
@ -99,7 +100,7 @@ public class MaUpOffController extends BaseController {
*/ */
@PostMapping("/getEquipmentType") @PostMapping("/getEquipmentType")
public TableDataInfo getEquipmentType() { public TableDataInfo getEquipmentType() {
List<TypeInfo> list = maTypeInfoSevice.getMaTypeInfoList(); List<Tree<Long>> list = maTypeInfoSevice.getMaTypeInfoList();
return getDataTable(list); return getDataTable(list);
} }

View File

@ -1,6 +1,7 @@
package com.bonus.zlpt.equip.controller; package com.bonus.zlpt.equip.controller;
import java.util.List; import java.util.List;
import java.util.Map;
import com.bonus.zlpt.common.core.domain.equip.dto.InforMationDto; import com.bonus.zlpt.common.core.domain.equip.dto.InforMationDto;
import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo; import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo;
@ -110,4 +111,15 @@ public class DevInfoController extends BaseController
return toAjax(devInfoService.insertInforMationDto(inforMationDto)); return toAjax(devInfoService.insertInforMationDto(inforMationDto));
} }
/**
* 统计装备
* @return
*/
@GetMapping("/sumType")
public AjaxResult sumType()
{
Map<String, Integer> sumType =devInfoService.sumType();
return success(sumType);
}
} }

View File

@ -119,7 +119,7 @@ public class UpOffController extends BaseController
* 修改设备上下架管理 * 修改设备上下架管理
*/ */
@RequiresPermissions("equip:off:edit") //@RequiresPermissions("equip:off:edit")
@Log(title = "设备上下架管理", businessType = BusinessType.UPDATE) @Log(title = "设备上下架管理", businessType = BusinessType.UPDATE)
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody List<UpOff> upOffList) public AjaxResult edit(@RequestBody List<UpOff> upOffList)
@ -144,9 +144,5 @@ public class UpOffController extends BaseController
} }
/**
* 批量上下架
*/
} }

View File

@ -39,7 +39,7 @@ public interface DevInfoMapper
* @param devInfo 设备信息 * @param devInfo 设备信息
* @return 设备信息集合 * @return 设备信息集合
*/ */
public List<DevInfoVo> selectDevInfoList(DevInfo devInfo); public List<DevInfoVo> selectDevInfoList(DevInfoVo devInfo);
/** /**
* 新增设备信息 * 新增设备信息

View File

@ -1,6 +1,8 @@
package com.bonus.zlpt.equip.service; package com.bonus.zlpt.equip.service;
import java.util.List; import java.util.List;
import java.util.Map;
import com.bonus.zlpt.common.core.domain.equip.DevInfo; import com.bonus.zlpt.common.core.domain.equip.DevInfo;
import com.bonus.zlpt.common.core.domain.equip.dto.InforMationDto; import com.bonus.zlpt.common.core.domain.equip.dto.InforMationDto;
import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo; import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo;
@ -76,4 +78,6 @@ public interface IDevInfoService
*/ */
int insertInforMationDto(InforMationDto inforMationDto); int insertInforMationDto(InforMationDto inforMationDto);
public Map<String, Integer> sumType();
} }

View File

@ -7,6 +7,7 @@ import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import com.bonus.zlpt.common.core.domain.equip.dto.InforMationDto;
import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo; import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo;
import com.bonus.zlpt.common.core.domain.equip.TypeInfo; import com.bonus.zlpt.common.core.domain.equip.TypeInfo;
@ -124,12 +125,21 @@ public class DevInfoServiceImpl implements IDevInfoService
return devInfoMapper.deleteDevInfoByMaId(maId); return devInfoMapper.deleteDevInfoByMaId(maId);
} }
@Override
public int insertInforMationDto(InforMationDto inforMationDto) {
return 0;
}
/**
* 统计装备
* @return
*/
@Override @Override
public Map<String, Integer> sumType() { public Map<String, Integer> sumType() {
DevInfo devInfo = new DevInfo(); DevInfoVo devInfoVo = new DevInfoVo();
Map<String, Integer> sumTypeMap = new IdentityHashMap<>(); Map<String, Integer> sumTypeMap = new IdentityHashMap<>();
//获取所有的装备信息 //获取所有的装备信息
List<DevInfoVo> devInfoList = devInfoMapper.selectDevInfoList(devInfo); List<DevInfoVo> devInfoList = devInfoMapper.selectDevInfoList(devInfoVo);
//获取每种状态列表 //获取每种状态列表
Map<String, List<DevInfo>> groupedByMaStatus = devInfoList.stream() Map<String, List<DevInfo>> groupedByMaStatus = devInfoList.stream()
.collect(Collectors.groupingBy(DevInfo::getMaStatus)); .collect(Collectors.groupingBy(DevInfo::getMaStatus));

View File

@ -19,6 +19,11 @@
<groupId>com.bonus.zlpt</groupId> <groupId>com.bonus.zlpt</groupId>
<artifactId>zlpt-common-swagger</artifactId> <artifactId>zlpt-common-swagger</artifactId>
</dependency> </dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.18</version>
</dependency>
</dependencies> </dependencies>

View File

@ -29,7 +29,7 @@ public class MaDevInfoController extends BaseController {
* @return * @return
*/ */
@PostMapping("/getEquipmentList") @PostMapping("/getEquipmentList")
public TableDataInfo getEquipmentList(@Validated @RequestBody DevInfo maDevInfo) { public TableDataInfo getEquipmentList(@Validated @RequestBody DevInfoVo maDevInfo) {
List<DevInfoVo> list = maDevInfoService.getEquipmentList(maDevInfo); List<DevInfoVo> list = maDevInfoService.getEquipmentList(maDevInfo);
return getDataTable(list); return getDataTable(list);
} }

View File

@ -5,12 +5,10 @@ import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.page.TableDataInfo; import com.bonus.zlpt.common.core.web.page.TableDataInfo;
import com.bonus.zlpt.home.service.MaHotSearchService; import com.bonus.zlpt.home.service.MaHotSearchService;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.websocket.server.PathParam;
import java.util.List; import java.util.List;
@RestController @RestController
@ -24,8 +22,8 @@ public class MaHotSearchController extends BaseController {
* 热搜装备 * 热搜装备
* @return * @return
*/ */
@PostMapping("getHotEquipList") @GetMapping("/getHotEquipList")
public TableDataInfo getHotEquipList(@Validated @RequestBody String more) { public TableDataInfo getHotEquipList(@PathParam("more")String more) {
//获取更多 //获取更多
if (more!=null && more != ""){ if (more!=null && more != ""){
List<DevInfoVo> list = maHotSearchService.getHotEquipList(); List<DevInfoVo> list = maHotSearchService.getHotEquipList();

View File

@ -1,10 +1,10 @@
package com.bonus.zlpt.home.controller; package com.bonus.zlpt.home.controller;
import com.bonus.zlpt.common.core.domain.equip.TypeInfo; import cn.hutool.core.lang.tree.Tree;
import com.bonus.zlpt.common.core.web.controller.BaseController; import com.bonus.zlpt.common.core.web.controller.BaseController;
import com.bonus.zlpt.common.core.web.page.TableDataInfo; import com.bonus.zlpt.common.core.web.page.TableDataInfo;
import com.bonus.zlpt.home.service.MaTypeInfoSevice; import com.bonus.zlpt.home.service.MaTypeInfoSevice;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
@ -22,9 +22,9 @@ public class MaTypeInfoController extends BaseController {
* 搜索分类 * 搜索分类
* @return * @return
*/ */
@PostMapping("/getEquipmentType") @GetMapping("/getEquipmentType")
public TableDataInfo getEquipmentType() { public TableDataInfo getEquipmentType() {
List<TypeInfo> list = maTypeInfoSevice.getMaTypeInfoList(); List<Tree<Long>> list = maTypeInfoSevice.getMaTypeInfoList();
return getDataTable(list); return getDataTable(list);
} }

View File

@ -6,5 +6,5 @@ import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo;
import java.util.List; import java.util.List;
public interface MaDevInfoMapper { public interface MaDevInfoMapper {
public List<DevInfoVo> getEquipmentList(DevInfo maDevInfo); public List<DevInfoVo> getEquipmentList(DevInfoVo maDevInfo);
} }

View File

@ -4,6 +4,7 @@ import com.bonus.zlpt.common.core.domain.equip.TypeInfo;
import java.util.List; import java.util.List;
public interface MaTypeInfoMapper { public interface MaTypeInfoMapper {
public List<TypeInfo> getMaTypeInfoList() ; public List<TypeInfo> getMaTypeInfoList() ;

View File

@ -6,5 +6,5 @@ import com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo;
import java.util.List; import java.util.List;
public interface MaDevInfoService { public interface MaDevInfoService {
public List<DevInfoVo> getEquipmentList(DevInfo maDevInfo); public List<DevInfoVo> getEquipmentList(DevInfoVo maDevInfo);
} }

View File

@ -1,10 +1,11 @@
package com.bonus.zlpt.home.service; package com.bonus.zlpt.home.service;
import cn.hutool.core.lang.tree.Tree;
import com.bonus.zlpt.common.core.domain.equip.TypeInfo; import com.bonus.zlpt.common.core.domain.equip.TypeInfo;
import java.util.List; import java.util.List;
public interface MaTypeInfoSevice { public interface MaTypeInfoSevice {
public List<TypeInfo> getMaTypeInfoList(); public List<Tree<Long>> getMaTypeInfoList();
} }

View File

@ -15,7 +15,7 @@ public class MaDevInfoServiceImpl implements MaDevInfoService {
@Resource @Resource
private MaDevInfoMapper maDevInfoMapper; private MaDevInfoMapper maDevInfoMapper;
@Override @Override
public List<DevInfoVo> getEquipmentList(DevInfo maDevInfo) { public List<DevInfoVo> getEquipmentList(DevInfoVo maDevInfo) {
return maDevInfoMapper.getEquipmentList(maDevInfo); return maDevInfoMapper.getEquipmentList(maDevInfo);
} }
} }

View File

@ -1,5 +1,8 @@
package com.bonus.zlpt.home.service.impl; package com.bonus.zlpt.home.service.impl;
import cn.hutool.core.lang.tree.Tree;
import cn.hutool.core.lang.tree.TreeNode;
import cn.hutool.core.lang.tree.TreeUtil;
import com.bonus.zlpt.common.core.domain.equip.TypeInfo; import com.bonus.zlpt.common.core.domain.equip.TypeInfo;
import com.bonus.zlpt.home.mapper.MaTypeInfoMapper; import com.bonus.zlpt.home.mapper.MaTypeInfoMapper;
import com.bonus.zlpt.home.service.MaTypeInfoSevice; import com.bonus.zlpt.home.service.MaTypeInfoSevice;
@ -10,6 +13,8 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
@Service @Service
public class MaTypeInfoServiceImpl implements MaTypeInfoSevice { public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
@ -19,11 +24,12 @@ public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
@Override @Override
public List<TypeInfo> getMaTypeInfoList() { public List<Tree<Long>> getMaTypeInfoList() {
List<TypeInfo> maTypeInfoList = maTypeInfoMapper.getMaTypeInfoList(); List<TypeInfo> maTypeInfoList = maTypeInfoMapper.getMaTypeInfoList();
List<TreeNode<Long>> collect = maTypeInfoList
List<TypeInfo> menuTree = buildMenuTree(maTypeInfoList); .stream().map(getNodeFunction()).collect(Collectors.toList());
return menuTree; //List<TypeInfo> menuTree = buildMenuTree(maTypeInfoList);
return TreeUtil.build(collect,0L);
} }
@ -39,7 +45,7 @@ public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
// 将菜单按照父菜单ID分组,放在menuMap中 // 将菜单按照父菜单ID分组,放在menuMap中
for (TypeInfo maTypeInfo : maTypeInfoList) { for (TypeInfo maTypeInfo : maTypeInfoList) {
Long parentId = maTypeInfo.getParentId() != ' ' ? maTypeInfo.getParentId() : 0; Long parentId = maTypeInfo.getParentId() ;
if (!menuMap.containsKey(parentId)) { if (!menuMap.containsKey(parentId)) {
menuMap.put(parentId, new ArrayList<>()); menuMap.put(parentId, new ArrayList<>());
} }
@ -49,7 +55,7 @@ public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
// 从根菜单开始构建菜单树 // 从根菜单开始构建菜单树
rootMenus.addAll(menuMap.getOrDefault(0, new ArrayList<>())); rootMenus.addAll(menuMap.getOrDefault(0, new ArrayList<>()));
System.out.println("rootMenus: "+rootMenus); System.out.println("rootMenus: "+rootMenus);
for (TypeInfo maTypeInfo : rootMenus) { for (TypeInfo maTypeInfo : maTypeInfoList) {
buildSubMenuTree(maTypeInfo, menuMap); buildSubMenuTree(maTypeInfo, menuMap);
} }
@ -70,4 +76,16 @@ public class MaTypeInfoServiceImpl implements MaTypeInfoSevice {
buildSubMenuTree(maTypeInfoChildren, menuMap); buildSubMenuTree(maTypeInfoChildren, menuMap);
} }
} }
private Function<TypeInfo, TreeNode<Long>> getNodeFunction() {
return typeInfo -> {
TreeNode<Long> node = new TreeNode<>();
node.setId(typeInfo.getTypeId());
node.setName(typeInfo.getTypeName());
node.setParentId(typeInfo.getParentId());
node.setWeight(typeInfo.getSort());
return node;
};
}
} }

View File

@ -39,34 +39,34 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from ma_dev_info d left join ma_type_info t on d.type_id = t.type_id from ma_dev_info d left join ma_type_info t on d.type_id = t.type_id
<where> <where>
<if test="maId != null and maId != ''"> <if test="maId != null and maId != ''">
AND ma_id = #{maId} AND d.ma_id = #{maId}
</if> </if>
<if test="code != null and code != ''"> <if test="code != null and code != ''">
AND code = #{code} AND d.code = #{code}
</if> </if>
<if test="typeId != null and typeId != ''"> <if test="typeId != null and typeId != ''">
AND type_id = #{typeId} AND d.type_id = #{typeId}
</if> </if>
<if test="maStatus != null and maStatus != ''"> <if test="maStatus != null and maStatus != ''">
AND ma_status = #{maStatus} AND d.ma_status = #{maStatus}
</if> </if>
<if test="leaseScope != null and leaseScope != ''"> <if test="leaseScope != null and leaseScope != ''">
AND lease_scope = #{leaseScope} AND d.lease_scope = #{leaseScope}
</if> </if>
<if test="location != null and location != ''"> <if test="location != null and location != ''">
AND location = #{location} AND d.location = #{location}
</if> </if>
<if test="brand != null and brand != ''"> <if test="brand != null and brand != ''">
AND brand = #{brand} AND d.brand = #{brand}
</if> </if>
<if test="modelName != null and modelName != ''"> <if test="modelName != null and modelName != ''">
AND model_name = #{modelName} AND d.model_name = #{modelName}
</if> </if>
<if test="productionDate != null and productionDate != ''"> <if test="productionDate != null and productionDate != ''">
AND production_date = #{productionDate} AND d.production_date = #{productionDate}
</if> </if>
<if test="workingHours != null and workingHours != ''"> <if test="workingHours != null and workingHours != ''">
AND working_hours = #{workingHours} AND d.working_hours = #{workingHours}
</if> </if>
<if test="serialNumber != null and serialNumber != ''"> <if test="serialNumber != null and serialNumber != ''">
AND serial_number = #{serialNumber} AND serial_number = #{serialNumber}
@ -107,6 +107,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="isActive != null and isActive != ''"> <if test="isActive != null and isActive != ''">
AND is_active = #{isActive} AND is_active = #{isActive}
</if> </if>
<if test="typeName != null and typeName != ''">
AND t.type_name like concat('%', #{typeName}, '%')
</if>
</where> </where>
</select> </select>

View File

@ -2,9 +2,9 @@
<!DOCTYPE mapper <!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.bonus.zlpt.home.mapper.MaDevInfoMapper"> <mapper namespace="com.bonus.zlpt.home.mapper.MaTypeInfoMapper">
<resultMap type="com.bonus.zlpt.common.core.domain.equip.DevInfo" id="MaDevInfoResult"> <resultMap type="com.bonus.zlpt.common.core.domain.equip.TypeInfo" id="MaDevInfoResult">
<id property="typeId" column="type_id" /> <id property="typeId" column="type_id" />
<result property="parentId" column="parent_id" /> <result property="parentId" column="parent_id" />
@ -15,129 +15,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="bmProjectInfo"> <sql id="bmProjectInfo">
select type_id, parent_id, type_name, level, sort, is_active select type_id, parent_id, type_name, `level`, sort, is_active
from ma_type_info from ma_type_info
</sql> </sql>
<select id="getMaTypeInfoList" resultType="com.bonus.zlpt.common.core.domain.equip.DevInfo"> <select id="getMaTypeInfoList" resultType="com.bonus.zlpt.common.core.domain.equip.TypeInfo">
select type_id, parent_id, type_name, level, sort, is_active select type_id, parent_id, type_name, `level`, sort, is_active
from ma_type_info from ma_type_info
</select> </select>
<select id="getProjectInfo" parameterType="com.bonus.zlpt.common.core.domain.equip.DevInfo" resultMap="MaDevInfoResult">
select pro_id, pro_name, status, type_id, link_man, telphone, dept_id, del_flag, create_by, create_time,
update_by, update_time, remark, company_id
from bm_project_info
where del_flag = '0'
<if test="proId != null and proId != ''">
AND pro_id = #{proId}
</if>
<if test="proName != null and proName != ''">
AND pro_name like concat('%', #{proName}, '%')
</if>
<if test="status != null and status != ''">
AND status = #{status}
</if>
<if test="typeId != null and typeId != ''">
AND type_id = #{typeId}
</if>
<if test="linkMan != null and linkMan != ''">
and link_man = #{linkMan}
</if>
<if test="telphone != null and telphone != ''">
and telphone = #{telphone}
</if>
<if test="deptId != null and deptId != ''">
and dept_id = #{deptId}
</if>
<if test="delFlag != null and delFlag != ''">
and del_flag = #{delFlag}
</if>
<if test="createBy != null and createBy != ''">
and create_by = #{createBy}
</if>
<if test="createTime != null and createTime != ''">
and create_time = #{createTime}
</if>
<if test="updateBy != null and updateBy != ''">
and update_by = #{updateBy}
</if>
<if test="updateTime != null and updateTime != ''">
and update_time = #{updateTime}
</if>
<if test="remark != null and remark != ''">
and remark = #{remark}
</if>
<if test="companyId != null and companyId != ''">
and company_id = #{companyId}
</if>
</select>
<insert id="projectInfoAdd" parameterType="com.bonus.zlpt.common.core.domain.equip.DevInfo">
insert into bm_project_info (
<if test="proName != null and proName != '' ">pro_name,</if>
<if test="status != null and status != '' ">status,</if>
<if test="typeId != null and typeId != '' ">type_id,</if>
<if test="linkMan != null and linkMan != '' ">link_man,</if>
<if test="telphone != null and telphone != ''">telphone,</if>
<if test="deptId != null and deptId != ''">dept_id,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null and updateTime != ''">update_time,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="companyId != null and companyId != ''">company_id,</if>
create_time
)values(
<if test="proName != null and proName != ''">#{proName},</if>
<if test="status != null and status != ''">#{status},</if>
<if test="typeId != null and typeId != ''">#{typeId},</if>
<if test="linkMan != null and linkMan != ''">#{linkMan},</if>
<if test="telphone != null and telphone != ''">#{telphone},</if>
<if test="deptId != null and deptId != ''">#{deptId},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null and updateTime != ''">#{updateTime},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="companyId != null and companyId != ''">#{companyId},</if>
sysdate()
)
</insert>
<update id="updateBmProjectInfo" parameterType="com.bonus.zlpt.common.core.domain.equip.DevInfo">
update bm_project_info
<set>
<if test="proName != null and proName != ''">pro_name = #{proName},</if>
<if test="status != null and status != ''">status = #{status},</if>
<if test="typeId != null and typeId != ''">type_id = #{typeId},</if>
<if test="linkMan != null and linkMan != ''">link_man = #{linkMan},</if>
<if test="telphone != null and telphone != ''">telphone = #{telphone},</if>
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
<if test="createBy != null and createBy != ''">create_by =#{createBy},</if>
<if test="createTime != null and createTime != ''">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by =#{updateBy},</if>
<if test="remark != null and remark != ''">remark = #{remark},</if>
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
update_time = sysdate()
</set>
where pro_id = #{proId}
</update>
<delete id="deleteProjectInfoById" parameterType="Long">
update bm_project_info set del_flag = '2' where pro_id = #{proId}
</delete>
<delete id="remove" parameterType="Long">
delete from bm_project_info where pro_id in
<foreach item="proId" collection="array" open="(" separator="," close=")">
#{proId}
</foreach>
</delete>
</mapper> </mapper>