Merge remote-tracking branch 'origin/master'

zhc4dev
暖暖 2 years ago
commit d9c865ae66
  1. 6
      ant-design-vue-jeecg/src/config/router.config.js
  2. 2
      ant-design-vue-jeecg/src/permission.js
  3. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/mapper/ProductAccessoriesMapper.java
  4. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/IProductAccessoriesService.java
  5. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdaccessories/service/impl/ProductAccessoriesServiceImpl.java
  6. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/mapper/ProductFabricMapper.java
  7. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/IProductFabricService.java
  8. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdfabric/service/impl/ProductFabricServiceImpl.java
  9. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/IProductMachineService.java
  10. 9
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdmachine/service/impl/ProductMachineServiceImpl.java
  11. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/mapper/ProductOperationtoolMapper.java
  12. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/IProductOperationtoolService.java
  13. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/pdoperationtool/service/impl/ProductOperationtoolServiceImpl.java
  14. 30
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/product/zyproductprocess/controller/ZyProductProcessController.java

@ -587,6 +587,12 @@ export const constantRouterMap = [
name: 'register',
component: () => import(/* webpackChunkName: "user" */ '@/views/user/register/Register')
},
{
path: 'sgin',
name: 'sgin',
component: () => import(/* webpackChunkName: "user" */ '@/views/personalCenter/SignInView')
},
{
path: 'register-result',
name: 'registerResult',

@ -9,7 +9,7 @@ import { generateIndexRouter } from "@/utils/util"
NProgress.configure({ showSpinner: false }) // NProgress Configuration
const whiteList = ['/user/login','/userequip/loginequip',
const whiteList = ['/user/login','/userequip/loginequip','/user/sgin',
'/userschedule/loginschedule','/usersimulation/loginsimulation','/userdroduction/logindroduction',
'/userfitting/loginfitting','/userglobal/loginglobal','/userworkmanship/loginworkmanship','/userworkorder/loginworkorder',
'/usermall/loginmall','/userbigdata/loginbigdata','/loginbx/loginbx','/userattendance/loginattendance','/userdata/logindata',

@ -4,6 +4,7 @@ package org.jeecg.modules.product.pdaccessories.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -20,4 +21,7 @@ public interface ProductAccessoriesMapper extends BaseMapper<ProductAccessories>
@Select("select id from zy_accessories where contents like #{s}")
List<String> find(String s);
@Delete("delete from product_accessories where product_id=#{pd} and accessories_id=#{access}")
void deleteAccessories(@Param("pd") String productId, @Param("access") String listAccessory);
}

@ -15,4 +15,6 @@ import java.util.List;
public interface IProductAccessoriesService extends IService<ProductAccessories> {
List<String> findAll(String s);
void deleteAccessories(String productId, String listAccessory);
}

@ -26,4 +26,9 @@ public class ProductAccessoriesServiceImpl extends ServiceImpl<ProductAccessorie
public List<String> findAll(String s) {
return productAccessoriesMapper.find(s);
}
@Override
public void deleteAccessories(String productId, String listAccessory) {
productAccessoriesMapper.deleteAccessories(productId,listAccessory);
}
}

@ -4,6 +4,7 @@ package org.jeecg.modules.product.pdfabric.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -20,4 +21,7 @@ public interface ProductFabricMapper extends BaseMapper<ProductFabric> {
@Select("select id from zy_fabric where name like #{s}")
List<String> find(String s);
@Delete("delete from product_fabric where product_id=#{productId} and fabric_id=#{s1}")
void deleteFabric(@Param("productId") String productId, @Param("s1") String s1);
}

@ -14,4 +14,6 @@ import java.util.List;
public interface IProductFabricService extends IService<ProductFabric> {
List<String> findAll(String s);
void deleteFabric(String productId, String s1);
}

@ -26,4 +26,9 @@ public class ProductFabricServiceImpl extends ServiceImpl<ProductFabricMapper, P
public List<String> findAll(String s) {
return productFabricMapper.find(s);
}
@Override
public void deleteFabric(String productId, String s1) {
productFabricMapper.deleteFabric(productId,s1);
}
}

