| | |
| | | import com.bstek.dorado.annotation.DataProvider; |
| | | import com.bstek.dorado.annotation.DataResolver; |
| | | import com.bstek.dorado.annotation.Expose; |
| | | import com.fzzy.common.constant.BizTypeEnum; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.data.BaseResp; |
| | | import com.fzzy.igds.data.IgdsBaseParam; |
| | | import com.fzzy.igds.domain.InoutNoticeIn; |
| | | import com.fzzy.igds.domain.PledgeContract; |
| | | import com.fzzy.igds.service.PledgeContractService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | } |
| | | |
| | | /** |
| | | * pledgeContractPR#getOne |
| | | * |
| | | * @param businessId |
| | | * @return |
| | | */ |
| | | @DataProvider |
| | | public PledgeContract getOne(String businessId) { |
| | | return pledgeContractService.getOne(businessId); |
| | | } |
| | | |
| | | /** |
| | | * 保存/更新 |
| | | * |
| | | * @param pledgeContract |
| | |
| | | * @param pledgeContract |
| | | * @return |
| | | */ |
| | | @Log( title = "质押合同", businessType = BusinessType.DELETE,bizType = BizTypeEnum.SUPERVISION) |
| | | @Expose |
| | | public BaseResp delete(PledgeContract pledgeContract) { |
| | | if (StringUtils.isNotEmpty(pledgeContract.getId())) return pledgeContractService.deleteData(pledgeContract); |
| | |
| | | @DataProvider |
| | | public List<SysDictData> status() { |
| | | List<SysDictData> result = new ArrayList<>(); |
| | | result.add(new SysDictData("未解压", Constant.YN_N)); |
| | | result.add(new SysDictData("已解压", Constant.YN_Y)); |
| | | result.add(new SysDictData("未解押", Constant.YN_N)); |
| | | result.add(new SysDictData("已解押", Constant.YN_Y)); |
| | | return result; |
| | | } |
| | | } |