#
luxiaotao1123
2021-04-13 d8f5476af7490d3faf40a7da332155cf06aec5e1
src/main/java/zy/cloud/wms/manager/controller/DocTypeController.java
@@ -16,10 +16,7 @@
import zy.cloud.wms.manager.entity.DocType;
import zy.cloud.wms.manager.service.DocTypeService;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
@RestController
public class DocTypeController extends BaseController {
@@ -63,6 +60,11 @@
    @RequestMapping(value = "/docType/add/auth")
    @ManagerAuth
    public R add(DocType docType) {
        docType.setCreateBy(getUserId());
        docType.setCreateTime(new Date());
        docType.setStatus(1);
        docType.setUpdateBy(getUserId());
        docType.setUpdateTime(new Date());
        docTypeService.insert(docType);
        return R.ok();
    }
@@ -73,6 +75,8 @@
        if (Cools.isEmpty(docType) || null==docType.getDocId()){
            return R.error();
        }
        docType.setUpdateBy(getUserId());
        docType.setUpdateTime(new Date());
        docTypeService.updateById(docType);
        return R.ok();
    }
@@ -90,6 +94,17 @@
        return R.ok();
    }
    @RequestMapping(value = "/docType/delete/one/auth")
    @ManagerAuth
    public R deleteOne(@RequestParam String param){
        DocType docType = JSONArray.parseObject(param, DocType.class);
        if (Cools.isEmpty(docType)){
            return R.error();
        }
        docTypeService.delete(new EntityWrapper<>(docType));
        return R.ok();
    }
    @RequestMapping(value = "/docType/export/auth")
    @ManagerAuth
    public R export(@RequestBody JSONObject param){