✨ 完善核销用户记录和毛利报表导出日志
This commit is contained in:
@@ -22,6 +22,8 @@ public class PrcProfitReportExport implements Serializable
|
||||
private Integer rowCount;
|
||||
/** PROCESSING 生成中,SUCCESS 成功,FAILED 失败。 */
|
||||
private String exportStatus;
|
||||
/** 发起导出的用户主键。 */
|
||||
private Long exportUserId;
|
||||
private String exportBy;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date exportTime;
|
||||
|
||||
@@ -23,8 +23,7 @@ public interface PrcProfitReportMapper
|
||||
|
||||
int markExportFailed(@Param("exportId") Long exportId, @Param("remark") String remark);
|
||||
|
||||
List<PrcProfitReportExport> selectExportsByUser(String exportBy);
|
||||
List<PrcProfitReportExport> selectExports();
|
||||
|
||||
PrcProfitReportExport selectExportByIdAndUser(@Param("exportId") Long exportId,
|
||||
@Param("exportBy") String exportBy);
|
||||
PrcProfitReportExport selectExportById(@Param("exportId") Long exportId);
|
||||
}
|
||||
|
||||
+2
-2
@@ -23,9 +23,9 @@ public interface IPrcProfitReportService
|
||||
|
||||
int failExport(Long exportId, String remark);
|
||||
|
||||
List<PrcProfitReportExport> selectExports(String exportBy);
|
||||
List<PrcProfitReportExport> selectExports();
|
||||
|
||||
PrcProfitReportExport selectExport(Long exportId, String exportBy);
|
||||
PrcProfitReportExport selectExport(Long exportId);
|
||||
|
||||
/* 提成比例维护暂停使用。
|
||||
List<PrcProfitCommissionRate> selectCommissionRates();
|
||||
|
||||
+6
-5
@@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
|
||||
// 提成功能暂停使用:import org.springframework.transaction.annotation.Transactional;
|
||||
import com.bms.common.annotation.DataScope;
|
||||
import com.bms.common.exception.ServiceException;
|
||||
// 提成功能暂停使用:import com.bms.common.utils.SecurityUtils;
|
||||
import com.bms.common.utils.SecurityUtils;
|
||||
// 提成功能暂停使用:import com.bms.price.domain.PrcProfitCommissionRate;
|
||||
// 提成功能暂停使用:import com.bms.price.mapper.PrcProfitCommissionRateMapper;
|
||||
import com.bms.price.domain.PrcProfitReportExport;
|
||||
@@ -61,6 +61,7 @@ public class PrcProfitReportServiceImpl implements IPrcProfitReportService
|
||||
@Override
|
||||
public int createExport(PrcProfitReportExport export)
|
||||
{
|
||||
export.setExportUserId(SecurityUtils.getUserId());
|
||||
return profitReportMapper.insertExport(export);
|
||||
}
|
||||
|
||||
@@ -77,15 +78,15 @@ public class PrcProfitReportServiceImpl implements IPrcProfitReportService
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PrcProfitReportExport> selectExports(String exportBy)
|
||||
public List<PrcProfitReportExport> selectExports()
|
||||
{
|
||||
return profitReportMapper.selectExportsByUser(exportBy);
|
||||
return profitReportMapper.selectExports();
|
||||
}
|
||||
|
||||
@Override
|
||||
public PrcProfitReportExport selectExport(Long exportId, String exportBy)
|
||||
public PrcProfitReportExport selectExport(Long exportId)
|
||||
{
|
||||
return profitReportMapper.selectExportByIdAndUser(exportId, exportBy);
|
||||
return profitReportMapper.selectExportById(exportId);
|
||||
}
|
||||
|
||||
/** 将报表的多行输入拆分为去重后的查询条件,支持换行、空格、逗号和分号分隔。 */
|
||||
|
||||
Reference in New Issue
Block a user