资料维护接口规范
This commit is contained in:
+50
-18
@@ -31,6 +31,7 @@ import com.jero.meeting.service.IPayMeetingSituationService;
|
|||||||
import com.jero.modules.message.handle.impl.EmailSendMsgHandle;
|
import com.jero.modules.message.handle.impl.EmailSendMsgHandle;
|
||||||
import com.jero.modules.oss.service.IOSSFileService;
|
import com.jero.modules.oss.service.IOSSFileService;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
|
import io.swagger.annotations.ApiImplicitParams;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.shiro.SecurityUtils;
|
import org.apache.shiro.SecurityUtils;
|
||||||
@@ -66,6 +67,7 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IPayMeetingSituationService payMeetingSituationService;
|
private IPayMeetingSituationService payMeetingSituationService;
|
||||||
|
|
||||||
//拼接目录结构
|
//拼接目录结构
|
||||||
StringBuffer stringBuffer;
|
StringBuffer stringBuffer;
|
||||||
|
|
||||||
@@ -80,7 +82,7 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
@AutoLog(value = "资料维护(资料列表)-根据文件夹id分页列表查询")
|
@AutoLog(value = "资料维护(资料列表)-根据文件夹id分页列表查询")
|
||||||
@ApiOperation(value="资料维护(资料列表)-根据文件夹id分页列表查询", notes="资料维护(资料列表)-根据文件夹id分页列表查询")
|
@ApiOperation(value="资料维护(资料列表)-根据文件夹id分页列表查询", notes="资料维护(资料列表)-根据文件夹id分页列表查询")
|
||||||
@GetMapping(value = "/list")
|
@GetMapping(value = "/list")
|
||||||
@ApiImplicitParam(name = "id", value = "目录id", dataType = "String", required = true)
|
@ApiImplicitParam(name = "id", value = "目录id,查询该目录下文件", dataType = "String", required = true)
|
||||||
public Result<?> queryPageList(
|
public Result<?> queryPageList(
|
||||||
@RequestParam(name="id") String id,
|
@RequestParam(name="id") String id,
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
@@ -105,7 +107,7 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
@AutoLog(value = "资料维护(会议列表)-根据文件夹id分页列表查询")
|
@AutoLog(value = "资料维护(会议列表)-根据文件夹id分页列表查询")
|
||||||
@ApiOperation(value="资料维护(会议列表)-根据文件夹id分页列表查询", notes="资料维护(会议列表)-根据文件夹id分页列表查询")
|
@ApiOperation(value="资料维护(会议列表)-根据文件夹id分页列表查询", notes="资料维护(会议列表)-根据文件夹id分页列表查询")
|
||||||
@GetMapping(value = "/listMeeting")
|
@GetMapping(value = "/listMeeting")
|
||||||
@ApiImplicitParam(name = "id", value = "目录id", dataType = "String", required = true)
|
@ApiImplicitParam(name = "id", value = "目录id,查询该目录下文件", dataType = "String", required = true)
|
||||||
public Result<?> queryPageListMeeting(
|
public Result<?> queryPageListMeeting(
|
||||||
@RequestParam(name="id") String id,
|
@RequestParam(name="id") String id,
|
||||||
QueryFileListBySearch queryFileListBySearch,
|
QueryFileListBySearch queryFileListBySearch,
|
||||||
@@ -134,6 +136,11 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "资料维护(资料和会议)-添加")
|
@AutoLog(value = "资料维护(资料和会议)-添加")
|
||||||
@ApiOperation(value="资料维护(资料和会议)-添加", notes="资料维护(资料和会议)-添加")
|
@ApiOperation(value="资料维护(资料和会议)-添加", notes="资料维护(资料和会议)-添加")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "dataId", value = "目录id"),
|
||||||
|
@ApiImplicitParam(name = "fileIds", value = "资料id,多个以逗号隔开"),
|
||||||
|
@ApiImplicitParam(name = "dataType", value = "文件类型,资料1或者会议2")
|
||||||
|
})
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
@Transactional
|
@Transactional
|
||||||
public Result<?> add(@RequestParam(name="dataId") String dataId,
|
public Result<?> add(@RequestParam(name="dataId") String dataId,
|
||||||
@@ -169,6 +176,7 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
stringBuffer.append(one.getName()).append("/");
|
stringBuffer.append(one.getName()).append("/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑
|
* 编辑
|
||||||
*
|
*
|
||||||
@@ -177,29 +185,33 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
@ApiOperation(value="资料维护(资料和会议)-编辑", notes="资料维护(资料和会议)-编辑")
|
@ApiOperation(value="资料维护(资料和会议)-编辑", notes="资料维护(资料和会议)-编辑")
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
@Transactional
|
@Transactional
|
||||||
@ApiImplicitParam(name = "dataId", value = "目录id", dataType = "String", required = true)
|
@ApiImplicitParams({
|
||||||
public Result<?> edit(@RequestParam(name="dataId") String dataId,
|
@ApiImplicitParam(name = "id",value = "主键id"),
|
||||||
@RequestParam(name="oldFileId") String oldFileId,
|
@ApiImplicitParam(name = "fileId", value = "资料id"),
|
||||||
@RequestParam(name="newFileId") String newFileId,
|
@ApiImplicitParam(name = "oldFileId", value = "原来资料id")
|
||||||
@RequestParam(name="dataType") int dataType) {
|
})
|
||||||
|
public Result<?> edit(@RequestParam(name="id") String id,
|
||||||
|
@RequestParam(name="fileId") String fileId,
|
||||||
|
@RequestParam(name="oldFileId") String oldFileId) {
|
||||||
iossFileService.removeById(oldFileId);
|
iossFileService.removeById(oldFileId);
|
||||||
stringBuffer = new StringBuffer();
|
|
||||||
findToTree(dataId,dataType);
|
|
||||||
stringBuffer.deleteCharAt(stringBuffer.lastIndexOf("/"));
|
|
||||||
PayDataFile payDataFile = new PayDataFile();
|
PayDataFile payDataFile = new PayDataFile();
|
||||||
payDataFile.setFilePath(stringBuffer.toString());
|
payDataFile.setFileId(fileId);
|
||||||
payDataFile.setFileId(newFileId);
|
payDataFile.setId(id);
|
||||||
payDataFile.setDataId(dataId);
|
payDataFileService.updateById(payDataFile);
|
||||||
payDataFileService.save(payDataFile);
|
|
||||||
return Result.OK("编辑成功!");
|
return Result.OK("编辑成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通过id删除
|
* 通过id删除
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "资料维护(资料和会议)-通过id删除")
|
@AutoLog(value = "资料维护(资料和会议)-通过id删除")
|
||||||
@ApiOperation(value="资料维护(资料和会议)-通过id删除", notes="资料维护(资料和会议)-通过id删除")
|
@ApiOperation(value="资料维护(资料和会议)-通过id删除", notes="资料维护(资料和会议)-通过id删除")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "ids",value = "主键id"),
|
||||||
|
@ApiImplicitParam(name = "dataIds", value = "资料id")
|
||||||
|
})
|
||||||
@GetMapping(value = "/delete")
|
@GetMapping(value = "/delete")
|
||||||
@Transactional
|
@Transactional
|
||||||
@ApiImplicitParam(name = "id", value = "目录主键", dataType = "String", required = true)
|
@ApiImplicitParam(name = "id", value = "目录主键", dataType = "String", required = true)
|
||||||
@@ -222,6 +234,10 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
@AutoLog(value = "资料维护(资料和会议)-批量删除")
|
@AutoLog(value = "资料维护(资料和会议)-批量删除")
|
||||||
@ApiOperation(value="资料维护(资料和会议)-批量删除", notes="资料维护(资料和会议)-批量删除")
|
@ApiOperation(value="资料维护(资料和会议)-批量删除", notes="资料维护(资料和会议)-批量删除")
|
||||||
@GetMapping(value = "/deleteBatch")
|
@GetMapping(value = "/deleteBatch")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "ids",value = "主键id,多个以逗号隔开"),
|
||||||
|
@ApiImplicitParam(name = "dataIds", value = "资料id,多个以逗号隔开")
|
||||||
|
})
|
||||||
public Result<?> deleteBatch(@RequestParam(name="ids") String ids,@RequestParam(name="dataIds") String dataIds) {
|
public Result<?> deleteBatch(@RequestParam(name="ids") String ids,@RequestParam(name="dataIds") String dataIds) {
|
||||||
ArrayList<String> strings = new ArrayList<>(Arrays.asList(ids.split(",")));
|
ArrayList<String> strings = new ArrayList<>(Arrays.asList(ids.split(",")));
|
||||||
payDataFileService.removeByIds(strings);
|
payDataFileService.removeByIds(strings);
|
||||||
@@ -252,6 +268,7 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
List<PayMeetingSituation> list = payMeetingSituationService.list(lambdaQueryWrapper);
|
List<PayMeetingSituation> list = payMeetingSituationService.list(lambdaQueryWrapper);
|
||||||
return Result.OK(list);
|
return Result.OK(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 根据公司id和会议id查询参会人员列表
|
* @description: 根据公司id和会议id查询参会人员列表
|
||||||
* @author: zhangqinlin
|
* @author: zhangqinlin
|
||||||
@@ -259,7 +276,11 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
* @version: V1.0
|
* @version: V1.0
|
||||||
*/
|
*/
|
||||||
@AutoLog(value = "根据公司id和会议id查询参会人员列表")
|
@AutoLog(value = "根据公司id和会议id查询参会人员列表")
|
||||||
@ApiOperation(value="根据会议id和会议id查询参会人员列表", notes="根据会议id和会议id查询参会人员列表")
|
@ApiOperation(value="根据公司id和会议id查询参会人员列表", notes="根据公司id和会议id查询参会人员列表")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "meetingId",value = "会议id"),
|
||||||
|
@ApiImplicitParam(name = "companyId", value = "公司id")
|
||||||
|
})
|
||||||
@GetMapping(value = "/queryListByCompanyId")
|
@GetMapping(value = "/queryListByCompanyId")
|
||||||
public Result<List<queryPeopleByCompanyIdAndMeetingId>> queryPeopleByCompanyIdAndMeetingId(
|
public Result<List<queryPeopleByCompanyIdAndMeetingId>> queryPeopleByCompanyIdAndMeetingId(
|
||||||
@RequestParam(name="meetingId") String meetingId,
|
@RequestParam(name="meetingId") String meetingId,
|
||||||
@@ -291,6 +312,10 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "分发")
|
@AutoLog(value = "分发")
|
||||||
@ApiOperation(value="分发", notes="分发")
|
@ApiOperation(value="分发", notes="分发")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "FileName",value = "文件名"),
|
||||||
|
@ApiImplicitParam(name = "mails", value = "邮箱地址,多个以逗号隔开")
|
||||||
|
})
|
||||||
@GetMapping(value = "/distribute")
|
@GetMapping(value = "/distribute")
|
||||||
public Result<?> distribute(
|
public Result<?> distribute(
|
||||||
@RequestParam(name="FileName") String FileName,
|
@RequestParam(name="FileName") String FileName,
|
||||||
@@ -310,6 +335,10 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "批量分发")
|
@AutoLog(value = "批量分发")
|
||||||
@ApiOperation(value="批量分发", notes="批量分发")
|
@ApiOperation(value="批量分发", notes="批量分发")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "FileNameS",value = "文件名,多个以逗号隔开"),
|
||||||
|
@ApiImplicitParam(name = "mails", value = "邮箱地址,多个以逗号隔开")
|
||||||
|
})
|
||||||
@GetMapping(value = "/distributes")
|
@GetMapping(value = "/distributes")
|
||||||
public Result<?> distributes(
|
public Result<?> distributes(
|
||||||
@RequestParam(name="FileNameS") String FileNameS,
|
@RequestParam(name="FileNameS") String FileNameS,
|
||||||
@@ -342,6 +371,11 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
*/
|
*/
|
||||||
@AutoLog(value = "会议上传文件")
|
@AutoLog(value = "会议上传文件")
|
||||||
@ApiOperation(value="会议上传文件", notes="会议上传文件")
|
@ApiOperation(value="会议上传文件", notes="会议上传文件")
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "dataId",value = "目录id"),
|
||||||
|
@ApiImplicitParam(name = "fileIds",value = "文件id,多个以逗号隔开"),
|
||||||
|
@ApiImplicitParam(name = "dataType", value = "文件类型,资料1或者会议2")
|
||||||
|
})
|
||||||
@PostMapping(value = "/addMeetingFile")
|
@PostMapping(value = "/addMeetingFile")
|
||||||
@Transactional
|
@Transactional
|
||||||
public Result<?> addMeetingFile(@RequestParam(name="dataId") String dataId,
|
public Result<?> addMeetingFile(@RequestParam(name="dataId") String dataId,
|
||||||
@@ -410,9 +444,7 @@ public class PayDataFileController extends JeroController<PayDataFile, IPayDataF
|
|||||||
zipos = new ZipOutputStream(new BufferedOutputStream(response.getOutputStream()));
|
zipos = new ZipOutputStream(new BufferedOutputStream(response.getOutputStream()));
|
||||||
zipos.setMethod(ZipOutputStream.DEFLATED); //设置压缩方法
|
zipos.setMethod(ZipOutputStream.DEFLATED); //设置压缩方法
|
||||||
for (String path : paths){
|
for (String path : paths){
|
||||||
StringBuffer url = new StringBuffer("D:\\opt\\upFiles");
|
File file = new File("D:\\opt\\upFiles" + "\\" + path + ".pdf");
|
||||||
url.append("\\" + path+".pdf");
|
|
||||||
File file = new File(url.toString());
|
|
||||||
if(file.exists()){
|
if(file.exists()){
|
||||||
try {
|
try {
|
||||||
//添加ZipEntry,并ZipEntry中写入文件流
|
//添加ZipEntry,并ZipEntry中写入文件流
|
||||||
|
|||||||
+3
@@ -12,6 +12,9 @@ public class payCaseCommitteeSubitemVO {
|
|||||||
@ApiModelProperty(value = "分标委成员主键")
|
@ApiModelProperty(value = "分标委成员主键")
|
||||||
private java.lang.String id;
|
private java.lang.String id;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "联系人id")
|
||||||
|
private java.lang.String contactId;
|
||||||
|
|
||||||
@ApiModelProperty(value = "企业名称")
|
@ApiModelProperty(value = "企业名称")
|
||||||
private java.lang.String companyName;
|
private java.lang.String companyName;
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -8,7 +8,10 @@ public class queryPeopleByCompanyIdAndMeetingId {
|
|||||||
@ApiModelProperty(value = "id")
|
@ApiModelProperty(value = "id")
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
@ApiModelProperty(value = "姓名")
|
@ApiModelProperty(value = "联系人id")
|
||||||
|
private String contactId;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "联系人姓名")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "邮箱")
|
@ApiModelProperty(value = "邮箱")
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<select id="list2" resultType="com.jero.data.entity.VO.payCaseCommitteeSubitemVO">
|
<select id="list2" resultType="com.jero.data.entity.VO.payCaseCommitteeSubitemVO">
|
||||||
SELECT pm.id as id,pt.name as contactsName,pm.company_name as companyName,pt.post as post,pt.phone as phoneNamber,pt.email
|
SELECT pm.id as id,pt.id as contactId, pt.name as contactsName,pm.company_name as companyName,pt.post as post,pt.phone as phoneNamber,pt.email
|
||||||
from
|
from
|
||||||
pay_case_committee pe
|
pay_case_committee pe
|
||||||
left JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)
|
left JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)
|
||||||
|
|||||||
+1
@@ -34,6 +34,7 @@
|
|||||||
<select id="queryPeopleByCompanyIdAndMeetingId" resultType="com.jero.data.entity.queryPeopleByCompanyIdAndMeetingId">
|
<select id="queryPeopleByCompanyIdAndMeetingId" resultType="com.jero.data.entity.queryPeopleByCompanyIdAndMeetingId">
|
||||||
SELECT
|
SELECT
|
||||||
ps.user_id as id,
|
ps.user_id as id,
|
||||||
|
pm.id as contactId,
|
||||||
ps.user_name as userName,
|
ps.user_name as userName,
|
||||||
pm.email as email
|
pm.email as email
|
||||||
FROM pay_meeting_situation as ps left join pay_contacts_management as pm on(ps.user_id=pm.id)
|
FROM pay_meeting_situation as ps left join pay_contacts_management as pm on(ps.user_id=pm.id)
|
||||||
|
|||||||
+10
-10
@@ -20,12 +20,12 @@ import io.swagger.annotations.Api;
|
|||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: pay_mail_bill
|
* @Description: 邮寄票据
|
||||||
* @Author: jeecg-boot
|
* @Author: jeecg-boot
|
||||||
* @Date: 2021-09-02
|
* @Date: 2021-09-02
|
||||||
* @Version: V1.0
|
* @Version: V1.0
|
||||||
*/
|
*/
|
||||||
@Api(tags="pay_mail_bill")
|
@Api(tags="邮寄票据")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/mail/payMailBill")
|
@RequestMapping("/mail/payMailBill")
|
||||||
@Slf4j
|
@Slf4j
|
||||||
@@ -42,14 +42,14 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
* @param req
|
* @param req
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value="pay_mail_bill-分页列表查询", notes="pay_mail_bill-分页列表查询")
|
@ApiOperation(value="邮寄票据-分页列表查询", notes="邮寄票据-分页列表查询")
|
||||||
@GetMapping(value = "/list")
|
@GetMapping(value = "/list")
|
||||||
public Result<?> queryPageList(PayMailBill payMailBill,
|
public Result<?> queryPageList(PayMailBill payMailBill,
|
||||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<PayMailBill> queryWrapper = QueryGenerator.initQueryWrapper(payMailBill, req.getParameterMap());
|
QueryWrapper<PayMailBill> queryWrapper = QueryGenerator.initQueryWrapper(payMailBill, req.getParameterMap());
|
||||||
Page<PayMailBill> page = new Page<PayMailBill>(pageNo, pageSize);
|
Page<PayMailBill> page = new Page<>(pageNo, pageSize);
|
||||||
IPage<PayMailBill> pageList = payMailBillService.page(page, queryWrapper);
|
IPage<PayMailBill> pageList = payMailBillService.page(page, queryWrapper);
|
||||||
return Result.OK(pageList);
|
return Result.OK(pageList);
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
* @param payMailBill
|
* @param payMailBill
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value="pay_mail_bill-添加", notes="pay_mail_bill-添加")
|
@ApiOperation(value="邮寄票据-添加", notes="邮寄票据-添加")
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public Result<?> add(@RequestBody PayMailBill payMailBill) {
|
public Result<?> add(@RequestBody PayMailBill payMailBill) {
|
||||||
payMailBillService.save(payMailBill);
|
payMailBillService.save(payMailBill);
|
||||||
@@ -73,7 +73,7 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
* @param payMailBill
|
* @param payMailBill
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value="pay_mail_bill-编辑", notes="pay_mail_bill-编辑")
|
@ApiOperation(value="邮寄票据-编辑", notes="邮寄票据-编辑")
|
||||||
@PutMapping(value = "/edit")
|
@PutMapping(value = "/edit")
|
||||||
public Result<?> edit(@RequestBody PayMailBill payMailBill) {
|
public Result<?> edit(@RequestBody PayMailBill payMailBill) {
|
||||||
payMailBillService.updateById(payMailBill);
|
payMailBillService.updateById(payMailBill);
|
||||||
@@ -86,7 +86,7 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value="pay_mail_bill-通过id删除", notes="pay_mail_bill-通过id删除")
|
@ApiOperation(value="邮寄票据-通过id删除", notes="邮寄票据-通过id删除")
|
||||||
@DeleteMapping(value = "/delete")
|
@DeleteMapping(value = "/delete")
|
||||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
payMailBillService.removeById(id);
|
payMailBillService.removeById(id);
|
||||||
@@ -99,7 +99,7 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
* @param ids
|
* @param ids
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value="pay_mail_bill-批量删除", notes="pay_mail_bill-批量删除")
|
@ApiOperation(value="邮寄票据-批量删除", notes="邮寄票据-批量删除")
|
||||||
@DeleteMapping(value = "/deleteBatch")
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
this.payMailBillService.removeByIds(Arrays.asList(ids.split(",")));
|
this.payMailBillService.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
@@ -112,7 +112,7 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation(value="pay_mail_bill-通过id查询", notes="pay_mail_bill-通过id查询")
|
@ApiOperation(value="邮寄票据-通过id查询", notes="邮寄票据-通过id查询")
|
||||||
@GetMapping(value = "/queryById")
|
@GetMapping(value = "/queryById")
|
||||||
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
PayMailBill payMailBill = payMailBillService.getById(id);
|
PayMailBill payMailBill = payMailBillService.getById(id);
|
||||||
@@ -130,7 +130,7 @@ public class PayMailBillController extends JeroController<PayMailBill, IPayMailB
|
|||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/exportXls")
|
@RequestMapping(value = "/exportXls")
|
||||||
public ModelAndView exportXls(HttpServletRequest request, PayMailBill payMailBill) {
|
public ModelAndView exportXls(HttpServletRequest request, PayMailBill payMailBill) {
|
||||||
return super.exportXls(request, payMailBill, PayMailBill.class, "pay_mail_bill");
|
return super.exportXls(request, payMailBill, PayMailBill.class, "邮寄票据");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -95,4 +95,8 @@ public class PayMailBill implements Serializable {
|
|||||||
@Excel(name = "项目名称", width = 15)
|
@Excel(name = "项目名称", width = 15)
|
||||||
@ApiModelProperty(value = "项目名称")
|
@ApiModelProperty(value = "项目名称")
|
||||||
private java.lang.String projectName;
|
private java.lang.String projectName;
|
||||||
|
/**来款单位*/
|
||||||
|
@Excel(name = "来款单位", width = 15)
|
||||||
|
@ApiModelProperty(value = "来款单位")
|
||||||
|
private java.lang.String chargeCompanyName;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user