Commit 11cb7b3b authored by dahai's avatar dahai

新建身份证详单API、交接单API

parent 71a695ae
package com.yxproject.start.api;
import com.yxproject.start.entity.CardDetailedListEntity;
import com.yxproject.start.service.CardDetailedListService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
/**
* @auther zhangyusheng
* 2019/3/1 21:24
*/
@RestController
@RequestMapping("cardDetailedList")
public class CardDetailedListApi {
@Autowired
private CardDetailedListService cardDetailedListService;
/**
* 按条件查询身份证详单
* @param jsonStr
* @return
*/
@RequestMapping("findCardDetailedList")
public List<CardDetailedListEntity> findCardDetailedList(String jsonStr){
JSONObject jsonObject = JSONObject.fromObject(jsonStr);
String applicantName = jsonObject.getString("applicantName");
String orderNumber = jsonObject.getString("orderNumber");
String state = jsonObject.getString("state");
String latticeMouthInformation = jsonObject.getString("latticeMouthInformation");
List<String> getToCounty = new ArrayList<>();
getToCounty.add(jsonObject.getString("getToCounty"));
String uploadDate = jsonObject.getString("uploadDate");
String firstIndex = jsonObject.getString("firstIndex");
String pageSize = jsonObject.getString("pageSize");
List<CardDetailedListEntity> list = new ArrayList<>();
//TODO
// List<CardDetailedListEntity> list = cardDetailedListService.findCardDetailedList(applicantName,orderNumber,state,latticeMouthInformation,getToCounty,uploadDate,firstIndex,pageSize);
return list;
}
}
package com.yxproject.start.api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @auther zhangyusheng
* 2019/3/1 21:39
*/
@RestController
@RequestMapping("receiptList")
public class ReceiptListApi {
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @auther zhangyusheng
* 2019/3/1 21:27
*/
@Mapper
public interface CardDetailedListMapper {
}
package com.yxproject.start.mapper;
import org.apache.ibatis.annotations.Mapper;
/**
* @auther zhangyusheng
* 2019/3/1 21:41
*/
@Mapper
public interface ReceiptListMapper {
}
package com.yxproject.start.service;
/**
* @auther zhangyusheng
* 2019/3/1 21:28
*/
public interface CardDetailedListService {
}
package com.yxproject.start.service;
/**
* @auther zhangyusheng
* 2019/3/1 21:41
*/
public interface ReceiptListService {
}
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.CardDetailedListMapper;
import com.yxproject.start.service.CardDetailedListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @auther zhangyusheng
* 2019/3/1 21:28
*/
@Service
public class CardDetailedListServiceImpl implements CardDetailedListService {
@Autowired
private CardDetailedListMapper cardDetailedListMapper;
}
package com.yxproject.start.service.impl;
import com.yxproject.start.mapper.ReceiptListMapper;
import com.yxproject.start.service.ReceiptListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @auther zhangyusheng
* 2019/3/1 21:42
*/
@Service
public class ReceiptListServiceImpl implements ReceiptListService {
@Autowired
private ReceiptListMapper receiptListMapper;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment