| | |
| | | } |
| | | //状态 |
| | | if (param.getStates() != null) { |
| | | sql.append(" and status =:status "); |
| | | paramts.put("status", param.getStates()); |
| | | sql.append(" and states =:states "); |
| | | paramts.put("states", param.getStates()); |
| | | } else { |
| | | sql.append(" and states !=3 "); |
| | | } |
| | | sql.append(" ORDER BY ORDER_NUMBER,CREATE_TIME DESC "); |
| | | return selectSplit(sql.toString(), paramts, new BaseCategory()); |
| | |
| | | } |
| | | |
| | | /** |
| | | * @Description 根据节点id删除节点(逻辑删除) |
| | | * @Description 根据id删除物品分类 |
| | | * @Author 卢庆阳 |
| | | * @Date 2023/10/23 |
| | | */ |
| | | public int updateById(BaseCategory baseCategory, S_user_core currentUser) { |
| | | baseCategory.setStates(Constants.CATEGORY_DELETED); |
| | | baseCategory.setStates(Constants.STATES_DELETED); |
| | | //删除时间 |
| | | baseCategory.setDTime(DateUtils.getDateTimeNumber(System.currentTimeMillis())); |
| | | //删除人id和删除人姓名 |
| | |
| | | /** |
| | | * 根据节点id查询节点详情 |
| | | * @author 卢庆阳 |
| | | * @date 2023/9/26 |
| | | * @Date 2023/10/23 |
| | | */ |
| | | public BaseCategory getById(Long id) { |
| | | return this.get(new BaseCategory(id)); |