Merge remote-tracking branch 'origin/develop_3' into develop_3
This commit is contained in:
+6
@@ -15,6 +15,9 @@ import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.management.relation.Role;
|
||||
import javax.xml.crypto.Data;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -38,6 +41,7 @@ public class TsPositionServiceImpl extends ServiceImpl<TsPositionDao, TsPosition
|
||||
*/
|
||||
@Override
|
||||
public List<TsPosition> getPosition(TsPosition tsPosition) {
|
||||
|
||||
return tsPositionDao.selectPositionAndRole(tsPosition);
|
||||
}
|
||||
|
||||
@@ -90,6 +94,8 @@ public class TsPositionServiceImpl extends ServiceImpl<TsPositionDao, TsPosition
|
||||
if(tsPositions!=null&&tsPositions.size()>0){
|
||||
return Result.error("该岗位已存在");
|
||||
}
|
||||
//设置操作时间为当前系统时间
|
||||
tsPosition.setOperateTime(new Timestamp(System.currentTimeMillis()));
|
||||
tsPosition.setType("2");
|
||||
tsPositionDao.insert(tsPosition);
|
||||
return Result.success();
|
||||
|
||||
@@ -42,6 +42,20 @@ public class TsUrlController{
|
||||
List<TsUrl> tsUrls=tsUrlService.list(tsUrlQueryWrapper);
|
||||
return Result.success(tsUrls);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param orderList 修改排序后的列表
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation("更新链接排序")
|
||||
@PutMapping(value = "/updateOrder")
|
||||
public ResponseMessage<?> updateOrder(@RequestBody List<TsUrl> orderList){
|
||||
//持久化修改排序后的列表
|
||||
boolean line=tsUrlService.updateBatchById(orderList);
|
||||
return Result.success(line);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
@@ -56,7 +70,7 @@ public class TsUrlController{
|
||||
tsUrlService.save(tsUrl);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
@@ -70,7 +84,7 @@ public class TsUrlController{
|
||||
tsUrlService.updateById(tsUrl);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
@@ -83,7 +97,7 @@ public class TsUrlController{
|
||||
tsUrlService.removeById(id);
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
@@ -96,7 +110,7 @@ public class TsUrlController{
|
||||
this.tsUrlService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user