Merge remote-tracking branch 'origin/develop_1' into develop_master
This commit is contained in:
+2
@@ -84,6 +84,8 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if ("admin".equals(getUserName()))sarLawsDetailedList.setUpdatePeople("管理员");
|
||||||
|
else {sarLawsDetailedList.setUpdatePeople(getUserName());}
|
||||||
sarLawsDetailedListDao.insert(sarLawsDetailedList);
|
sarLawsDetailedListDao.insert(sarLawsDetailedList);
|
||||||
addDetailedDto.setInforlist(addDetailedDto.getInforlist().substring(1,addDetailedDto.getInforlist().length()-1));
|
addDetailedDto.setInforlist(addDetailedDto.getInforlist().substring(1,addDetailedDto.getInforlist().length()-1));
|
||||||
String[] split = addDetailedDto.getInforlist().split(",");
|
String[] split = addDetailedDto.getInforlist().split(",");
|
||||||
|
|||||||
+33
@@ -1,12 +1,24 @@
|
|||||||
package com.adc.da.slrs.sarStandItems.controller;
|
package com.adc.da.slrs.sarStandItems.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.adc.da.http.ResponseMessage;
|
||||||
|
import com.adc.da.http.Result;
|
||||||
|
|
||||||
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto;
|
||||||
|
import com.adc.da.slrs.sarStandItems.service.impl.SarStandItemsServiceImpl;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
import com.adc.da.base.web.BaseController;
|
import com.adc.da.base.web.BaseController;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 前端控制器
|
* 前端控制器
|
||||||
@@ -20,4 +32,25 @@ import com.adc.da.base.web.BaseController;
|
|||||||
@RequestMapping("/SarStandItems/sar-stand-items")
|
@RequestMapping("/SarStandItems/sar-stand-items")
|
||||||
public class SarStandItemsController extends BaseController<SarStandItems> {
|
public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private SarStandItemsServiceImpl ServiceImpl;
|
||||||
|
|
||||||
|
@ApiOperation(value = "分解单查询")
|
||||||
|
@GetMapping("/findAllItems")
|
||||||
|
public ResponseMessage findAllItems(@RequestParam(defaultValue = "1")int Page, @RequestParam(defaultValue = "10") int Size,String type,String ids){
|
||||||
|
if (!StringUtils.isEmpty(ids) && ids.contains(",")){
|
||||||
|
String[] Sids=ids.split(",");
|
||||||
|
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(Page,Size,type,Sids);
|
||||||
|
return Result.success("200",ItemDto);
|
||||||
|
}else if (!StringUtils.isEmpty(ids)){
|
||||||
|
String[] Sids=new String[1];
|
||||||
|
Sids[0]=ids;
|
||||||
|
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(Page,Size,type,Sids);
|
||||||
|
return Result.success("200",ItemDto);
|
||||||
|
}else {
|
||||||
|
List<SarStandItemsDto> ItemDto = ServiceImpl.findAllItems(Page,Size,type,null);
|
||||||
|
return Result.success("200",ItemDto);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package com.adc.da.slrs.sarStandItems.dao;
|
package com.adc.da.slrs.sarStandItems.dao;
|
||||||
|
|
||||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
||||||
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto;
|
||||||
import com.adc.da.slrs.sarStandItems.page.SarStandItemsEOPage;
|
import com.adc.da.slrs.sarStandItems.page.SarStandItemsEOPage;
|
||||||
import com.adc.da.sys.common.SelectionResult;
|
import com.adc.da.sys.common.SelectionResult;
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
@@ -18,6 +20,7 @@ import java.util.Set;
|
|||||||
* @author super_liu
|
* @author super_liu
|
||||||
* @since 2021-06-01
|
* @since 2021-06-01
|
||||||
*/
|
*/
|
||||||
|
@Mapper
|
||||||
public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
||||||
|
|
||||||
List<SarStandItems> querySarStandItemsList(SarStandItemsEOPage page);
|
List<SarStandItems> querySarStandItemsList(SarStandItemsEOPage page);
|
||||||
@@ -50,4 +53,5 @@ public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
|||||||
|
|
||||||
List<SelectionResult> selectAllItemsSvpps(SarStandItems sarStandItemsEO);
|
List<SelectionResult> selectAllItemsSvpps(SarStandItems sarStandItemsEO);
|
||||||
|
|
||||||
|
List<SarStandItemsDto> selectAllItemsByIds(@Param("page") int Page, @Param("size") int Size,@Param("type") String type,@Param("ids") String[] ids);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package com.adc.da.slrs.sarStandItems.entity;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* //TODO 添加类、接口描述
|
||||||
|
*
|
||||||
|
* @author ZhangZhiYuan
|
||||||
|
* @date 2021-07-08
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Data
|
||||||
|
public class SarStandItemsDto {
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "标准ID")
|
||||||
|
private String standId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "条目编号")
|
||||||
|
private String itemsNum;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "内容")
|
||||||
|
private String itemsName;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "责任部门")
|
||||||
|
private String responsibleUnit;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "SVPPS")
|
||||||
|
private String svpps;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "适用车型")
|
||||||
|
private String applyArctic;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "要求类型")
|
||||||
|
private String claimType;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "覆盖关系")
|
||||||
|
private String busStandCover;
|
||||||
|
|
||||||
|
}
|
||||||
+5
@@ -2,6 +2,7 @@ package com.adc.da.slrs.sarStandItems.service.impl;
|
|||||||
|
|
||||||
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItems;
|
||||||
import com.adc.da.slrs.sarStandItems.dao.SarStandItemsDao;
|
import com.adc.da.slrs.sarStandItems.dao.SarStandItemsDao;
|
||||||
|
import com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto;
|
||||||
import com.adc.da.slrs.sarStandItems.page.SarStandItemsEOPage;
|
import com.adc.da.slrs.sarStandItems.page.SarStandItemsEOPage;
|
||||||
import com.adc.da.slrs.sarStandItems.service.ISarStandItemsService;
|
import com.adc.da.slrs.sarStandItems.service.ISarStandItemsService;
|
||||||
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
||||||
@@ -56,4 +57,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
}
|
}
|
||||||
return actitemsEOList;
|
return actitemsEOList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<SarStandItemsDto> findAllItems(int Page,int Size,String type,String[] ids){
|
||||||
|
return dao.selectAllItemsByIds((Page-1)*Size,Size*Page,type,ids);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -641,4 +641,21 @@
|
|||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectAllItemsByIds" resultType="com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto">
|
||||||
|
select ID,STAND_ID,ITEMS_NUM,ITEMS_NAME,RESPONSIBLE_UNIT,SVPPS,APPLY_ARCTIC,CLAIM_TYPE,BUS_STAND_COVER
|
||||||
|
from SAR_STAND_ITEMS
|
||||||
|
where FILE_TYPE=#{type}
|
||||||
|
|
||||||
|
<if test="ids != null">
|
||||||
|
and STAND_ID in
|
||||||
|
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
|
||||||
|
LIMIT #{page} , #{size};
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user