@ -19,4 +19,6 @@ public interface IProductMachineService extends IService<ProductMachine> {
void up(String id);
void down(String id);
void deleteMachine(String productId, String s1);
}

@ -1,6 +1,7 @@
package org.jeecg.modules.product.pdmachine.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.jeecg.modules.product.pdmachine.entity.ProductMachine;
import org.jeecg.modules.product.pdmachine.mapper.ProductMachineMapper;
import org.jeecg.modules.product.pdmachine.service.IProductMachineService;
@ -36,4 +37,12 @@ public class ProductMachineServiceImpl extends ServiceImpl<ProductMachineMapper,
public void down(String id) {
productMachineMapper.down(id);
}
@Override
public void deleteMachine(String productId, String s1) {
QueryWrapper queryWrapper=new QueryWrapper();
queryWrapper.eq("product_id",productId);
queryWrapper.eq("machine_id",s1);
productMachineMapper.delete(queryWrapper);
}
}

@ -3,6 +3,7 @@ package org.jeecg.modules.product.pdoperationtool.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -25,4 +26,7 @@ public interface ProductOperationtoolMapper extends BaseMapper<ProductOperationt
void up(String id);
@Update("update product_operationtool set sort=sort-1 where id=#{id}")
void down(String id);
@Delete("delete from product_operationtool where product_id=#{pd} and operationtool_id=#{s1}")
void deteleTool(@Param("pd") String productId, @Param("s1") String s1);
}

@ -19,4 +19,6 @@ public interface IProductOperationtoolService extends IService<ProductOperationt
void up(String id);
void down(String id);
void deteleTool(String productId, String s1);
}

@ -34,4 +34,9 @@ public class ProductOperationtoolServiceImpl extends ServiceImpl<ProductOperatio
public void down(String s) {
productOperationtoolMapper.down(s);
}
@Override
public void deteleTool(String productId, String s1) {
productOperationtoolMapper.deteleTool(productId,s1);
}
}

@ -185,6 +185,36 @@ public class ZyProductProcessController extends JeecgController<ZyProductProcess
@ApiOperation(value="产品工序-通过id删除", notes="产品工序-通过id删除")
@DeleteMapping(value = "/delete")
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
ZyProductProcess Zp=zyProductProcessService.getById(id);
String processId=Zp.getProcessId();
/*
* 首先根据id查到对应的工序id然后根据对应的工序id查到他所包含的对应所有属性属性集合根据商品id和属性集合进行删除
*
* */
//面料
List<String> listfabric =zyProductProcessService.findAllFabric(processId);
if(listfabric!=null&&listfabric.size()>0)
for (String s1 : listfabric) {
productFabricService.deleteFabric(Zp.getProductId(),s1);
}
//辅料
List<String> listAccessories =zyProductProcessService.findAllAccessories(processId);
if(listAccessories!=null&&listAccessories.size()>0)
for (String listAccessory : listAccessories) {
productAccessoriesService.deleteAccessories(Zp.getProductId(),listAccessory);
}
//工具
List<String> listOperationtool =zyProductProcessService.findAllOperationtool(processId);
if(listOperationtool!=null&&listOperationtool.size()>0)
for (String s1 : listOperationtool) {
productOperationtoolService.deteleTool(Zp.getProductId(),s1);
}
//设备
List<String> listMachine =zyProductProcessService.findAllMachine(processId);
if(listMachine!=null&&listMachine.size()>0)
for (String s1 : listMachine) {
productMachineService.deleteMachine(Zp.getProductId(),s1);
}
zyProductProcessService.removeById(id);
return Result.OK("删除成功!");
}

Loading…
Cancel
Save