| | |
| | | import com.core.common.DateUtils; |
| | | import com.core.common.R; |
| | | import com.core.exception.CoolException; |
| | | import lombok.val; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import zy.cloud.wms.common.web.BaseController; |
| | |
| | | EntityWrapper<Item> wrapper = new EntityWrapper<>(); |
| | | HashSet<String> excludeField = new HashSet<>(); |
| | | |
| | | // allLike(Item.class,excludeField,wrapper, (String) param.get("id")); |
| | | allLike(Item.class,excludeField,wrapper, (String) param.get("id")); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | hostEq(wrapper); |
| | |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/item/list/chaoPirce") |
| | | @ManagerAuth |
| | | public R list1(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | val id = param.get("id"); |
| | | String uuid=null; |
| | | if(id!=null){ |
| | | uuid = id.toString(); |
| | | } |
| | | Page<Item> projectPlanPage = itemService.chaoPirce(toPage(curr,limit,param,Item.class),uuid); |
| | | return R.ok(projectPlanPage); |
| | | } |
| | | |
| | | @RequestMapping(value = "/item/list/chaoTime") |
| | | @ManagerAuth |
| | | public R list2(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam Map<String, Object> param){ |
| | | val id = param.get("id"); |
| | | String uuid=null; |
| | | if(id!=null){ |
| | | uuid = id.toString(); |
| | | } |
| | | |
| | | Page<Item> projectPlanPage = itemService.chaoTime(toPage(curr,limit,param,Item.class),uuid); |
| | | return R.ok(projectPlanPage); |
| | | } |
| | | |
| | | @RequestMapping(value = "/item/add/auth") |
| | | @ManagerAuth |
| | | public R add(Item item) { |