| | |
| | | import com.fzzy.api.view.repository.ApiInfoDataRep; |
| | | import com.fzzy.otherview.whhpjl.WhjlConstant; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1211; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlApi1211; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlQDItem; |
| | | import com.fzzy.otherview.whhpjl.dto.WhjlZCMX; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.data.domain.PageRequest; |
| | |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public List<WhjlQDItem> listItem(String id) { |
| | | return null; |
| | | public List<WhjlZCMX> listItem(String code) { |
| | | return JSON.parseArray(code, WhjlZCMX.class); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @DataResolver |
| | | public void saveData(WhjlApi1211 data) { |
| | | ApiInfoData infoData = new ApiInfoData(); |
| | | data.setZcmxList(JSON.toJSONString(data.getZcmx())); |
| | | ApiInfoData infoData; |
| | | List<ApiInfoData> apiInfoList = apiInfoDataRep.getDataByInteAndData(WhjlConstant.API_CODE_1211, data.getBizId(), data.getKqdm()); |
| | | if (apiInfoList.size() != 0) { |
| | | infoData = apiInfoList.get(0); |
| | | infoData.setData(JSON.toJSONString(data)); |
| | | } else { |
| | | infoData = new ApiInfoData(); |
| | | infoData.setId(data.getBizId()); |
| | | infoData.setKqdm(data.getKqdm()); |
| | | infoData.setInteType(WhjlConstant.API_CATEGORY_12); |
| | | infoData.setInteId(WhjlConstant.API_CODE_1211); |
| | | infoData.setUpdateTime(new Date()); |
| | | infoData.setDataId(data.getBizId()); |
| | | infoData.setData(JSON.toJSONString(data)); |
| | | infoData.setCzbz(data.getCzbz()); |
| | | infoData.setCzbz(Constant.CZBZ_I); |
| | | infoData.setRemarks("备注信息"); |
| | | |
| | | } |
| | | apiInfoDataRep.save(infoData); |
| | | } |
| | | |
| | |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 删除合同商品清单 |
| | | * whjlApi1211PR#delItem |
| | | * |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public String delItem(WhjlQDItem data) { |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 上传 |