Commit ee9e0bd1 by 陶光胜

配置表

parent 303f0d78
......@@ -20,8 +20,8 @@ public class TableSettingFieldServiceImpl implements TableSettingFieldService {
public void saveTableField(TableSettingFieldDTO tableSettingFieldDTO) {
TabTableSettingField tab = EntityUtil.changeEntityByJSON(TabTableSettingField.class, tableSettingFieldDTO);
Date date = new Date();
tableSettingFieldDTO.setUpdateTime(date);
if(tableSettingFieldDTO.getFieldId() != null){
tableSettingFieldDTO.setUpdateTime(date);
tabTableSettingFieldMapper.updateByPrimaryKeySelective(tab);
} else {
tableSettingFieldDTO.setCreateTime(date);
......
......@@ -14,6 +14,7 @@ import com.gic.operation.web.qo.TableSettingQO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.List;
......@@ -38,7 +39,7 @@ public class TableSettingController {
@RequestMapping("page-table-setting")
@ResponseBody
public RestResponse pageTableSetting(String search, Integer pageNum, Integer pageSize){
public RestResponse pageTableSetting(String search, @RequestParam(defaultValue = 1) Integer pageNum, @RequestParam(defaultValue = 20) Integer pageSize){
Page<TableSettingDTO> result = tableSettingApiService.pageTableSetting(search, pageNum, pageSize).getResult();
return RestResponse.success(result);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment