修改产品管理部分问题

zhc4dev
赵玉瑞 2 years ago
parent 41c10baf3f
commit fdf877fd4b
  1. 51
      ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue
  2. 2
      ant-design-vue-jeecg/src/views/process/ZyProcessComponentList.vue
  3. 12
      ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentListDetail.vue
  4. 13
      ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularCompentModal.vue
  5. 9
      ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsComponentList.vue
  6. 121
      ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyProcessList.vue
  7. 13
      ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularListDetails.vue
  8. 4
      ant-design-vue-jeecg/src/views/zystylemodular/modules/ZyStyleModularModal.vue
  9. 4
      ant-design-vue-jeecg/src/views/zystylemodule/modules/ZyClothsModularList.vue
  10. 22
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsComponentController.java
  11. 5
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsModularController.java
  12. 20
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyProcessController.java
  13. 6
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/mapper/ZyProcessMapper.java
  14. 3
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/IZyProcessService.java
  15. 18
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/impl/ZyProcessServiceImpl.java

@ -102,7 +102,7 @@
</a-table> </a-table>
</div> </div>
<zy-cloths-modular-compent-modal ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-compent-modal> <zy-cloths-modular-compent-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-cloths-modular-compent-modal>
<ZyClothsModularCompentListDetails ref="ZyClothsModularCompentListDetails"></ZyClothsModularCompentListDetails> <ZyClothsModularCompentListDetails ref="ZyClothsModularCompentListDetails"></ZyClothsModularCompentListDetails>
</a-modal> </a-modal>
@ -116,6 +116,8 @@ import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import ZyClothsModularCompentModal from './modules/ZyClothsModularCompentModal' import ZyClothsModularCompentModal from './modules/ZyClothsModularCompentModal'
import ZyClothsComponentListDetail from "@views/process/modules/ZyClothsComponentListDetail"; import ZyClothsComponentListDetail from "@views/process/modules/ZyClothsComponentListDetail";
import ZyClothsModularCompentListDetails from "@views/process/modules/list/ZyClothsModularCompentListDetails"; import ZyClothsModularCompentListDetails from "@views/process/modules/list/ZyClothsModularCompentListDetails";
import {getAction} from "@api/manage";
import {filterObj} from "@/utils/util";
export default { export default {
@ -197,6 +199,9 @@ export default {
}, },
}, },
methods: { methods: {
valueChange(value) {
if (value) this.loadData()
},
viewDetails(id) { viewDetails(id) {
this.$refs.ZyClothsModularCompentListDetails.showModal(id); this.$refs.ZyClothsModularCompentListDetails.showModal(id);
}, },
@ -239,7 +244,51 @@ export default {
fieldList.push({type: 'string', value: 'modularType', text: '制衣模块类型', dictCode: ''}) fieldList.push({type: 'string', value: 'modularType', text: '制衣模块类型', dictCode: ''})
fieldList.push({type: 'string', value: 'componentId', text: '部件id', dictCode: ''}) fieldList.push({type: 'string', value: 'componentId', text: '部件id', dictCode: ''})
this.superFieldList = fieldList this.superFieldList = fieldList
},
loadData(arg) {
if(!this.url.list){
this.$message.error("请设置url.list属性!")
return
}
// 1
if (arg === 1) {
this.ipagination.current = 1;
}
var params = this.getQueryParams();//
this.loading = true;
getAction(this.url.list, params).then((res) => {
if (res.success) {
//update-begin---author:zhangyafei Date:20201118 for------------
this.dataSource = res.result.records||res.result;
if(res.result.total)
{
this.ipagination.total = res.result.total;
}else{
this.ipagination.total = 0;
}
//update-end---author:zhangyafei Date:20201118 for------------
} }
if(res.code===510){
this.$message.warning(res.message)
}
this.loading = false;
})
},
getQueryParams() {
//
let sqp = {}
if(this.superQueryParams){
sqp['superQueryParams']=encodeURI(this.superQueryParams)
sqp['superQueryMatchType'] = this.superQueryMatchType
}
var param = Object.assign(sqp, this.queryParam, this.isorter ,this.filters);
param.field = this.getQueryField();
param.pageNo = this.ipagination.current;
param.pageSize = this.ipagination.pageSize;
return filterObj(param);
},
} }
} }
</script> </script>

