diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue index e49d3bf7..e56374db 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue @@ -8,6 +8,11 @@ + + + + + @@ -28,11 +33,7 @@ - - - - - + @@ -60,6 +61,7 @@ return { model:{ addPeople:'', + nums:'', }, labelCol: { xs: { span: 24 }, @@ -88,7 +90,8 @@ url: { add: "/base/zyClothAction/add", edit: "/base/zyClothAction/edit", - queryById: "/base/zyClothAction/queryById" + queryById: "/base/zyClothAction/queryById", + sort:"/base/zyClothAction/sort" } } }, @@ -100,7 +103,17 @@ created () { //备份model原始值 this.modelDefault = JSON.parse(JSON.stringify(this.model)); - + var n=5 + getAction(this.url.sort,null).then((res)=>{ + // console.log(res.message) + var num=parseInt(res.message,10)+1 + num=num.toString() + while(num.length - + @@ -79,12 +79,7 @@ - 编辑 - - - 详情 - 删除 @@ -94,7 +89,7 @@ - + @@ -103,7 +98,7 @@ import '@/assets/less/TableExpand.less' import { mixinDevice } from '@/utils/mixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin' - import ZyOperationtoolModal from "@/views/operationtool/modules/ZyOperationtoolModal" + import ZyOperationtoolModal from "./ZyOperationtoolModal" import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' export default { @@ -196,6 +191,9 @@ }, initDictConfig(){ }, + valueChange(value){ + if (value) this.loadData() + }, getSuperFieldList(){ let fieldList=[]; fieldList.push({type:'string',value:'operationid',text:'工序',dictCode:'zy_process,process_name,id'}) diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyOperationtoolModal.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyOperationtoolModal.vue new file mode 100644 index 00000000..5917a9db --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyOperationtoolModal.vue @@ -0,0 +1,94 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesList.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesList.vue index b8027c32..bed9aef8 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesList.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesList.vue @@ -79,13 +79,13 @@ - 编辑 + - + - 详情 - + + 删除 @@ -95,7 +95,7 @@ - + @@ -104,7 +104,7 @@ import '@/assets/less/TableExpand.less' import { mixinDevice } from '@/utils/mixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin' - import ZyProcessAccessoriesModal from '@/views/cloths/modules/ZyProcessAccessoriesModal' + import ZyProcessAccessoriesModal from './ZyProcessAccessoriesModal' export default { name: 'ZyProcessAccessoriesList', @@ -195,6 +195,9 @@ this.visible = true; }, + valueChange(value){ + if (value) this.loadData() + }, initDictConfig(){ }, getSuperFieldList(){ diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesModal.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesModal.vue new file mode 100644 index 00000000..8e1883c8 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessAccessoriesModal.vue @@ -0,0 +1,94 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionList.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionList.vue index 0260f61f..b39a77d1 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionList.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionList.vue @@ -79,22 +79,25 @@ - 编辑 - - 详情 - + + + + 删除 - + + 升序 + + 降序 - + @@ -105,6 +108,7 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin' import ZyProcessActionModal from './ZyProcessActionModal' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' + import {getAction} from "@api/manage"; export default { name: 'ZyProcessActionList', @@ -173,6 +177,8 @@ deleteBatch: "/pro/zyProcessAction/deleteBatch", exportXlsUrl: "/pro/zyProcessAction/exportXls", importExcelUrl: "pro/zyProcessAction/importExcel", + up:"/pro/zyProcessAction/up", + down:"/pro/zyProcessAction/down" }, dictOptions:{}, @@ -193,12 +199,30 @@ edit (record) { this.id = record; this.queryParam.processId=this.id; - console.log("燕慧森1号") this.url.list='/pro/zyProcessAction/list1' this.loadData(); this.visible = true; }, + up(id){ + getAction(this.url.up,{id:id}).then((res)=>{ + if(res.success){ + this.$message.success(res.message); + }else{ + this.$message.warning(res.message); + } + })}, + down(id){ + getAction(this.url.down,{id:id}).then((res)=>{ + if(res.success){ + this.$message.success(res.message); + }else{ + this.$message.warning(res.message); + } + })}, + valueChange(value){ + if (value) this.loadData() + }, initDictConfig(){ }, getSuperFieldList(){ diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionModal.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionModal.vue index da3d3288..80586a06 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionModal.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessActionModal.vue @@ -8,37 +8,47 @@ :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" @cancel="handleCancel" cancelText="关闭"> - + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineList.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineList.vue index 9f3b2a68..8f2eff00 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineList.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineList.vue @@ -84,13 +84,6 @@ - 编辑 - - - - - 详情 - 删除 @@ -100,7 +93,7 @@ - + @@ -109,7 +102,7 @@ import '@/assets/less/TableExpand.less' import { mixinDevice } from '@/utils/mixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin' - import ZyProcessMachineModal from '@/views/cloths/modules/ZyProcessMachineModal' + import ZyProcessMachineModal from './ZyProcessMachineModal' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' export default { @@ -194,10 +187,12 @@ }, }, methods: { + valueChange(value){ + if (value) this.loadData() + }, edit (record) { this.id = record; this.queryParam.processId=this.id; - console.log("燕慧森1号") this.loadData(); this.visible = true; diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineModal.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineModal.vue new file mode 100644 index 00000000..24c6a945 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessMachineModal.vue @@ -0,0 +1,84 @@ + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyAccessoriesList.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyAccessoriesList.vue new file mode 100644 index 00000000..17b2a9be --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyAccessoriesList.vue @@ -0,0 +1,159 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothActionList.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothActionList.vue new file mode 100644 index 00000000..ad7df5b9 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothActionList.vue @@ -0,0 +1,214 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyFabricList.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyFabricList.vue new file mode 100644 index 00000000..0ac99896 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyFabricList.vue @@ -0,0 +1,196 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyMachine.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyMachine.vue new file mode 100644 index 00000000..37f100ac --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyMachine.vue @@ -0,0 +1,193 @@ + + + + \ No newline at end of file diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyToolList.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyToolList.vue new file mode 100644 index 00000000..df23758f --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyToolList.vue @@ -0,0 +1,154 @@ + + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothActionController.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothActionController.java index b51a8218..b36181ff 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothActionController.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothActionController.java @@ -167,5 +167,10 @@ public class ZyClothActionController extends JeecgController importExcel(HttpServletRequest request, HttpServletResponse response) { return super.importExcel(request, response, ZyClothAction.class); } + @GetMapping(value = "/sort") + public Result sort(){ + String s=zyClothActionService.sort(); + return Result.ok(s.substring(1)); + } } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/entity/ZyProcess.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/entity/ZyProcess.java index 4595a4d8..96c3b8fe 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/entity/ZyProcess.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/entity/ZyProcess.java @@ -179,7 +179,7 @@ public class ZyProcess implements Serializable { */ @Excel(name = "类型名称", width = 15) @ApiModelProperty(value = "类型名称") - @Dict(dictTable = "zy_cloths_type", dicText = "zy_cloths_type", dicCode = "nums") + @Dict(dictTable = "zy_cloths_type", dicText = "type_name", dicCode = "nums") private java.lang.String styleId; /** * 工段代码 diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/mapper/ZyClothActionMapper.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/mapper/ZyClothActionMapper.java index d988e941..aa6d1ae4 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/mapper/ZyClothActionMapper.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/mapper/ZyClothActionMapper.java @@ -3,6 +3,7 @@ package org.jeecg.modules.demo.base.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; import org.jeecg.modules.demo.base.entity.ZyClothAction; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -14,4 +15,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; */ public interface ZyClothActionMapper extends BaseMapper { + @Select("select nums from zy_cloth_action order by nums desc limit 0,1") + String sort(); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/IZyClothActionService.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/IZyClothActionService.java index e34482ea..bd9c3fa3 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/IZyClothActionService.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/IZyClothActionService.java @@ -11,4 +11,5 @@ import com.baomidou.mybatisplus.extension.service.IService; */ public interface IZyClothActionService extends IService { + String sort(); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/impl/ZyClothActionServiceImpl.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/impl/ZyClothActionServiceImpl.java index 3c6399e9..ba424977 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/impl/ZyClothActionServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/impl/ZyClothActionServiceImpl.java @@ -3,6 +3,7 @@ package org.jeecg.modules.demo.base.service.impl; import org.jeecg.modules.demo.base.entity.ZyClothAction; import org.jeecg.modules.demo.base.mapper.ZyClothActionMapper; import org.jeecg.modules.demo.base.service.IZyClothActionService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @@ -16,4 +17,10 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @Service public class ZyClothActionServiceImpl extends ServiceImpl implements IZyClothActionService { + @Autowired + ZyClothActionMapper zyClothActionMapper; + @Override + public String sort() { + return zyClothActionMapper.sort(); + } } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessAccessoriesController.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessAccessoriesController.java index 4fccd6a8..e01d31cc 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessAccessoriesController.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessAccessoriesController.java @@ -109,13 +109,17 @@ public class ZyProcessAccessoriesController extends JeecgController add(@RequestBody ZyProcessAccessories zyProcessAccessories) { + String[] split = zyProcessAccessories.getAccessoriesId().split(","); + for (String k : split) { + zyProcessAccessories.setAccessoriesId(k); QueryWrapper s=new QueryWrapper(); s.eq("process_id",zyProcessAccessories.getProcessId()); s.eq("accessories_id",zyProcessAccessories.getAccessoriesId()); int a=zyProcessAccessoriesService.count(s); - if(a>=1) - return Result.error("已存在本信息"); + if(a==0) zyProcessAccessoriesService.save(zyProcessAccessories); + zyProcessAccessories.setId(null); + } return Result.OK("添加成功!"); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessActionController.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessActionController.java index eae93464..1fb140e2 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessActionController.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessActionController.java @@ -108,13 +108,18 @@ public class ZyProcessActionController extends JeecgController add(@RequestBody ZyProcessAction zyProcessAction) { - QueryWrapper s=new QueryWrapper(); - s.eq("process_id",zyProcessAction.getProcessId()); - s.eq("action_id",zyProcessAction.getActionId()); - int a=zyProcessActionService.count(s); - if(a>=1) - return Result.error("已存在本信息"); - zyProcessActionService.save(zyProcessAction); + String[] split = zyProcessAction.getActionId().split(","); + for (String k : split) { + zyProcessAction.setActionId(k); + QueryWrapper s=new QueryWrapper(); + s.eq("process_id",zyProcessAction.getProcessId()); + s.eq("action_id",zyProcessAction.getActionId()); + int a=zyProcessActionService.count(s); + if(a==0) + zyProcessActionService.save(zyProcessAction); + zyProcessAction.setId(null); + } + return Result.OK("添加成功!"); } @@ -205,5 +210,22 @@ public class ZyProcessActionController extends JeecgController importExcel(HttpServletRequest request, HttpServletResponse response) { return super.importExcel(request, response, ZyProcessAction.class); } + @AutoLog(value = "排序") + @ApiOperation(value="排序", notes="排序") + @GetMapping(value = "/up") + public Result shang(@RequestParam(name="id",required=true) String id) { + zyProcessActionService.up(id); + return Result.ok("升序成功"); + } + @AutoLog(value = "排序") + @ApiOperation(value="排序", notes="排序") + @GetMapping(value = "/down") + public Result xia(@RequestParam(name="id",required=true) String id) { + int a=zyProcessActionService.findSort(id); + if(a==0) + return Result.error("当前已经是最低级别!!!"); + zyProcessActionService.down(id); + return Result.ok("降序成功"); + } } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessFabricController.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessFabricController.java index f06fb4f2..d0881c70 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessFabricController.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessFabricController.java @@ -106,13 +106,17 @@ public class ZyProcessFabricController extends JeecgController add(@RequestBody ZyProcessFabric zyProcessFabric) { + String[] split = zyProcessFabric.getFabricId().split(","); + for (String k : split) { + zyProcessFabric.setFabricId(k); QueryWrapper s=new QueryWrapper(); s.eq("process_id",zyProcessFabric.getProcessId()); s.eq("fabric_id",zyProcessFabric.getFabricId()); int a=zyProcessFabricService.count(s); - if(a>=1) - return Result.error("已存在本信息"); + if(a==0) zyProcessFabricService.save(zyProcessFabric); + zyProcessFabric.setId(null); + } return Result.OK("添加成功!"); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessMachineController.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessMachineController.java index c7d7dafc..2afaaf83 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessMachineController.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/controller/ZyProcessMachineController.java @@ -105,13 +105,17 @@ public class ZyProcessMachineController extends JeecgController add(@RequestBody ZyProcessMachine zyProcessMachine) { + String[] split = zyProcessMachine.getMachineId().split(","); + for (String k : split) { + zyProcessMachine.setMachineId(k); QueryWrapper s=new QueryWrapper(); s.eq("process_id",zyProcessMachine.getProcessId()); s.eq("machine_id",zyProcessMachine.getMachineId()); int a=zyProcessMachineService.count(s); - if(a>=1) - return Result.error("已存在本信息"); + if(a==0) zyProcessMachineService.save(zyProcessMachine); + zyProcessMachine.setId(null); + } return Result.OK("添加成功!"); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessActionMapper.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessActionMapper.java index 584e11c0..7b9c6d07 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessActionMapper.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/mapper/ZyProcessActionMapper.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import org.apache.ibatis.annotations.Update; import org.jeecg.modules.demo.base.entity.ZyClothAction; import org.jeecg.modules.demo.pro.entity.ZyProcessAction; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -25,4 +26,12 @@ public interface ZyProcessActionMapper extends BaseMapper { IPage page1(Page page, @Param("p") String s, @Param("m") String t); @Select("select * from zy_cloth_action where id in (select action_id from zy_process_action where process_id=#{id}) ") List selectByid(String id); + + @Update("UPDATE zy_process_action SET sort_action=sort_action+1 WHERE id=#{id} ") + void up(String id); + @Update("UPDATE zy_process_action SET sort_action=sort_action-1 WHERE id=#{id} ") + void down(String id); + + @Select("select sort_action from zy_process_action where id=#{id} ") + int findSort(String id); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessActionService.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessActionService.java index db1e0a9f..b506ed26 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessActionService.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/IZyProcessActionService.java @@ -22,4 +22,10 @@ public interface IZyProcessActionService extends IService { IPage page1(Page page, String s, String t); List selectByid(String id); + + void up(String id); + + int findSort(String id); + + void down(String id); } diff --git a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessActionServiceImpl.java b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessActionServiceImpl.java index e34fced3..c1b7432d 100644 --- a/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessActionServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/pro/service/impl/ZyProcessActionServiceImpl.java @@ -39,4 +39,19 @@ public class ZyProcessActionServiceImpl extends ServiceImpl selectByid(String id) { return zyProcessActionMapper.selectByid(id); } + + @Override + public void up(String id) { + zyProcessActionMapper.up(id); + } + + @Override + public int findSort(String id) { + return zyProcessActionMapper.findSort(id); + } + + @Override + public void down(String id) { + zyProcessActionMapper.down(id); + } } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/controller/ZyDevicetypeController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/controller/ZyDevicetypeController.java index 97066141..34961978 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/controller/ZyDevicetypeController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/devicetype/controller/ZyDevicetypeController.java @@ -119,6 +119,18 @@ public class ZyDevicetypeController extends JeecgController queryPageList1(ZyDevicetype zyDevicetype, + @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, + @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(zyDevicetype, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = zyDevicetypeService.page(page, queryWrapper); + return Result.OK(pageList); + } /** diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/controller/ZyOperationtoolController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/controller/ZyOperationtoolController.java index d76f7a37..ab62d81b 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/controller/ZyOperationtoolController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/controller/ZyOperationtoolController.java @@ -50,7 +50,6 @@ public class ZyOperationtoolController extends JeecgController queryWrapper = QueryGenerator.initQueryWrapper(zyOperationtool, req.getParameterMap()); - System.out.println("asdadad*********************************************"); String s=null,t=null; if(zyOperationtool.getOperationid()!=null){ s="%"+zyOperationtool.getOperationid()+"%"; @@ -89,13 +88,17 @@ public class ZyOperationtoolController extends JeecgController add(@RequestBody ZyOperationtool zyOperationtool) { + String[] split = zyOperationtool.getToolid().split(","); + for (String k : split) { + zyOperationtool.setToolid(k); QueryWrapper s=new QueryWrapper(); s.eq("operationid",zyOperationtool.getOperationid()); s.eq("toolid",zyOperationtool.getToolid()); int a=zyOperationtoolService.count(s); - if(a>=1) - return Result.error("已存在本信息"); + if(a==0) zyOperationtoolService.save(zyOperationtool); + zyOperationtool.setId(null); + } return Result.OK("添加成功!"); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/mapper/ZyOperationtoolMapper.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/mapper/ZyOperationtoolMapper.java index d388e6ee..dfc0b405 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/mapper/ZyOperationtoolMapper.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/operationtool/mapper/ZyOperationtoolMapper.java @@ -20,6 +20,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; public interface ZyOperationtoolMapper extends BaseMapper { @Select("") IPage page(Page page, @Param("p") String s, @Param("m") String t); - @Select("") + @Select("") IPage page1(Page page, @Param("p") String s, @Param("m") String t); }