@ -8,7 +8,7 @@
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
> >
<p style="font-size: 25px;color:#333; padding-left: 40% ">{{biaoTi}} 部件工序管理</p> <p style="font-size: 25px;color:#333; padding-left: 40% ">{{biaoTi}} 模块工序管理</p>
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">

@ -50,12 +50,12 @@
key: 'processId', key: 'processId',
align:'center' align:'center'
}, },
{ // {
title: '是否瓶颈工序', // title: '',
dataIndex: 'bottleneck', // dataIndex: 'bottleneck',
key: 'bottleneck', // key: 'bottleneck',
align:'center' // align:'center'
}, // },
{ {
title: '创建时间', title: '创建时间',
key: 'createTime', key: 'createTime',

@ -17,11 +17,14 @@
<script> <script>
// import ZyClothsModularCompentForm from './ZyClothsModularCompentForm' // import ZyClothsModularCompentForm from './ZyClothsModularCompentForm'
import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import {mixinDevice} from '@/utils/mixin'
import ZyClothsComponentList from "@views/process/modules/list/ZyClothsComponentList"; import ZyClothsComponentList from "@views/process/modules/list/ZyClothsComponentList";
import {postAction} from "@api/manage"; import {postAction} from "@api/manage";
export default { export default {
name: 'ZyClothsModularCompentModal', name: 'ZyClothsModularCompentModal',
mixins: [JeecgListMixin, mixinDevice],
components: { components: {
ZyClothsComponentList, ZyClothsComponentList,
// ZyClothsModularCompentForm // ZyClothsModularCompentForm
@ -47,9 +50,9 @@
methods: { methods: {
add1 (id) { add1 (id) {
//this.model.componentId = this.$route.query.id; //this.model.componentId = this.$route.query.id;
// id // id
this.model.modularId = id; this.model.modularId = id;
console.log('this.modularId + modal33333'+id) console.log('this.modularId + modal33333 '+id)
this.visible=true this.visible=true
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs.realForm.add1(id); this.$refs.realForm.add1(id);
@ -72,20 +75,22 @@
// this.$refs.realForm.submitForm(); // this.$refs.realForm.submitForm();
postAction(this.url.add, this.model).then((res) => { postAction(this.url.add, this.model).then((res) => {
if (res.success) { if (res.success) {
console.log(111)
this.$message.success(res.message); this.$message.success(res.message);
//this.loadData() //this.loadData()
} else { } else {
console.log(222)
this.$message.warning(res.message); this.$message.warning(res.message);
} }
this.$emit('valueChange', 1) this.$emit('valueChange', 1)
this.close() this.close()
}) })
}, },
submitCallback(){ submitCallback(){
this.$emit('ok'); this.$emit('ok');
this.visible = false; this.visible = false;
}, },
handleCancel () { handleCancel () {
this.close() this.close()

@ -106,6 +106,7 @@ export default {
return { return {
model:{ model:{
fuId: '', fuId: '',
clothsId: '',
}, },
description: 'zy_cloths_component管理页面', description: 'zy_cloths_component管理页面',
// //
@ -192,7 +193,7 @@ export default {
} }
], ],
url: { url: {
list: "/base/zyClothsComponent/list", list: "/base/zyClothsComponent/listTwo",
delete: "/base/zyClothsComponent/delete", delete: "/base/zyClothsComponent/delete",
deleteBatch: "/base/zyClothsComponent/deleteBatch", deleteBatch: "/base/zyClothsComponent/deleteBatch",
exportXlsUrl: "/base/zyClothsComponent/exportXls", exportXlsUrl: "/base/zyClothsComponent/exportXls",
@ -227,10 +228,12 @@ export default {
this.$emit('onChangeRowKey', ids) this.$emit('onChangeRowKey', ids)
}, },
add1(id) { add1(id) {
this.queryParam.fuId = id;
//this.queryParam.clothsId = this.model.id;
this.url.list = '/base/zyClothsComponent/listTwo';
this.loadData();
//this.model.fuId = id; //this.model.fuId = id;
// this.loadData() // this.loadData()
// console.log("list 22222")
// console.log("listid modularName: "+id);
}, },
initDictConfig(){ initDictConfig(){
}, },

@ -76,7 +76,6 @@
</a-button> </a-button>
</template> </template>
</a-table> </a-table>
</div> </div>
</a-card> </a-card>
@ -97,6 +96,9 @@ export default {
data() { data() {
return { return {
description: 'zy_process管理页面', description: 'zy_process管理页面',
model:{
clothStyleId: '',
},
// //
columns: [ columns: [
{ {
@ -124,6 +126,11 @@ export default {
// align:"center", // align:"center",
// dataIndex: 'processDescribe' // dataIndex: 'processDescribe'
// }, // },
{
title: '服装类型',
align: "center",
dataIndex: 'styleId_dictText'
},
{ {
title: '工序等级', title: '工序等级',
align: "center", align: "center",
@ -138,7 +145,7 @@ export default {
], ],
url: { url: {
list: "/base/zyProcess/list", list: "/base/zyProcess/listScreen",
delete: "/base/zyProcess/delete", delete: "/base/zyProcess/delete",
deleteBatch: "/base/zyProcess/deleteBatch", deleteBatch: "/base/zyProcess/deleteBatch",
exportXlsUrl: "/base/zyProcess/exportXls", exportXlsUrl: "/base/zyProcess/exportXls",
@ -147,7 +154,7 @@ export default {
}, },
// //
loadRouteType: false, loadRouteType: false,
styleId: "", styleId: '',
dictOptions: {}, dictOptions: {},
superFieldList: [], superFieldList: [],
} }
@ -165,7 +172,13 @@ export default {
methods: { methods: {
initDictConfig() { initDictConfig() {
}, },
add() { add(id) {
//console.log("list id "+ id)
this.model.clothStyleId = id;
this.queryParam.clothStyleId = id;
//list
this.url.list = '/base/zyProcess/listScreen';
this.loadData();
}, },
onSelectChange1(selectedRowKeys, selectionRows) { onSelectChange1(selectedRowKeys, selectionRows) {
this.selectedRowKeys = selectedRowKeys; this.selectedRowKeys = selectedRowKeys;
@ -177,56 +190,56 @@ export default {
this.$emit('onChangeRowKey', ids) this.$emit('onChangeRowKey', ids)
}, },
// //
loadParameter() { // loadParameter() {
if (this.loadRouteType === false) { // if (this.loadRouteType === false) {
this.styleId = this.$route.query.styleId; // this.styleId = this.$route.query.styleId;
console.log(this.styleId) // console.log(this.styleId)
this.loadRouteType = true; // this.loadRouteType = true;
} // }
}, // },
loadData(arg) { // loadData(arg) {
if (!this.url.list) { // if (!this.url.list) {
this.$message.error("请设置url.list属性!") // this.$message.error("url.list!")
return // return
} // }
// 1 // // 1
if (arg === 1) { // if (arg === 1) {
this.ipagination.current = 1; // this.ipagination.current = 1;
} // }
this.loadParameter(); // this.loadParameter();
var params = this.getQueryParams();// // var params = this.getQueryParams();//
this.loading = true; // this.loading = true;
getAction(this.url.list, params).then((res) => { // getAction(this.url.list, params).then((res) => {
if (res.success) { // if (res.success) {
//update-begin---author:zhangyafei Date:20201118 for------------ // //update-begin---author:zhangyafei Date:20201118 for------------
this.dataSource = res.result.records || res.result; // this.dataSource = res.result.records || res.result;
if (res.result.total) { // if (res.result.total) {
this.ipagination.total = res.result.total; // this.ipagination.total = res.result.total;
} else { // } else {
this.ipagination.total = 0; // this.ipagination.total = 0;
} // }
//update-end---author:zhangyafei Date:20201118 for------------ // //update-end---author:zhangyafei Date:20201118 for------------
} else { // } else {
this.$message.warning(res.message) // this.$message.warning(res.message)
} // }
}).finally(() => { // }).finally(() => {
this.loading = false // this.loading = false
}) // })
}, // },
getQueryParams() { // getQueryParams() {
// // //
let sqp = {} // let sqp = {}
if (this.superQueryParams) { // if (this.superQueryParams) {
sqp['superQueryParams'] = encodeURI(this.superQueryParams) // sqp['superQueryParams'] = encodeURI(this.superQueryParams)
sqp['superQueryMatchType'] = this.superQueryMatchType // sqp['superQueryMatchType'] = this.superQueryMatchType
} // }
var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); // var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters);
param.field = this.getQueryField(); // param.field = this.getQueryField();
param.pageNo = this.ipagination.current; // param.pageNo = this.ipagination.current;
param.pageSize = this.ipagination.pageSize; // param.pageSize = this.ipagination.pageSize;
param.styleId = this.styleId; // param.styleId = this.styleId;
return filterObj(param); // return filterObj(param);
}, // },
getSuperFieldList() { getSuperFieldList() {
let fieldList = []; let fieldList = [];
fieldList.push({type: 'string', value: 'processCode', text: '工序代码', dictCode: ''}) fieldList.push({type: 'string', value: 'processCode', text: '工序代码', dictCode: ''})

@ -1,19 +1,20 @@
<template> <template>
<div> <div>
<a-modal <a-modal
title="服装款式详情" title="服装款式之工序详情"
:visible="visible" :visible="visible"
:confirm-loading="confirmLoading" :confirm-loading="confirmLoading"
:width='1000' :width='1000'
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel"> @cancel="handleCancel">
<a-spin :spinning="confirmLoading"> <a-spin :spinning="confirmLoading">
<h3 style="width: 98%;;margin:0px auto">款式详情</h3> <!-- <h3 style="width: 98%;;margin:0px auto">款式详情</h3>-->
<a-table style="width: 98%;font-size:14px;margin:10px auto" :columns="columns1" :data-source="data1" bordered <!-- <a-table style="width: 98%;font-size:14px;margin:10px auto" :columns="columns1" :data-source="data1" bordered-->
rowKey="nums" :pagination="false"> <!-- rowKey="nums" :pagination="false">-->
</a-table> <!-- </a-table>-->
<h3 style="width: 98%;;margin:20px auto 0">管理工序</h3> <!-- <h3 style="width: 98%;;margin:20px auto 0">管理工序</h3>-->
<h3 style="width: 98%;;margin:20px auto 0"></h3>
<a-table style="width: 98%;font-size:14px;margin:10px auto 0" :columns="columns5" :data-source="data5" <a-table style="width: 98%;font-size:14px;margin:10px auto 0" :columns="columns5" :data-source="data5"
rowKey="id" bordered :pagination="false" > rowKey="id" bordered :pagination="false" >

@ -39,10 +39,12 @@
}, },
methods: { methods: {
add () { add () {
//url
this.model.styleId=this.$route.query.id; this.model.styleId=this.$route.query.id;
//console.log('this.model.styleId '+this.model.styleId)
this.visible=true this.visible=true
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs.realForm.add(); this.$refs.realForm.add(this.model.styleId);
}) })
}, },
edit (record) { edit (record) {

@ -155,8 +155,8 @@ export default {
add(id, typeId) { add(id, typeId) {
//zy_cloths_style id typeId //zy_cloths_style id typeId
//typeIdzy_cloth_typeid //typeIdzy_cloth_typeid
console.log("新增中拿到的id: "+id) //console.log("id: "+id)
console.log("新增中拿到的typeId "+typeId) //console.log("typeId "+typeId)
this.model.clothsTypeId = typeId; this.model.clothsTypeId = typeId;
this.queryParam.clothsTypeId = typeId; this.queryParam.clothsTypeId = typeId;
// //

@ -12,6 +12,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator; import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.modules.demo.base.entity.ZyClothsComponent; import org.jeecg.modules.demo.base.entity.ZyClothsComponent;
import org.jeecg.modules.demo.base.entity.ZyClothsModular;
import org.jeecg.modules.demo.base.entity.vo.ZyClothsComponentDetail; import org.jeecg.modules.demo.base.entity.vo.ZyClothsComponentDetail;
import org.jeecg.modules.demo.base.entity.vo.ZyClothsModularDetail; import org.jeecg.modules.demo.base.entity.vo.ZyClothsModularDetail;
import org.jeecg.modules.demo.base.entity.vo.ZyProcessVo; import org.jeecg.modules.demo.base.entity.vo.ZyProcessVo;
@ -65,6 +66,27 @@ public class ZyClothsComponentController extends JeecgController<ZyClothsCompone
return Result.OK(pageList); return Result.OK(pageList);
} }
/**
* 模块部件中的部件列表 分页查询
*/
@AutoLog(value = "zy_cloths_component-分页列表查询")
@ApiOperation(value = "zy_cloths_component-分页列表查询", notes = "zy_cloths_component-分页列表查询")
@GetMapping(value = "/listTwo")
public Result<?> queryPageListTwo(ZyClothsComponent zyClothsComponent,
@RequestParam(name = "fuId", required = true) String fuId,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
//fuId为制衣模块 zy cloths Modular中的id
ZyClothsModular clothsModular = zyClothsModularService.getById(fuId);
QueryWrapper<ZyClothsComponent> queryWrapper = QueryGenerator.initQueryWrapper(zyClothsComponent, req.getParameterMap());
queryWrapper.eq(StringUtils.hasText(clothsModular.getClothsTypeId()), "cloths_type_id", clothsModular.getClothsTypeId());
queryWrapper.eq(StringUtils.hasText(clothsModular.getModularType()), "modular_type",clothsModular.getModularType());
Page<ZyClothsComponent> page = new Page<>(pageNo, pageSize);
IPage<ZyClothsComponent> pageList = zyClothsComponentService.page(page, queryWrapper);
return Result.OK(pageList);
}
// @AutoLog(value = "zy_cloths_component-查询所有") // @AutoLog(value = "zy_cloths_component-查询所有")
// @ApiOperation(value="zy_cloths_component-查询所有", notes="zy_cloths_component-查询所有") // @ApiOperation(value="zy_cloths_component-查询所有", notes="zy_cloths_component-查询所有")
// @GetMapping(value = "/findAll") // @GetMapping(value = "/findAll")

@ -65,8 +65,9 @@ public class ZyClothsModularController extends JeecgController<ZyClothsModular,
return Result.OK(pageList); return Result.OK(pageList);
} }
@AutoLog(value = "zy_cloths_modular-分页列表查询") /**
@ApiOperation(value = "zy_cloths_modular-分页列表查询", notes = "zy_cloths_modular-分页列表查询") * 服装款式之款式模块中的模块列表查询接口
*/
@GetMapping(value = "/listAnother") @GetMapping(value = "/listAnother")
public Result<?> queryList(ZyClothsModular zyClothsModular, public Result<?> queryList(ZyClothsModular zyClothsModular,
@RequestParam(name = "clothsTypeId", required = true) String clothsTypeId, @RequestParam(name = "clothsTypeId", required = true) String clothsTypeId,

@ -28,6 +28,7 @@ import org.jeecg.modules.demo.tools.entity.ZyToolTypes;
import org.jeecg.modules.demo.tools.service.IZyToolTypesService; import org.jeecg.modules.demo.tools.service.IZyToolTypesService;
import org.jeecg.common.system.base.controller.JeecgController; import org.jeecg.common.system.base.controller.JeecgController;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
@ -81,6 +82,25 @@ public class ZyProcessController extends JeecgController<ZyProcess, IZyProcessSe
return Result.OK(pageList); return Result.OK(pageList);
} }
/**
* 服装款式之款式工序中的工序接口 分页列表查询
* 根据服装类型筛选list中的数据
*/
@GetMapping(value = "/listScreen")
public Result<?> queryPageListScreen(ZyProcess zyProcess,
@RequestParam(name = "clothStyleId", required = true) String clothStyleId,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
//根据clothStyleId 查到服装类型的编号 在根据编号进行筛选
String nums = zyProcessService.screenList(clothStyleId);
QueryWrapper<ZyProcess> queryWrapper = QueryGenerator.initQueryWrapper(zyProcess, req.getParameterMap());
queryWrapper.eq(StringUtils.hasText(nums), "style_id", nums);
Page<ZyProcess> page = new Page<ZyProcess>(pageNo, pageSize);
IPage<ZyProcess> pageList = zyProcessService.page(page, queryWrapper);
return Result.OK(pageList);
}
/** /**
* 添加 * 添加
* *

@ -28,4 +28,10 @@ public interface ZyProcessMapper extends BaseMapper<ZyProcess> {
@Select("select process_code from zy_process where style_id=#{id} order by process_code DESC limit 0,1") @Select("select process_code from zy_process where style_id=#{id} order by process_code DESC limit 0,1")
String sort(String id); String sort(String id);
@Select("select type_id from zy_cloths_style where id=#{clothStyleId}")
String getTypeId(String clothStyleId);
@Select("select nums from zy_cloths_type where id=#{typeId}")
String getNums(String typeId);
} }

@ -21,4 +21,7 @@ public interface IZyProcessService extends IService<ZyProcess> {
public List<ZyProcess> selectByComponentId(String component_id); public List<ZyProcess> selectByComponentId(String component_id);
String sort(String id); String sort(String id);
/**根据服装类型筛选list中的数据*/
String screenList(String clothStyleId);
} }

@ -12,6 +12,7 @@ import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@ -26,7 +27,9 @@ import java.util.List;
public class ZyProcessServiceImpl extends ServiceImpl<ZyProcessMapper, ZyProcess> implements IZyProcessService { public class ZyProcessServiceImpl extends ServiceImpl<ZyProcessMapper, ZyProcess> implements IZyProcessService {
@Autowired // @Autowired
// private ZyProcessMapper zyProcessMapper;
@Resource
private ZyProcessMapper zyProcessMapper; private ZyProcessMapper zyProcessMapper;
@Override @Override
@ -43,6 +46,19 @@ public class ZyProcessServiceImpl extends ServiceImpl<ZyProcessMapper, ZyProcess
return zyProcessMapper.sort(id); return zyProcessMapper.sort(id);
} }
/**
* 根据服装类型筛选list中的数据
*
* @param clothStyleId
*/
@Override
public String screenList(String clothStyleId) {
//先拿到zy cloths style 中的typeId
//在拿到zy cloths type 中的nums
String typeId = baseMapper.getTypeId(clothStyleId);
return baseMapper.getNums(typeId);
}
@Override @Override
public ZyProcess selectZyprocess(String id) { public ZyProcess selectZyprocess(String id) {
List<String> list=baseMapper.selectByIds(id); List<String> list=baseMapper.selectByIds(id);

Loading…
Cancel
Save